Package com.ibm.cloud.is.vpc.v1.model
Class CreateEndpointGatewayOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.is.vpc.v1.model.CreateEndpointGatewayOptions.Builder
-
- Enclosing class:
- CreateEndpointGatewayOptions
public static class CreateEndpointGatewayOptions.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(EndpointGatewayTargetPrototype target, VPCIdentity vpc)
Instantiates a new builder with required properties.
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(EndpointGatewayTargetPrototype target, VPCIdentity vpc)
Instantiates a new builder with required properties.- Parameters:
target
- the targetvpc
- the vpc
-
-
Method Detail
-
build
public CreateEndpointGatewayOptions build()
Builds a CreateEndpointGatewayOptions.- Returns:
- the new CreateEndpointGatewayOptions instance
-
addIps
public CreateEndpointGatewayOptions.Builder addIps(EndpointGatewayReservedIP ips)
Adds a new element to ips.- Parameters:
ips
- the new element to be added- Returns:
- the CreateEndpointGatewayOptions builder
-
addSecurityGroups
public CreateEndpointGatewayOptions.Builder addSecurityGroups(SecurityGroupIdentity securityGroups)
Adds a new element to securityGroups.- Parameters:
securityGroups
- the new element to be added- Returns:
- the CreateEndpointGatewayOptions builder
-
target
public CreateEndpointGatewayOptions.Builder target(EndpointGatewayTargetPrototype target)
Set the target.- Parameters:
target
- the target- Returns:
- the CreateEndpointGatewayOptions builder
-
vpc
public CreateEndpointGatewayOptions.Builder vpc(VPCIdentity vpc)
Set the vpc.- Parameters:
vpc
- the vpc- Returns:
- the CreateEndpointGatewayOptions builder
-
allowDnsResolutionBinding
public CreateEndpointGatewayOptions.Builder allowDnsResolutionBinding(Boolean allowDnsResolutionBinding)
Set the allowDnsResolutionBinding.- Parameters:
allowDnsResolutionBinding
- the allowDnsResolutionBinding- Returns:
- the CreateEndpointGatewayOptions builder
-
ips
public CreateEndpointGatewayOptions.Builder ips(List<EndpointGatewayReservedIP> ips)
Set the ips. Existing ips will be replaced.- Parameters:
ips
- the ips- Returns:
- the CreateEndpointGatewayOptions builder
-
name
public CreateEndpointGatewayOptions.Builder name(String name)
Set the name.- Parameters:
name
- the name- Returns:
- the CreateEndpointGatewayOptions builder
-
resourceGroup
public CreateEndpointGatewayOptions.Builder resourceGroup(ResourceGroupIdentity resourceGroup)
Set the resourceGroup.- Parameters:
resourceGroup
- the resourceGroup- Returns:
- the CreateEndpointGatewayOptions builder
-
securityGroups
public CreateEndpointGatewayOptions.Builder securityGroups(List<SecurityGroupIdentity> securityGroups)
Set the securityGroups. Existing securityGroups will be replaced.- Parameters:
securityGroups
- the securityGroups- Returns:
- the CreateEndpointGatewayOptions builder
-
-