Class NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype.Builder
java.lang.Object
com.ibm.cloud.is.vpc.v1.model.NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype.Builder
- Enclosing class:
NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype
public static class NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype.Builder
extends Object
Builder.
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder()Instantiates a new builder.Builder(NetworkACLRulePrototype networkAclRulePrototypeNetworkAclRuleProtocolTcpudpPrototype) Instantiates a new Builder from an existing NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype instance.Instantiates a new builder with required properties. -
Method Summary
Modifier and TypeMethodDescriptionSet the action.before(NetworkACLRuleBeforePrototype before) Set the before.build()Builds a NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype.destination(String destination) Set the destination.destinationPortMax(long destinationPortMax) Set the destinationPortMax.destinationPortMin(long destinationPortMin) Set the destinationPortMin.Set the direction.Set the ipVersion.Set the name.Set the protocol.Set the source.sourcePortMax(long sourcePortMax) Set the sourcePortMax.sourcePortMin(long sourcePortMin) Set the sourcePortMin.
-
Constructor Details
-
Builder
public Builder(NetworkACLRulePrototype networkAclRulePrototypeNetworkAclRuleProtocolTcpudpPrototype) Instantiates a new Builder from an existing NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype instance.- Parameters:
networkAclRulePrototypeNetworkAclRuleProtocolTcpudpPrototype- the instance to initialize the Builder with
-
Builder
public Builder()Instantiates a new builder. -
Builder
-
-
Method Details
-
build
Builds a NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype.- Returns:
- the new NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype instance
-
action
Set the action.- Parameters:
action- the action- Returns:
- the NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype builder
-
before
public NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype.Builder before(NetworkACLRuleBeforePrototype before) Set the before.- Parameters:
before- the before- Returns:
- the NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype builder
-
destination
public NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype.Builder destination(String destination) Set the destination.- Parameters:
destination- the destination- Returns:
- the NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype builder
-
direction
public NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype.Builder direction(String direction) Set the direction.- Parameters:
direction- the direction- Returns:
- the NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype builder
-
ipVersion
public NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype.Builder ipVersion(String ipVersion) Set the ipVersion.- Parameters:
ipVersion- the ipVersion- Returns:
- the NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype builder
-
name
Set the name.- Parameters:
name- the name- Returns:
- the NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype builder
-
source
Set the source.- Parameters:
source- the source- Returns:
- the NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype builder
-
destinationPortMax
public NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype.Builder destinationPortMax(long destinationPortMax) Set the destinationPortMax.- Parameters:
destinationPortMax- the destinationPortMax- Returns:
- the NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype builder
-
destinationPortMin
public NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype.Builder destinationPortMin(long destinationPortMin) Set the destinationPortMin.- Parameters:
destinationPortMin- the destinationPortMin- Returns:
- the NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype builder
-
protocol
public NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype.Builder protocol(String protocol) Set the protocol.- Parameters:
protocol- the protocol- Returns:
- the NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype builder
-
sourcePortMax
public NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype.Builder sourcePortMax(long sourcePortMax) Set the sourcePortMax.- Parameters:
sourcePortMax- the sourcePortMax- Returns:
- the NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype builder
-
sourcePortMin
public NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype.Builder sourcePortMin(long sourcePortMin) Set the sourcePortMin.- Parameters:
sourcePortMin- the sourcePortMin- Returns:
- the NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype builder
-