Interface ExpressGatewayContainer.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ExpressGatewayContainer.Builder,ExpressGatewayContainer>,SdkBuilder<ExpressGatewayContainer.Builder,ExpressGatewayContainer>,SdkPojo
- Enclosing class:
- ExpressGatewayContainer
@Mutable @NotThreadSafe public static interface ExpressGatewayContainer.Builder extends SdkPojo, CopyableBuilder<ExpressGatewayContainer.Builder,ExpressGatewayContainer>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ExpressGatewayContainer.BuilderawsLogsConfiguration(Consumer<ExpressGatewayServiceAwsLogsConfiguration.Builder> awsLogsConfiguration)The log configuration for the container.ExpressGatewayContainer.BuilderawsLogsConfiguration(ExpressGatewayServiceAwsLogsConfiguration awsLogsConfiguration)The log configuration for the container.ExpressGatewayContainer.Buildercommand(String... command)The command that is passed to the container.ExpressGatewayContainer.Buildercommand(Collection<String> command)The command that is passed to the container.ExpressGatewayContainer.BuildercontainerPort(Integer containerPort)The port number on the container that receives traffic from the load balancer.ExpressGatewayContainer.Builderenvironment(Collection<KeyValuePair> environment)The environment variables to pass to the container.ExpressGatewayContainer.Builderenvironment(Consumer<KeyValuePair.Builder>... environment)The environment variables to pass to the container.ExpressGatewayContainer.Builderenvironment(KeyValuePair... environment)The environment variables to pass to the container.ExpressGatewayContainer.Builderimage(String image)The image used to start a container.default ExpressGatewayContainer.BuilderrepositoryCredentials(Consumer<ExpressGatewayRepositoryCredentials.Builder> repositoryCredentials)The configuration for repository credentials for private registry authentication.ExpressGatewayContainer.BuilderrepositoryCredentials(ExpressGatewayRepositoryCredentials repositoryCredentials)The configuration for repository credentials for private registry authentication.ExpressGatewayContainer.Buildersecrets(Collection<Secret> secrets)The secrets to pass to the container.ExpressGatewayContainer.Buildersecrets(Consumer<Secret.Builder>... secrets)The secrets to pass to the container.ExpressGatewayContainer.Buildersecrets(Secret... secrets)The secrets to pass to the container.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
image
ExpressGatewayContainer.Builder image(String image)
The image used to start a container. This string is passed directly to the Docker daemon. Images in the Docker Hub registry are available by default. Other repositories are specified with either
repository-url/image:tagorrepository-url/image@digest.For Express services, the image typically contains a web application that listens on the specified container port. The image can be stored in Amazon ECR, Docker Hub, or any other container registry accessible to your execution role.
- Parameters:
image- The image used to start a container. This string is passed directly to the Docker daemon. Images in the Docker Hub registry are available by default. Other repositories are specified with eitherrepository-url/image:tagorrepository-url/image@digest.For Express services, the image typically contains a web application that listens on the specified container port. The image can be stored in Amazon ECR, Docker Hub, or any other container registry accessible to your execution role.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerPort
ExpressGatewayContainer.Builder containerPort(Integer containerPort)
The port number on the container that receives traffic from the load balancer. Default is 80.
- Parameters:
containerPort- The port number on the container that receives traffic from the load balancer. Default is 80.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
awsLogsConfiguration
ExpressGatewayContainer.Builder awsLogsConfiguration(ExpressGatewayServiceAwsLogsConfiguration awsLogsConfiguration)
The log configuration for the container.
- Parameters:
awsLogsConfiguration- The log configuration for the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
awsLogsConfiguration
default ExpressGatewayContainer.Builder awsLogsConfiguration(Consumer<ExpressGatewayServiceAwsLogsConfiguration.Builder> awsLogsConfiguration)
The log configuration for the container.
This is a convenience method that creates an instance of theExpressGatewayServiceAwsLogsConfiguration.Builderavoiding the need to create one manually viaExpressGatewayServiceAwsLogsConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toawsLogsConfiguration(ExpressGatewayServiceAwsLogsConfiguration).- Parameters:
awsLogsConfiguration- a consumer that will call methods onExpressGatewayServiceAwsLogsConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
awsLogsConfiguration(ExpressGatewayServiceAwsLogsConfiguration)
-
repositoryCredentials
ExpressGatewayContainer.Builder repositoryCredentials(ExpressGatewayRepositoryCredentials repositoryCredentials)
The configuration for repository credentials for private registry authentication.
- Parameters:
repositoryCredentials- The configuration for repository credentials for private registry authentication.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
repositoryCredentials
default ExpressGatewayContainer.Builder repositoryCredentials(Consumer<ExpressGatewayRepositoryCredentials.Builder> repositoryCredentials)
The configuration for repository credentials for private registry authentication.
This is a convenience method that creates an instance of theExpressGatewayRepositoryCredentials.Builderavoiding the need to create one manually viaExpressGatewayRepositoryCredentials.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torepositoryCredentials(ExpressGatewayRepositoryCredentials).- Parameters:
repositoryCredentials- a consumer that will call methods onExpressGatewayRepositoryCredentials.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
repositoryCredentials(ExpressGatewayRepositoryCredentials)
-
command
ExpressGatewayContainer.Builder command(Collection<String> command)
The command that is passed to the container.
- Parameters:
command- The command that is passed to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
command
ExpressGatewayContainer.Builder command(String... command)
The command that is passed to the container.
- Parameters:
command- The command that is passed to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environment
ExpressGatewayContainer.Builder environment(Collection<KeyValuePair> environment)
The environment variables to pass to the container.
- Parameters:
environment- The environment variables to pass to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environment
ExpressGatewayContainer.Builder environment(KeyValuePair... environment)
The environment variables to pass to the container.
- Parameters:
environment- The environment variables to pass to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environment
ExpressGatewayContainer.Builder environment(Consumer<KeyValuePair.Builder>... environment)
The environment variables to pass to the container.
This is a convenience method that creates an instance of theKeyValuePair.Builderavoiding the need to create one manually viaKeyValuePair.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#environment(List.) - Parameters:
environment- a consumer that will call methods onKeyValuePair.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#environment(java.util.Collection)
-
secrets
ExpressGatewayContainer.Builder secrets(Collection<Secret> secrets)
The secrets to pass to the container.
- Parameters:
secrets- The secrets to pass to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secrets
ExpressGatewayContainer.Builder secrets(Secret... secrets)
The secrets to pass to the container.
- Parameters:
secrets- The secrets to pass to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secrets
ExpressGatewayContainer.Builder secrets(Consumer<Secret.Builder>... secrets)
The secrets to pass to the container.
This is a convenience method that creates an instance of theSecret.Builderavoiding the need to create one manually viaSecret.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#secrets(List.) - Parameters:
secrets- a consumer that will call methods onSecret.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#secrets(java.util.Collection)
-
-