Interface ContainerStateChange.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<ContainerStateChange.Builder,ContainerStateChange>
,SdkBuilder<ContainerStateChange.Builder,ContainerStateChange>
,SdkPojo
- Enclosing class:
- ContainerStateChange
public static interface ContainerStateChange.Builder extends SdkPojo, CopyableBuilder<ContainerStateChange.Builder,ContainerStateChange>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ContainerStateChange.Builder
containerName(String containerName)
The name of the container.ContainerStateChange.Builder
exitCode(Integer exitCode)
The exit code for the container, if the state change is a result of the container exiting.ContainerStateChange.Builder
imageDigest(String imageDigest)
The container image SHA 256 digest.ContainerStateChange.Builder
networkBindings(Collection<NetworkBinding> networkBindings)
Any network bindings that are associated with the container.ContainerStateChange.Builder
networkBindings(Consumer<NetworkBinding.Builder>... networkBindings)
Any network bindings that are associated with the container.ContainerStateChange.Builder
networkBindings(NetworkBinding... networkBindings)
Any network bindings that are associated with the container.ContainerStateChange.Builder
reason(String reason)
The reason for the state change.ContainerStateChange.Builder
runtimeId(String runtimeId)
The ID of the Docker container.ContainerStateChange.Builder
status(String status)
The status of 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, sdkFields
-
-
-
-
Method Detail
-
containerName
ContainerStateChange.Builder containerName(String containerName)
The name of the container.
- Parameters:
containerName
- The name of the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageDigest
ContainerStateChange.Builder imageDigest(String imageDigest)
The container image SHA 256 digest.
- Parameters:
imageDigest
- The container image SHA 256 digest.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
runtimeId
ContainerStateChange.Builder runtimeId(String runtimeId)
The ID of the Docker container.
- Parameters:
runtimeId
- The ID of the Docker container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exitCode
ContainerStateChange.Builder exitCode(Integer exitCode)
The exit code for the container, if the state change is a result of the container exiting.
- Parameters:
exitCode
- The exit code for the container, if the state change is a result of the container exiting.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkBindings
ContainerStateChange.Builder networkBindings(Collection<NetworkBinding> networkBindings)
Any network bindings that are associated with the container.
- Parameters:
networkBindings
- Any network bindings that are associated with the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkBindings
ContainerStateChange.Builder networkBindings(NetworkBinding... networkBindings)
Any network bindings that are associated with the container.
- Parameters:
networkBindings
- Any network bindings that are associated with the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkBindings
ContainerStateChange.Builder networkBindings(Consumer<NetworkBinding.Builder>... networkBindings)
Any network bindings that are associated with the container.
This is a convenience method that creates an instance of theNetworkBinding.Builder
avoiding the need to create one manually viaNetworkBinding.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#networkBindings(List
.) - Parameters:
networkBindings
- a consumer that will call methods onNetworkBinding.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#networkBindings(java.util.Collection
)
-
reason
ContainerStateChange.Builder reason(String reason)
The reason for the state change.
- Parameters:
reason
- The reason for the state change.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
ContainerStateChange.Builder status(String status)
The status of the container.
- Parameters:
status
- The status of the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-