public static final class RemoveNetworkPolicyRequest.Builder extends Object
RemoveNetworkPolicyRequest.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
RemoveNetworkPolicyRequest |
build()
Builds a new
RemoveNetworkPolicyRequest. |
RemoveNetworkPolicyRequest.Builder |
destination(String destination)
Initializes the value for the
destination attribute. |
RemoveNetworkPolicyRequest.Builder |
endPort(Integer endPort)
Initializes the value for the
endPort attribute. |
RemoveNetworkPolicyRequest.Builder |
from(RemoveNetworkPolicyRequest instance)
Fill a builder with attribute values from the provided
RemoveNetworkPolicyRequest instance. |
RemoveNetworkPolicyRequest.Builder |
protocol(String protocol)
Initializes the value for the
protocol attribute. |
RemoveNetworkPolicyRequest.Builder |
source(String source)
Initializes the value for the
source attribute. |
RemoveNetworkPolicyRequest.Builder |
startPort(Integer startPort)
Initializes the value for the
startPort attribute. |
public final RemoveNetworkPolicyRequest.Builder from(RemoveNetworkPolicyRequest instance)
RemoveNetworkPolicyRequest instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final RemoveNetworkPolicyRequest.Builder destination(String destination)
destination attribute.destination - The value for destinationthis builder for use in a chained invocationpublic final RemoveNetworkPolicyRequest.Builder endPort(Integer endPort)
endPort attribute.endPort - The value for endPort (can be null)this builder for use in a chained invocationpublic final RemoveNetworkPolicyRequest.Builder protocol(String protocol)
protocol attribute.protocol - The value for protocolthis builder for use in a chained invocationpublic final RemoveNetworkPolicyRequest.Builder source(String source)
source attribute.source - The value for sourcethis builder for use in a chained invocationpublic final RemoveNetworkPolicyRequest.Builder startPort(Integer startPort)
startPort attribute.startPort - The value for startPortthis builder for use in a chained invocationpublic RemoveNetworkPolicyRequest build()
RemoveNetworkPolicyRequest.IllegalStateException - if any required attributes are missingCopyright © 2018. All rights reserved.