Class SecurityGroupRulePatch.Builder
java.lang.Object
com.ibm.cloud.is.vpc.v1.model.SecurityGroupRulePatch.Builder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a SecurityGroupRulePatch.code
(long code) Set the code.Set the direction.Set the ipVersion.local
(SecurityGroupRuleLocalPatch local) Set the local.portMax
(long portMax) Set the portMax.portMin
(long portMin) Set the portMin.remote
(SecurityGroupRuleRemotePatch remote) Set the remote.type
(long type) Set the type.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder.
-
-
Method Details
-
build
Builds a SecurityGroupRulePatch.- Returns:
- the new SecurityGroupRulePatch instance
-
code
Set the code.- Parameters:
code
- the code- Returns:
- the SecurityGroupRulePatch builder
-
direction
Set the direction.- Parameters:
direction
- the direction- Returns:
- the SecurityGroupRulePatch builder
-
ipVersion
Set the ipVersion.- Parameters:
ipVersion
- the ipVersion- Returns:
- the SecurityGroupRulePatch builder
-
local
Set the local.- Parameters:
local
- the local- Returns:
- the SecurityGroupRulePatch builder
-
portMax
Set the portMax.- Parameters:
portMax
- the portMax- Returns:
- the SecurityGroupRulePatch builder
-
portMin
Set the portMin.- Parameters:
portMin
- the portMin- Returns:
- the SecurityGroupRulePatch builder
-
remote
Set the remote.- Parameters:
remote
- the remote- Returns:
- the SecurityGroupRulePatch builder
-
type
Set the type.- Parameters:
type
- the type- Returns:
- the SecurityGroupRulePatch builder
-