Package com.ibm.cloud.is.vpc.v1.model
Class SecurityGroupRulePatch.Builder
- java.lang.Object
-
- com.ibm.cloud.is.vpc.v1.model.SecurityGroupRulePatch.Builder
-
- Enclosing class:
- SecurityGroupRulePatch
public static class SecurityGroupRulePatch.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()Instantiates a new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityGroupRulePatchbuild()Builds a SecurityGroupRulePatch.SecurityGroupRulePatch.Buildercode(long code)Set the code.SecurityGroupRulePatch.Builderdirection(String direction)Set the direction.SecurityGroupRulePatch.BuilderipVersion(String ipVersion)Set the ipVersion.SecurityGroupRulePatch.BuilderportMax(long portMax)Set the portMax.SecurityGroupRulePatch.BuilderportMin(long portMin)Set the portMin.SecurityGroupRulePatch.Builderremote(SecurityGroupRuleRemotePatch remote)Set the remote.SecurityGroupRulePatch.Buildertype(long type)Set the type.
-
-
-
Method Detail
-
build
public SecurityGroupRulePatch build()
Builds a SecurityGroupRulePatch.- Returns:
- the new SecurityGroupRulePatch instance
-
code
public SecurityGroupRulePatch.Builder code(long code)
Set the code.- Parameters:
code- the code- Returns:
- the SecurityGroupRulePatch builder
-
direction
public SecurityGroupRulePatch.Builder direction(String direction)
Set the direction.- Parameters:
direction- the direction- Returns:
- the SecurityGroupRulePatch builder
-
ipVersion
public SecurityGroupRulePatch.Builder ipVersion(String ipVersion)
Set the ipVersion.- Parameters:
ipVersion- the ipVersion- Returns:
- the SecurityGroupRulePatch builder
-
portMax
public SecurityGroupRulePatch.Builder portMax(long portMax)
Set the portMax.- Parameters:
portMax- the portMax- Returns:
- the SecurityGroupRulePatch builder
-
portMin
public SecurityGroupRulePatch.Builder portMin(long portMin)
Set the portMin.- Parameters:
portMin- the portMin- Returns:
- the SecurityGroupRulePatch builder
-
remote
public SecurityGroupRulePatch.Builder remote(SecurityGroupRuleRemotePatch remote)
Set the remote.- Parameters:
remote- the remote- Returns:
- the SecurityGroupRulePatch builder
-
type
public SecurityGroupRulePatch.Builder type(long type)
Set the type.- Parameters:
type- the type- Returns:
- the SecurityGroupRulePatch builder
-
-