Interface EksPodPropertiesDetail.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<EksPodPropertiesDetail.Builder,EksPodPropertiesDetail>,SdkBuilder<EksPodPropertiesDetail.Builder,EksPodPropertiesDetail>,SdkPojo
- Enclosing class:
- EksPodPropertiesDetail
public static interface EksPodPropertiesDetail.Builder extends SdkPojo, CopyableBuilder<EksPodPropertiesDetail.Builder,EksPodPropertiesDetail>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description EksPodPropertiesDetail.Buildercontainers(Collection<EksContainerDetail> containers)The properties of the container that's used on the Amazon EKS pod.EksPodPropertiesDetail.Buildercontainers(Consumer<EksContainerDetail.Builder>... containers)The properties of the container that's used on the Amazon EKS pod.EksPodPropertiesDetail.Buildercontainers(EksContainerDetail... containers)The properties of the container that's used on the Amazon EKS pod.EksPodPropertiesDetail.BuilderdnsPolicy(String dnsPolicy)The DNS policy for the pod.EksPodPropertiesDetail.BuilderhostNetwork(Boolean hostNetwork)Indicates if the pod uses the hosts' network IP address.EksPodPropertiesDetail.BuilderimagePullSecrets(Collection<ImagePullSecret> imagePullSecrets)Displays the reference pointer to the Kubernetes secret resource.EksPodPropertiesDetail.BuilderimagePullSecrets(Consumer<ImagePullSecret.Builder>... imagePullSecrets)Displays the reference pointer to the Kubernetes secret resource.EksPodPropertiesDetail.BuilderimagePullSecrets(ImagePullSecret... imagePullSecrets)Displays the reference pointer to the Kubernetes secret resource.EksPodPropertiesDetail.BuilderinitContainers(Collection<EksContainerDetail> initContainers)The container registered with the Amazon EKS Connector agent and persists the registration information in the Kubernetes backend data store.EksPodPropertiesDetail.BuilderinitContainers(Consumer<EksContainerDetail.Builder>... initContainers)The container registered with the Amazon EKS Connector agent and persists the registration information in the Kubernetes backend data store.EksPodPropertiesDetail.BuilderinitContainers(EksContainerDetail... initContainers)The container registered with the Amazon EKS Connector agent and persists the registration information in the Kubernetes backend data store.default EksPodPropertiesDetail.Buildermetadata(Consumer<EksMetadata.Builder> metadata)Describes and uniquely identifies Kubernetes resources.EksPodPropertiesDetail.Buildermetadata(EksMetadata metadata)Describes and uniquely identifies Kubernetes resources.EksPodPropertiesDetail.BuildernodeName(String nodeName)The name of the node for this job.EksPodPropertiesDetail.BuilderpodName(String podName)The name of the pod for this job.EksPodPropertiesDetail.BuilderserviceAccountName(String serviceAccountName)The name of the service account that's used to run the pod.EksPodPropertiesDetail.BuildershareProcessNamespace(Boolean shareProcessNamespace)Indicates if the processes in a container are shared, or visible, to other containers in the same pod.EksPodPropertiesDetail.Buildervolumes(Collection<EksVolume> volumes)Specifies the volumes for a job definition using Amazon EKS resources.EksPodPropertiesDetail.Buildervolumes(Consumer<EksVolume.Builder>... volumes)Specifies the volumes for a job definition using Amazon EKS resources.EksPodPropertiesDetail.Buildervolumes(EksVolume... volumes)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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
serviceAccountName
EksPodPropertiesDetail.Builder serviceAccountName(String 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
EksPodPropertiesDetail.Builder hostNetwork(Boolean hostNetwork)
Indicates if the pod uses the hosts' network IP address. The default value is
true. Setting this tofalseenables 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 tofalseenables 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
EksPodPropertiesDetail.Builder dnsPolicy(String dnsPolicy)
The DNS policy for the pod. The default value is
ClusterFirst. If thehostNetworkparameter is not specified, the default isClusterFirstWithHostNet.ClusterFirstindicates 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 fordnsPolicyin the RegisterJobDefinition API operation, then no value will be returned fordnsPolicyby either of DescribeJobDefinitions or DescribeJobs API operations. The pod spec setting will contain eitherClusterFirstorClusterFirstWithHostNet, depending on the value of thehostNetworkparameter. 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 thehostNetworkparameter is not specified, the default isClusterFirstWithHostNet.ClusterFirstindicates 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 fordnsPolicyin the RegisterJobDefinition API operation, then no value will be returned fordnsPolicyby either of DescribeJobDefinitions or DescribeJobs API operations. The pod spec setting will contain eitherClusterFirstorClusterFirstWithHostNet, depending on the value of thehostNetworkparameter. 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.
-
imagePullSecrets
EksPodPropertiesDetail.Builder imagePullSecrets(Collection<ImagePullSecret> imagePullSecrets)
Displays the reference pointer to the Kubernetes secret resource. These secrets help to gain access to pull an images from a private registry.
- Parameters:
imagePullSecrets- Displays the reference pointer to the Kubernetes secret resource. These secrets help to gain access to pull an images from a private registry.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imagePullSecrets
EksPodPropertiesDetail.Builder imagePullSecrets(ImagePullSecret... imagePullSecrets)
Displays the reference pointer to the Kubernetes secret resource. These secrets help to gain access to pull an images from a private registry.
- Parameters:
imagePullSecrets- Displays the reference pointer to the Kubernetes secret resource. These secrets help to gain access to pull an images from a private registry.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imagePullSecrets
EksPodPropertiesDetail.Builder imagePullSecrets(Consumer<ImagePullSecret.Builder>... imagePullSecrets)
Displays the reference pointer to the Kubernetes secret resource. These secrets help to gain access to pull an images from a private registry.
This is a convenience method that creates an instance of theImagePullSecret.Builderavoiding the need to create one manually viaImagePullSecret.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#imagePullSecrets(List.) - Parameters:
imagePullSecrets- a consumer that will call methods onImagePullSecret.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#imagePullSecrets(java.util.Collection)
-
containers
EksPodPropertiesDetail.Builder containers(Collection<EksContainerDetail> 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
EksPodPropertiesDetail.Builder containers(EksContainerDetail... 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
EksPodPropertiesDetail.Builder containers(Consumer<EksContainerDetail.Builder>... 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.Builderavoiding the need to create one manually viaEksContainerDetail.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#containers(List.) - 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:
#containers(java.util.Collection)
-
initContainers
EksPodPropertiesDetail.Builder initContainers(Collection<EksContainerDetail> initContainers)
The container registered with the Amazon EKS Connector agent and persists the registration information in the Kubernetes backend data store.
- Parameters:
initContainers- The container registered with the Amazon EKS Connector agent and persists the registration information in the Kubernetes backend data store.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
initContainers
EksPodPropertiesDetail.Builder initContainers(EksContainerDetail... initContainers)
The container registered with the Amazon EKS Connector agent and persists the registration information in the Kubernetes backend data store.
- Parameters:
initContainers- The container registered with the Amazon EKS Connector agent and persists the registration information in the Kubernetes backend data store.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
initContainers
EksPodPropertiesDetail.Builder initContainers(Consumer<EksContainerDetail.Builder>... initContainers)
The container registered with the Amazon EKS Connector agent and persists the registration information in the Kubernetes backend data store.
This is a convenience method that creates an instance of theEksContainerDetail.Builderavoiding the need to create one manually viaEksContainerDetail.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#initContainers(List.) - Parameters:
initContainers- 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:
#initContainers(java.util.Collection)
-
volumes
EksPodPropertiesDetail.Builder volumes(Collection<EksVolume> 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
EksPodPropertiesDetail.Builder volumes(EksVolume... 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
EksPodPropertiesDetail.Builder volumes(Consumer<EksVolume.Builder>... volumes)
Specifies the volumes for a job definition using Amazon EKS resources.
This is a convenience method that creates an instance of theEksVolume.Builderavoiding the need to create one manually viaEksVolume.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#volumes(List.) - 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:
#volumes(java.util.Collection)
-
podName
EksPodPropertiesDetail.Builder podName(String 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
EksPodPropertiesDetail.Builder nodeName(String 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
EksPodPropertiesDetail.Builder metadata(EksMetadata metadata)
Describes and uniquely identifies Kubernetes resources. For example, the compute environment that a pod runs in or the
jobIDfor a job running in the pod. For more information, see Understanding Kubernetes Objects in the Kubernetes documentation.- Parameters:
metadata- Describes and uniquely identifies Kubernetes resources. For example, the compute environment that a pod runs in or thejobIDfor a job running in the pod. For more information, see Understanding Kubernetes Objects in the Kubernetes documentation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadata
default EksPodPropertiesDetail.Builder metadata(Consumer<EksMetadata.Builder> metadata)
Describes and uniquely identifies Kubernetes resources. For example, the compute environment that a pod runs in or the
This is a convenience method that creates an instance of thejobIDfor a job running in the pod. For more information, see Understanding Kubernetes Objects in the Kubernetes documentation.EksMetadata.Builderavoiding the need to create one manually viaEksMetadata.builder().When the
Consumercompletes,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:
metadata(EksMetadata)
-
shareProcessNamespace
EksPodPropertiesDetail.Builder shareProcessNamespace(Boolean shareProcessNamespace)
Indicates if the processes in a container are shared, or visible, to other containers in the same pod. For more information, see Share Process Namespace between Containers in a Pod.
- Parameters:
shareProcessNamespace- Indicates if the processes in a container are shared, or visible, to other containers in the same pod. For more information, see Share Process Namespace between Containers in a Pod.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-