Package com.ibm.cloud.is.vpc.v1.model
Class CreatePrivatePathServiceGatewayOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.is.vpc.v1.model.CreatePrivatePathServiceGatewayOptions.Builder
-
- Enclosing class:
- CreatePrivatePathServiceGatewayOptions
public static class CreatePrivatePathServiceGatewayOptions.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(LoadBalancerIdentity loadBalancer, List<String> serviceEndpoints)
Instantiates a new builder with required properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreatePrivatePathServiceGatewayOptions.Builder
addServiceEndpoints(String serviceEndpoints)
Adds a new element to serviceEndpoints.CreatePrivatePathServiceGatewayOptions
build()
Builds a CreatePrivatePathServiceGatewayOptions.CreatePrivatePathServiceGatewayOptions.Builder
defaultAccessPolicy(String defaultAccessPolicy)
Set the defaultAccessPolicy.CreatePrivatePathServiceGatewayOptions.Builder
loadBalancer(LoadBalancerIdentity loadBalancer)
Set the loadBalancer.CreatePrivatePathServiceGatewayOptions.Builder
name(String name)
Set the name.CreatePrivatePathServiceGatewayOptions.Builder
resourceGroup(ResourceGroupIdentity resourceGroup)
Set the resourceGroup.CreatePrivatePathServiceGatewayOptions.Builder
serviceEndpoints(List<String> serviceEndpoints)
Set the serviceEndpoints.CreatePrivatePathServiceGatewayOptions.Builder
zonalAffinity(Boolean zonalAffinity)
Set the zonalAffinity.
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(LoadBalancerIdentity loadBalancer, List<String> serviceEndpoints)
Instantiates a new builder with required properties.- Parameters:
loadBalancer
- the loadBalancerserviceEndpoints
- the serviceEndpoints
-
-
Method Detail
-
build
public CreatePrivatePathServiceGatewayOptions build()
Builds a CreatePrivatePathServiceGatewayOptions.- Returns:
- the new CreatePrivatePathServiceGatewayOptions instance
-
addServiceEndpoints
public CreatePrivatePathServiceGatewayOptions.Builder addServiceEndpoints(String serviceEndpoints)
Adds a new element to serviceEndpoints.- Parameters:
serviceEndpoints
- the new element to be added- Returns:
- the CreatePrivatePathServiceGatewayOptions builder
-
loadBalancer
public CreatePrivatePathServiceGatewayOptions.Builder loadBalancer(LoadBalancerIdentity loadBalancer)
Set the loadBalancer.- Parameters:
loadBalancer
- the loadBalancer- Returns:
- the CreatePrivatePathServiceGatewayOptions builder
-
serviceEndpoints
public CreatePrivatePathServiceGatewayOptions.Builder serviceEndpoints(List<String> serviceEndpoints)
Set the serviceEndpoints. Existing serviceEndpoints will be replaced.- Parameters:
serviceEndpoints
- the serviceEndpoints- Returns:
- the CreatePrivatePathServiceGatewayOptions builder
-
defaultAccessPolicy
public CreatePrivatePathServiceGatewayOptions.Builder defaultAccessPolicy(String defaultAccessPolicy)
Set the defaultAccessPolicy.- Parameters:
defaultAccessPolicy
- the defaultAccessPolicy- Returns:
- the CreatePrivatePathServiceGatewayOptions builder
-
name
public CreatePrivatePathServiceGatewayOptions.Builder name(String name)
Set the name.- Parameters:
name
- the name- Returns:
- the CreatePrivatePathServiceGatewayOptions builder
-
resourceGroup
public CreatePrivatePathServiceGatewayOptions.Builder resourceGroup(ResourceGroupIdentity resourceGroup)
Set the resourceGroup.- Parameters:
resourceGroup
- the resourceGroup- Returns:
- the CreatePrivatePathServiceGatewayOptions builder
-
zonalAffinity
public CreatePrivatePathServiceGatewayOptions.Builder zonalAffinity(Boolean zonalAffinity)
Set the zonalAffinity.- Parameters:
zonalAffinity
- the zonalAffinity- Returns:
- the CreatePrivatePathServiceGatewayOptions builder
-
-