Interface ServiceConnectConfiguration.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<ServiceConnectConfiguration.Builder,ServiceConnectConfiguration>
,SdkBuilder<ServiceConnectConfiguration.Builder,ServiceConnectConfiguration>
,SdkPojo
- Enclosing class:
- ServiceConnectConfiguration
public static interface ServiceConnectConfiguration.Builder extends SdkPojo, CopyableBuilder<ServiceConnectConfiguration.Builder,ServiceConnectConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ServiceConnectConfiguration.Builder
enabled(Boolean enabled)
Specifies whether to use Service Connect with this service.default ServiceConnectConfiguration.Builder
logConfiguration(Consumer<LogConfiguration.Builder> logConfiguration)
Sets the value of the LogConfiguration property for this object.ServiceConnectConfiguration.Builder
logConfiguration(LogConfiguration logConfiguration)
Sets the value of the LogConfiguration property for this object.ServiceConnectConfiguration.Builder
namespace(String namespace)
The namespace name or full Amazon Resource Name (ARN) of the Cloud Map namespace for use with Service Connect.ServiceConnectConfiguration.Builder
services(Collection<ServiceConnectService> services)
The list of Service Connect service objects.ServiceConnectConfiguration.Builder
services(Consumer<ServiceConnectService.Builder>... services)
The list of Service Connect service objects.ServiceConnectConfiguration.Builder
services(ServiceConnectService... services)
The list of Service Connect service objects.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
enabled
ServiceConnectConfiguration.Builder enabled(Boolean enabled)
Specifies whether to use Service Connect with this service.
- Parameters:
enabled
- Specifies whether to use Service Connect with this service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
namespace
ServiceConnectConfiguration.Builder namespace(String namespace)
The namespace name or full Amazon Resource Name (ARN) of the Cloud Map namespace for use with Service Connect. The namespace must be in the same Amazon Web Services Region as the Amazon ECS service and cluster. The type of namespace doesn't affect Service Connect. For more information about Cloud Map, see Working with Services in the Cloud Map Developer Guide.
- Parameters:
namespace
- The namespace name or full Amazon Resource Name (ARN) of the Cloud Map namespace for use with Service Connect. The namespace must be in the same Amazon Web Services Region as the Amazon ECS service and cluster. The type of namespace doesn't affect Service Connect. For more information about Cloud Map, see Working with Services in the Cloud Map Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
services
ServiceConnectConfiguration.Builder services(Collection<ServiceConnectService> services)
The list of Service Connect service objects. These are names and aliases (also known as endpoints) that are used by other Amazon ECS services to connect to this service.
This field is not required for a "client" Amazon ECS service that's a member of a namespace only to connect to other services within the namespace. An example of this would be a frontend application that accepts incoming requests from either a load balancer that's attached to the service or by other means.
An object selects a port from the task definition, assigns a name for the Cloud Map service, and a list of aliases (endpoints) and ports for client applications to refer to this service.
- Parameters:
services
- The list of Service Connect service objects. These are names and aliases (also known as endpoints) that are used by other Amazon ECS services to connect to this service.This field is not required for a "client" Amazon ECS service that's a member of a namespace only to connect to other services within the namespace. An example of this would be a frontend application that accepts incoming requests from either a load balancer that's attached to the service or by other means.
An object selects a port from the task definition, assigns a name for the Cloud Map service, and a list of aliases (endpoints) and ports for client applications to refer to this service.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
services
ServiceConnectConfiguration.Builder services(ServiceConnectService... services)
The list of Service Connect service objects. These are names and aliases (also known as endpoints) that are used by other Amazon ECS services to connect to this service.
This field is not required for a "client" Amazon ECS service that's a member of a namespace only to connect to other services within the namespace. An example of this would be a frontend application that accepts incoming requests from either a load balancer that's attached to the service or by other means.
An object selects a port from the task definition, assigns a name for the Cloud Map service, and a list of aliases (endpoints) and ports for client applications to refer to this service.
- Parameters:
services
- The list of Service Connect service objects. These are names and aliases (also known as endpoints) that are used by other Amazon ECS services to connect to this service.This field is not required for a "client" Amazon ECS service that's a member of a namespace only to connect to other services within the namespace. An example of this would be a frontend application that accepts incoming requests from either a load balancer that's attached to the service or by other means.
An object selects a port from the task definition, assigns a name for the Cloud Map service, and a list of aliases (endpoints) and ports for client applications to refer to this service.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
services
ServiceConnectConfiguration.Builder services(Consumer<ServiceConnectService.Builder>... services)
The list of Service Connect service objects. These are names and aliases (also known as endpoints) that are used by other Amazon ECS services to connect to this service.
This field is not required for a "client" Amazon ECS service that's a member of a namespace only to connect to other services within the namespace. An example of this would be a frontend application that accepts incoming requests from either a load balancer that's attached to the service or by other means.
An object selects a port from the task definition, assigns a name for the Cloud Map service, and a list of aliases (endpoints) and ports for client applications to refer to this service.
This is a convenience method that creates an instance of theServiceConnectService.Builder
avoiding the need to create one manually viaServiceConnectService.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#services(List
.) - Parameters:
services
- a consumer that will call methods onServiceConnectService.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#services(java.util.Collection
)
-
logConfiguration
ServiceConnectConfiguration.Builder logConfiguration(LogConfiguration logConfiguration)
Sets the value of the LogConfiguration property for this object.- Parameters:
logConfiguration
- The new value for the LogConfiguration property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logConfiguration
default ServiceConnectConfiguration.Builder logConfiguration(Consumer<LogConfiguration.Builder> logConfiguration)
Sets the value of the LogConfiguration property for this object. This is a convenience method that creates an instance of theLogConfiguration.Builder
avoiding the need to create one manually viaLogConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tologConfiguration(LogConfiguration)
.- Parameters:
logConfiguration
- a consumer that will call methods onLogConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
logConfiguration(LogConfiguration)
-
-