@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EksPodProperties extends Object implements Serializable, Cloneable, StructuredPojo
The properties for the pod.
Constructor and Description |
---|
EksPodProperties() |
Modifier and Type | Method and Description |
---|---|
EksPodProperties |
clone() |
boolean |
equals(Object obj) |
List<EksContainer> |
getContainers()
The properties of the container that's used on the Amazon EKS pod.
|
String |
getDnsPolicy()
The DNS policy for the pod.
|
Boolean |
getHostNetwork()
Indicates if the pod uses the hosts' network IP address.
|
List<ImagePullSecret> |
getImagePullSecrets()
References a Kubernetes secret resource.
|
List<EksContainer> |
getInitContainers()
These containers run before application containers, always runs to completion, and must complete successfully
before the next container starts.
|
EksMetadata |
getMetadata()
Metadata about the Kubernetes pod.
|
String |
getServiceAccountName()
The name of the service account that's used to run the pod.
|
Boolean |
getShareProcessNamespace()
Indicates if the processes in a container are shared, or visible, to other containers in the same pod.
|
List<EksVolume> |
getVolumes()
Specifies the volumes for a job definition that uses Amazon EKS resources.
|
int |
hashCode() |
Boolean |
isHostNetwork()
Indicates if the pod uses the hosts' network IP address.
|
Boolean |
isShareProcessNamespace()
Indicates if the processes in a container are shared, or visible, to other containers in the same pod.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContainers(Collection<EksContainer> containers)
The properties of the container that's used on the Amazon EKS pod.
|
void |
setDnsPolicy(String dnsPolicy)
The DNS policy for the pod.
|
void |
setHostNetwork(Boolean hostNetwork)
Indicates if the pod uses the hosts' network IP address.
|
void |
setImagePullSecrets(Collection<ImagePullSecret> imagePullSecrets)
References a Kubernetes secret resource.
|
void |
setInitContainers(Collection<EksContainer> initContainers)
These containers run before application containers, always runs to completion, and must complete successfully
before the next container starts.
|
void |
setMetadata(EksMetadata metadata)
Metadata about the Kubernetes pod.
|
void |
setServiceAccountName(String serviceAccountName)
The name of the service account that's used to run the pod.
|
void |
setShareProcessNamespace(Boolean shareProcessNamespace)
Indicates if the processes in a container are shared, or visible, to other containers in the same pod.
|
void |
setVolumes(Collection<EksVolume> volumes)
Specifies the volumes for a job definition that uses Amazon EKS resources.
|
String |
toString()
Returns a string representation of this object.
|
EksPodProperties |
withContainers(Collection<EksContainer> containers)
The properties of the container that's used on the Amazon EKS pod.
|
EksPodProperties |
withContainers(EksContainer... containers)
The properties of the container that's used on the Amazon EKS pod.
|
EksPodProperties |
withDnsPolicy(String dnsPolicy)
The DNS policy for the pod.
|
EksPodProperties |
withHostNetwork(Boolean hostNetwork)
Indicates if the pod uses the hosts' network IP address.
|
EksPodProperties |
withImagePullSecrets(Collection<ImagePullSecret> imagePullSecrets)
References a Kubernetes secret resource.
|
EksPodProperties |
withImagePullSecrets(ImagePullSecret... imagePullSecrets)
References a Kubernetes secret resource.
|
EksPodProperties |
withInitContainers(Collection<EksContainer> initContainers)
These containers run before application containers, always runs to completion, and must complete successfully
before the next container starts.
|
EksPodProperties |
withInitContainers(EksContainer... initContainers)
These containers run before application containers, always runs to completion, and must complete successfully
before the next container starts.
|
EksPodProperties |
withMetadata(EksMetadata metadata)
Metadata about the Kubernetes pod.
|
EksPodProperties |
withServiceAccountName(String serviceAccountName)
The name of the service account that's used to run the pod.
|
EksPodProperties |
withShareProcessNamespace(Boolean shareProcessNamespace)
Indicates if the processes in a container are shared, or visible, to other containers in the same pod.
|
EksPodProperties |
withVolumes(Collection<EksVolume> volumes)
Specifies the volumes for a job definition that uses Amazon EKS resources.
|
EksPodProperties |
withVolumes(EksVolume... volumes)
Specifies the volumes for a job definition that uses Amazon EKS resources.
|
public void setServiceAccountName(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.
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.public String getServiceAccountName()
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.
public EksPodProperties withServiceAccountName(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.
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.public void setHostNetwork(Boolean hostNetwork)
Indicates if the pod uses the hosts' network IP address. The default value is true
. Setting this to
false
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.
hostNetwork
- Indicates if the pod uses the hosts' network IP address. The default value is true
. Setting
this to false
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.public Boolean getHostNetwork()
Indicates if the pod uses the hosts' network IP address. The default value is true
. Setting this to
false
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.
true
. Setting
this to false
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.public EksPodProperties withHostNetwork(Boolean hostNetwork)
Indicates if the pod uses the hosts' network IP address. The default value is true
. Setting this to
false
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.
hostNetwork
- Indicates if the pod uses the hosts' network IP address. The default value is true
. Setting
this to false
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.public Boolean isHostNetwork()
Indicates if the pod uses the hosts' network IP address. The default value is true
. Setting this to
false
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.
true
. Setting
this to false
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.public void setDnsPolicy(String dnsPolicy)
The DNS policy for the pod. The default value is ClusterFirst
. If the hostNetwork
parameter is not specified, the default is ClusterFirstWithHostNet
. 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. For more information, see Pod's DNS
policy in the Kubernetes documentation.
Valid values: Default
| ClusterFirst
| ClusterFirstWithHostNet
dnsPolicy
- The DNS policy for the pod. The default value is ClusterFirst
. If the
hostNetwork
parameter is not specified, the default is ClusterFirstWithHostNet
.
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. For more information, see Pod's DNS
policy in the Kubernetes documentation.
Valid values: Default
| ClusterFirst
| ClusterFirstWithHostNet
public String getDnsPolicy()
The DNS policy for the pod. The default value is ClusterFirst
. If the hostNetwork
parameter is not specified, the default is ClusterFirstWithHostNet
. 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. For more information, see Pod's DNS
policy in the Kubernetes documentation.
Valid values: Default
| ClusterFirst
| ClusterFirstWithHostNet
ClusterFirst
. If the
hostNetwork
parameter is not specified, the default is ClusterFirstWithHostNet
.
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. For more information, see Pod's
DNS policy in the Kubernetes documentation.
Valid values: Default
| ClusterFirst
| ClusterFirstWithHostNet
public EksPodProperties withDnsPolicy(String dnsPolicy)
The DNS policy for the pod. The default value is ClusterFirst
. If the hostNetwork
parameter is not specified, the default is ClusterFirstWithHostNet
. 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. For more information, see Pod's DNS
policy in the Kubernetes documentation.
Valid values: Default
| ClusterFirst
| ClusterFirstWithHostNet
dnsPolicy
- The DNS policy for the pod. The default value is ClusterFirst
. If the
hostNetwork
parameter is not specified, the default is ClusterFirstWithHostNet
.
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. For more information, see Pod's DNS
policy in the Kubernetes documentation.
Valid values: Default
| ClusterFirst
| ClusterFirstWithHostNet
public List<ImagePullSecret> getImagePullSecrets()
References a Kubernetes secret resource. It holds a list of secrets. These secrets help to gain access to pull an images from a private registry.
ImagePullSecret$name
is required when this object is used.
ImagePullSecret$name
is required when this object is used.
public void setImagePullSecrets(Collection<ImagePullSecret> imagePullSecrets)
References a Kubernetes secret resource. It holds a list of secrets. These secrets help to gain access to pull an images from a private registry.
ImagePullSecret$name
is required when this object is used.
imagePullSecrets
- References a Kubernetes secret resource. It holds a list of secrets. These secrets help to gain access to
pull an images from a private registry.
ImagePullSecret$name
is required when this object is used.
public EksPodProperties withImagePullSecrets(ImagePullSecret... imagePullSecrets)
References a Kubernetes secret resource. It holds a list of secrets. These secrets help to gain access to pull an images from a private registry.
ImagePullSecret$name
is required when this object is used.
NOTE: This method appends the values to the existing list (if any). Use
setImagePullSecrets(java.util.Collection)
or withImagePullSecrets(java.util.Collection)
if you
want to override the existing values.
imagePullSecrets
- References a Kubernetes secret resource. It holds a list of secrets. These secrets help to gain access to
pull an images from a private registry.
ImagePullSecret$name
is required when this object is used.
public EksPodProperties withImagePullSecrets(Collection<ImagePullSecret> imagePullSecrets)
References a Kubernetes secret resource. It holds a list of secrets. These secrets help to gain access to pull an images from a private registry.
ImagePullSecret$name
is required when this object is used.
imagePullSecrets
- References a Kubernetes secret resource. It holds a list of secrets. These secrets help to gain access to
pull an images from a private registry.
ImagePullSecret$name
is required when this object is used.
public List<EksContainer> getContainers()
The properties of the container that's used on the Amazon EKS pod.
public void setContainers(Collection<EksContainer> containers)
The properties of the container that's used on the Amazon EKS pod.
containers
- The properties of the container that's used on the Amazon EKS pod.public EksPodProperties withContainers(EksContainer... containers)
The properties of the container that's used on the Amazon EKS pod.
NOTE: This method appends the values to the existing list (if any). Use
setContainers(java.util.Collection)
or withContainers(java.util.Collection)
if you want to
override the existing values.
containers
- The properties of the container that's used on the Amazon EKS pod.public EksPodProperties withContainers(Collection<EksContainer> containers)
The properties of the container that's used on the Amazon EKS pod.
containers
- The properties of the container that's used on the Amazon EKS pod.public List<EksContainer> getInitContainers()
These containers run before application containers, always runs to completion, and must complete successfully before the next container starts. These containers are registered with the Amazon EKS Connector agent and persists the registration information in the Kubernetes backend data store. For more information, see Init Containers in the Kubernetes documentation.
This object is limited to 10 elements
This object is limited to 10 elements
public void setInitContainers(Collection<EksContainer> initContainers)
These containers run before application containers, always runs to completion, and must complete successfully before the next container starts. These containers are registered with the Amazon EKS Connector agent and persists the registration information in the Kubernetes backend data store. For more information, see Init Containers in the Kubernetes documentation.
This object is limited to 10 elements
initContainers
- These containers run before application containers, always runs to completion, and must complete
successfully before the next container starts. These containers are registered with the Amazon EKS
Connector agent and persists the registration information in the Kubernetes backend data store. For more
information, see Init
Containers in the Kubernetes documentation. This object is limited to 10 elements
public EksPodProperties withInitContainers(EksContainer... initContainers)
These containers run before application containers, always runs to completion, and must complete successfully before the next container starts. These containers are registered with the Amazon EKS Connector agent and persists the registration information in the Kubernetes backend data store. For more information, see Init Containers in the Kubernetes documentation.
This object is limited to 10 elements
NOTE: This method appends the values to the existing list (if any). Use
setInitContainers(java.util.Collection)
or withInitContainers(java.util.Collection)
if you want
to override the existing values.
initContainers
- These containers run before application containers, always runs to completion, and must complete
successfully before the next container starts. These containers are registered with the Amazon EKS
Connector agent and persists the registration information in the Kubernetes backend data store. For more
information, see Init
Containers in the Kubernetes documentation. This object is limited to 10 elements
public EksPodProperties withInitContainers(Collection<EksContainer> initContainers)
These containers run before application containers, always runs to completion, and must complete successfully before the next container starts. These containers are registered with the Amazon EKS Connector agent and persists the registration information in the Kubernetes backend data store. For more information, see Init Containers in the Kubernetes documentation.
This object is limited to 10 elements
initContainers
- These containers run before application containers, always runs to completion, and must complete
successfully before the next container starts. These containers are registered with the Amazon EKS
Connector agent and persists the registration information in the Kubernetes backend data store. For more
information, see Init
Containers in the Kubernetes documentation. This object is limited to 10 elements
public List<EksVolume> getVolumes()
Specifies the volumes for a job definition that uses Amazon EKS resources.
public void setVolumes(Collection<EksVolume> volumes)
Specifies the volumes for a job definition that uses Amazon EKS resources.
volumes
- Specifies the volumes for a job definition that uses Amazon EKS resources.public EksPodProperties withVolumes(EksVolume... volumes)
Specifies the volumes for a job definition that uses Amazon EKS resources.
NOTE: This method appends the values to the existing list (if any). Use
setVolumes(java.util.Collection)
or withVolumes(java.util.Collection)
if you want to override
the existing values.
volumes
- Specifies the volumes for a job definition that uses Amazon EKS resources.public EksPodProperties withVolumes(Collection<EksVolume> volumes)
Specifies the volumes for a job definition that uses Amazon EKS resources.
volumes
- Specifies the volumes for a job definition that uses Amazon EKS resources.public void setMetadata(EksMetadata metadata)
Metadata about the Kubernetes pod. For more information, see Understanding Kubernetes Objects in the Kubernetes documentation.
metadata
- Metadata about the Kubernetes pod. For more information, see Understanding
Kubernetes Objects in the Kubernetes documentation.public EksMetadata getMetadata()
Metadata about the Kubernetes pod. For more information, see Understanding Kubernetes Objects in the Kubernetes documentation.
public EksPodProperties withMetadata(EksMetadata metadata)
Metadata about the Kubernetes pod. For more information, see Understanding Kubernetes Objects in the Kubernetes documentation.
metadata
- Metadata about the Kubernetes pod. For more information, see Understanding
Kubernetes Objects in the Kubernetes documentation.public void setShareProcessNamespace(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.
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.public Boolean getShareProcessNamespace()
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.
public EksPodProperties withShareProcessNamespace(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.
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.public Boolean isShareProcessNamespace()
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.
public String toString()
toString
in class Object
Object.toString()
public EksPodProperties clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.