@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.
|
EksMetadata |
getMetadata()
Metadata about the Kubernetes pod.
|
String |
getServiceAccountName()
The name of the service account that's used to run the 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.
|
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 |
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 |
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 |
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 |
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<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<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 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.