Class CreatePrivatePathServiceGatewayOptions.Builder
java.lang.Object
com.ibm.cloud.is.vpc.v1.model.CreatePrivatePathServiceGatewayOptions.Builder
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder()Instantiates a new builder.Builder(LoadBalancerIdentity loadBalancer, List<String> serviceEndpoints) Instantiates a new builder with required properties. -
Method Summary
Modifier and TypeMethodDescriptionaddServiceEndpoints(String serviceEndpoints) Adds a new element to serviceEndpoints.build()Builds a CreatePrivatePathServiceGatewayOptions.defaultAccessPolicy(String defaultAccessPolicy) Set the defaultAccessPolicy.loadBalancer(LoadBalancerIdentity loadBalancer) Set the loadBalancer.Set the name.resourceGroup(ResourceGroupIdentity resourceGroup) Set the resourceGroup.serviceEndpoints(List<String> serviceEndpoints) Set the serviceEndpoints.zonalAffinity(Boolean zonalAffinity) Set the zonalAffinity.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
loadBalancer- the loadBalancerserviceEndpoints- the serviceEndpoints
-
-
Method Details
-
build
Builds a CreatePrivatePathServiceGatewayOptions.- Returns:
- the new CreatePrivatePathServiceGatewayOptions instance
-
addServiceEndpoints
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
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
Set the zonalAffinity.- Parameters:
zonalAffinity- the zonalAffinity- Returns:
- the CreatePrivatePathServiceGatewayOptions builder
-