Package com.ibm.cloud.is.vpc.v1.model
Class CreatePublicGatewayOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.is.vpc.v1.model.CreatePublicGatewayOptions.Builder
-
- Enclosing class:
- CreatePublicGatewayOptions
public static class CreatePublicGatewayOptions.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(VPCIdentity vpc, ZoneIdentity zone)
Instantiates a new builder with required properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreatePublicGatewayOptions
build()
Builds a CreatePublicGatewayOptions.CreatePublicGatewayOptions.Builder
floatingIp(PublicGatewayFloatingIPPrototype floatingIp)
Set the floatingIp.CreatePublicGatewayOptions.Builder
name(String name)
Set the name.CreatePublicGatewayOptions.Builder
resourceGroup(ResourceGroupIdentity resourceGroup)
Set the resourceGroup.CreatePublicGatewayOptions.Builder
vpc(VPCIdentity vpc)
Set the vpc.CreatePublicGatewayOptions.Builder
zone(ZoneIdentity zone)
Set the zone.
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(VPCIdentity vpc, ZoneIdentity zone)
Instantiates a new builder with required properties.- Parameters:
vpc
- the vpczone
- the zone
-
-
Method Detail
-
build
public CreatePublicGatewayOptions build()
Builds a CreatePublicGatewayOptions.- Returns:
- the new CreatePublicGatewayOptions instance
-
vpc
public CreatePublicGatewayOptions.Builder vpc(VPCIdentity vpc)
Set the vpc.- Parameters:
vpc
- the vpc- Returns:
- the CreatePublicGatewayOptions builder
-
zone
public CreatePublicGatewayOptions.Builder zone(ZoneIdentity zone)
Set the zone.- Parameters:
zone
- the zone- Returns:
- the CreatePublicGatewayOptions builder
-
floatingIp
public CreatePublicGatewayOptions.Builder floatingIp(PublicGatewayFloatingIPPrototype floatingIp)
Set the floatingIp.- Parameters:
floatingIp
- the floatingIp- Returns:
- the CreatePublicGatewayOptions builder
-
name
public CreatePublicGatewayOptions.Builder name(String name)
Set the name.- Parameters:
name
- the name- Returns:
- the CreatePublicGatewayOptions builder
-
resourceGroup
public CreatePublicGatewayOptions.Builder resourceGroup(ResourceGroupIdentity resourceGroup)
Set the resourceGroup.- Parameters:
resourceGroup
- the resourceGroup- Returns:
- the CreatePublicGatewayOptions builder
-
-