public static class UpdateServiceGatewayDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
UpdateServiceGatewayDetails.Builder |
blockTraffic(Boolean blockTraffic)
Whether the service gateway blocks all traffic through it.
|
UpdateServiceGatewayDetails |
build() |
UpdateServiceGatewayDetails.Builder |
copy(UpdateServiceGatewayDetails model) |
UpdateServiceGatewayDetails.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
UpdateServiceGatewayDetails.Builder |
displayName(String displayName)
A user-friendly name.
|
UpdateServiceGatewayDetails.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.
|
UpdateServiceGatewayDetails.Builder |
services(List<ServiceIdRequestDetails> services)
List of all the
Service objects you want enabled on this service gateway. |
public UpdateServiceGatewayDetails.Builder blockTraffic(Boolean blockTraffic)
Whether the service gateway blocks all traffic through it. The default is false
. When
this is true
, traffic is not routed to any services, regardless of route rules.
Example: true
blockTraffic
- the value to setpublic UpdateServiceGatewayDetails.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource. Each key is predefined and scoped to a namespace.
Example: {"foo-namespace": {"bar-key": "value"}}
definedTags
- the value to setpublic UpdateServiceGatewayDetails.Builder displayName(String displayName)
A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.
displayName
- the value to setpublic UpdateServiceGatewayDetails.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
Example: {"bar-key": "value"}
freeformTags
- the value to setpublic UpdateServiceGatewayDetails.Builder services(List<ServiceIdRequestDetails> services)
List of all the Service
objects you want enabled on this service gateway. Sending an empty list
means you want to disable all services. Omitting this parameter entirely keeps the
existing list of services intact.
You can also enable or disable a particular Service
by using
attachServiceId
or
detachServiceId
.
For each enabled Service
, make sure there's a route rule with the Service
object's cidrBlock
as the rule's destination and the service gateway as the rule's target. See
RouteTable
.
services
- the value to setpublic UpdateServiceGatewayDetails build()
public UpdateServiceGatewayDetails.Builder copy(UpdateServiceGatewayDetails model)
Copyright © 2016–2023. All rights reserved.