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 SecurityGroupRulePatch
build()
Builds a SecurityGroupRulePatch.SecurityGroupRulePatch.Builder
code(long code)
Set the code.SecurityGroupRulePatch.Builder
direction(String direction)
Set the direction.SecurityGroupRulePatch.Builder
ipVersion(String ipVersion)
Set the ipVersion.SecurityGroupRulePatch.Builder
local(SecurityGroupRuleLocalPatch local)
Set the local.SecurityGroupRulePatch.Builder
portMax(long portMax)
Set the portMax.SecurityGroupRulePatch.Builder
portMin(long portMin)
Set the portMin.SecurityGroupRulePatch.Builder
remote(SecurityGroupRuleRemotePatch remote)
Set the remote.SecurityGroupRulePatch.Builder
type(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
-
local
public SecurityGroupRulePatch.Builder local(SecurityGroupRuleLocalPatch local)
Set the local.- Parameters:
local
- the local- 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
-
-