Interface EksPodPropertiesDetail.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<EksPodPropertiesDetail.Builder,
,EksPodPropertiesDetail> SdkBuilder<EksPodPropertiesDetail.Builder,
,EksPodPropertiesDetail> SdkPojo
- Enclosing class:
EksPodPropertiesDetail
-
Method Summary
Modifier and TypeMethodDescriptioncontainers
(Collection<EksContainerDetail> containers) The properties of the container that's used on the Amazon EKS pod.containers
(Consumer<EksContainerDetail.Builder>... containers) The properties of the container that's used on the Amazon EKS pod.containers
(EksContainerDetail... containers) The properties of the container that's used on the Amazon EKS pod.The DNS policy for the pod.hostNetwork
(Boolean hostNetwork) Indicates if the pod uses the hosts' network IP address.default EksPodPropertiesDetail.Builder
metadata
(Consumer<EksMetadata.Builder> metadata) Sets the value of the Metadata property for this object.metadata
(EksMetadata metadata) Sets the value of the Metadata property for this object.The name of the node for this job.The name of the pod for this job.serviceAccountName
(String serviceAccountName) The name of the service account that's used to run the pod.volumes
(Collection<EksVolume> volumes) Specifies the volumes for a job definition using Amazon EKS resources.volumes
(Consumer<EksVolume.Builder>... volumes) Specifies the volumes for a job definition using Amazon EKS resources.Specifies the volumes for a job definition using Amazon EKS resources.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 Details
-
serviceAccountName
The name of the service account that's used to run the pod. For more information, see Kubernetes service accounts and Configure a Kubernetes service account to assume an IAM role in the Amazon EKS User Guide and Configure service accounts for pods in the Kubernetes documentation.
- Parameters:
serviceAccountName
- The name of the service account that's used to run the pod. For more information, see Kubernetes service accounts and Configure a Kubernetes service account to assume an IAM role in the Amazon EKS User Guide and Configure service accounts for pods in the Kubernetes documentation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hostNetwork
Indicates if the pod uses the hosts' network IP address. The default value is
true
. Setting this tofalse
enables the Kubernetes pod networking model. Most Batch workloads are egress-only and don't require the overhead of IP allocation for each pod for incoming connections. For more information, see Host namespaces and Pod networking in the Kubernetes documentation.- Parameters:
hostNetwork
- Indicates if the pod uses the hosts' network IP address. The default value istrue
. Setting this tofalse
enables the Kubernetes pod networking model. Most Batch workloads are egress-only and don't require the overhead of IP allocation for each pod for incoming connections. For more information, see Host namespaces and Pod networking in the Kubernetes documentation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dnsPolicy
The DNS policy for the pod. The default value is
ClusterFirst
. If thehostNetwork
parameter is not specified, the default isClusterFirstWithHostNet
.ClusterFirst
indicates that any DNS query that does not match the configured cluster domain suffix is forwarded to the upstream nameserver inherited from the node. If no value was specified fordnsPolicy
in the RegisterJobDefinition API operation, then no value will be returned fordnsPolicy
by either of DescribeJobDefinitions or DescribeJobs API operations. The pod spec setting will contain eitherClusterFirst
orClusterFirstWithHostNet
, depending on the value of thehostNetwork
parameter. For more information, see Pod's DNS policy in the Kubernetes documentation.Valid values:
Default
|ClusterFirst
|ClusterFirstWithHostNet
- Parameters:
dnsPolicy
- The DNS policy for the pod. The default value isClusterFirst
. If thehostNetwork
parameter is not specified, the default isClusterFirstWithHostNet
.ClusterFirst
indicates that any DNS query that does not match the configured cluster domain suffix is forwarded to the upstream nameserver inherited from the node. If no value was specified fordnsPolicy
in the RegisterJobDefinition API operation, then no value will be returned fordnsPolicy
by either of DescribeJobDefinitions or DescribeJobs API operations. The pod spec setting will contain eitherClusterFirst
orClusterFirstWithHostNet
, depending on the value of thehostNetwork
parameter. For more information, see Pod's DNS policy in the Kubernetes documentation.Valid values:
Default
|ClusterFirst
|ClusterFirstWithHostNet
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containers
The properties of the container that's used on the Amazon EKS pod.
- Parameters:
containers
- The properties of the container that's used on the Amazon EKS pod.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containers
The properties of the container that's used on the Amazon EKS pod.
- Parameters:
containers
- The properties of the container that's used on the Amazon EKS pod.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containers
The properties of the container that's used on the Amazon EKS pod.
This is a convenience method that creates an instance of theEksContainerDetail.Builder
avoiding the need to create one manually viaEksContainerDetail.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontainers(List<EksContainerDetail>)
.- Parameters:
containers
- a consumer that will call methods onEksContainerDetail.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
volumes
Specifies the volumes for a job definition using Amazon EKS resources.
- Parameters:
volumes
- Specifies the volumes for a job definition using Amazon EKS resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumes
Specifies the volumes for a job definition using Amazon EKS resources.
- Parameters:
volumes
- Specifies the volumes for a job definition using Amazon EKS resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumes
Specifies the volumes for a job definition using Amazon EKS resources.
This is a convenience method that creates an instance of theEksVolume.Builder
avoiding the need to create one manually viaEksVolume.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovolumes(List<EksVolume>)
.- Parameters:
volumes
- a consumer that will call methods onEksVolume.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
podName
The name of the pod for this job.
- Parameters:
podName
- The name of the pod for this job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nodeName
The name of the node for this job.
- Parameters:
nodeName
- The name of the node for this job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadata
Sets the value of the Metadata property for this object.- Parameters:
metadata
- The new value for the Metadata property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadata
Sets the value of the Metadata property for this object. This is a convenience method that creates an instance of theEksMetadata.Builder
avoiding the need to create one manually viaEksMetadata.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometadata(EksMetadata)
.- Parameters:
metadata
- a consumer that will call methods onEksMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-