Interface ExpressGatewayContainer.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ExpressGatewayContainer.Builder,,ExpressGatewayContainer> SdkBuilder<ExpressGatewayContainer.Builder,,ExpressGatewayContainer> SdkPojo
- Enclosing class:
ExpressGatewayContainer
-
Method Summary
Modifier and TypeMethodDescriptiondefault ExpressGatewayContainer.BuilderawsLogsConfiguration(Consumer<ExpressGatewayServiceAwsLogsConfiguration.Builder> awsLogsConfiguration) The log configuration for the container.awsLogsConfiguration(ExpressGatewayServiceAwsLogsConfiguration awsLogsConfiguration) The log configuration for the container.The command that is passed to the container.command(Collection<String> command) The command that is passed to the container.containerPort(Integer containerPort) The port number on the container that receives traffic from the load balancer.environment(Collection<KeyValuePair> environment) The environment variables to pass to the container.environment(Consumer<KeyValuePair.Builder>... environment) The environment variables to pass to the container.environment(KeyValuePair... environment) The environment variables to pass to the container.The image used to start a container.default ExpressGatewayContainer.BuilderrepositoryCredentials(Consumer<ExpressGatewayRepositoryCredentials.Builder> repositoryCredentials) The configuration for repository credentials for private registry authentication.repositoryCredentials(ExpressGatewayRepositoryCredentials repositoryCredentials) The configuration for repository credentials for private registry authentication.secrets(Collection<Secret> secrets) The secrets to pass to the container.secrets(Consumer<Secret.Builder>... secrets) The secrets to pass to the container.The secrets to pass to the container.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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:
-
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:
-
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
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
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
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
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 toenvironment(List<KeyValuePair>).- 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:
-
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
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
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 tosecrets(List<Secret>).- 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:
-