Class SetGatewayMacsecOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.networking.direct_link.v1.model.SetGatewayMacsecOptions.Builder
-
- Enclosing class:
- SetGatewayMacsecOptions
public static class SetGatewayMacsecOptions.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()Instantiates a new builder.Builder(String id, Boolean active, List<GatewayMacsecCakPrototype> caks, SakRekeyPrototype sakRekey, String securityPolicy)Instantiates a new builder with required properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SetGatewayMacsecOptions.Builderactive(Boolean active)Set the active.SetGatewayMacsecOptions.BuilderaddCaks(GatewayMacsecCakPrototype caks)Adds a new element to caks.SetGatewayMacsecOptionsbuild()Builds a SetGatewayMacsecOptions.SetGatewayMacsecOptions.Buildercaks(List<GatewayMacsecCakPrototype> caks)Set the caks.SetGatewayMacsecOptions.Builderid(String id)Set the id.SetGatewayMacsecOptions.BuilderifMatch(String ifMatch)Set the ifMatch.SetGatewayMacsecOptions.BuildersakRekey(SakRekeyPrototype sakRekey)Set the sakRekey.SetGatewayMacsecOptions.BuildersecurityPolicy(String securityPolicy)Set the securityPolicy.SetGatewayMacsecOptions.BuilderwindowSize(long windowSize)Set the windowSize.
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(String id, Boolean active, List<GatewayMacsecCakPrototype> caks, SakRekeyPrototype sakRekey, String securityPolicy)
Instantiates a new builder with required properties.- Parameters:
id- the idactive- the activecaks- the cakssakRekey- the sakRekeysecurityPolicy- the securityPolicy
-
-
Method Detail
-
build
public SetGatewayMacsecOptions build()
Builds a SetGatewayMacsecOptions.- Returns:
- the new SetGatewayMacsecOptions instance
-
addCaks
public SetGatewayMacsecOptions.Builder addCaks(GatewayMacsecCakPrototype caks)
Adds a new element to caks.- Parameters:
caks- the new element to be added- Returns:
- the SetGatewayMacsecOptions builder
-
id
public SetGatewayMacsecOptions.Builder id(String id)
Set the id.- Parameters:
id- the id- Returns:
- the SetGatewayMacsecOptions builder
-
active
public SetGatewayMacsecOptions.Builder active(Boolean active)
Set the active.- Parameters:
active- the active- Returns:
- the SetGatewayMacsecOptions builder
-
caks
public SetGatewayMacsecOptions.Builder caks(List<GatewayMacsecCakPrototype> caks)
Set the caks. Existing caks will be replaced.- Parameters:
caks- the caks- Returns:
- the SetGatewayMacsecOptions builder
-
sakRekey
public SetGatewayMacsecOptions.Builder sakRekey(SakRekeyPrototype sakRekey)
Set the sakRekey.- Parameters:
sakRekey- the sakRekey- Returns:
- the SetGatewayMacsecOptions builder
-
securityPolicy
public SetGatewayMacsecOptions.Builder securityPolicy(String securityPolicy)
Set the securityPolicy.- Parameters:
securityPolicy- the securityPolicy- Returns:
- the SetGatewayMacsecOptions builder
-
windowSize
public SetGatewayMacsecOptions.Builder windowSize(long windowSize)
Set the windowSize.- Parameters:
windowSize- the windowSize- Returns:
- the SetGatewayMacsecOptions builder
-
ifMatch
public SetGatewayMacsecOptions.Builder ifMatch(String ifMatch)
Set the ifMatch.- Parameters:
ifMatch- the ifMatch- Returns:
- the SetGatewayMacsecOptions builder
-
-