@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class KubernetesWorkloadDetails extends Object implements Serializable, Cloneable, StructuredPojo
Details about the Kubernetes workload involved in a Kubernetes finding.
Constructor and Description |
---|
KubernetesWorkloadDetails() |
Modifier and Type | Method and Description |
---|---|
KubernetesWorkloadDetails |
clone() |
boolean |
equals(Object obj) |
List<Container> |
getContainers()
Containers running as part of the Kubernetes workload.
|
Boolean |
getHostNetwork()
Whether the hostNetwork flag is enabled for the pods included in the workload.
|
String |
getName()
Kubernetes workload name.
|
String |
getNamespace()
Kubernetes namespace that the workload is part of.
|
String |
getType()
Kubernetes workload type (e.g.
|
String |
getUid()
Kubernetes workload ID.
|
List<Volume> |
getVolumes()
Volumes used by the Kubernetes workload.
|
int |
hashCode() |
Boolean |
isHostNetwork()
Whether the hostNetwork flag is enabled for the pods included in the workload.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContainers(Collection<Container> containers)
Containers running as part of the Kubernetes workload.
|
void |
setHostNetwork(Boolean hostNetwork)
Whether the hostNetwork flag is enabled for the pods included in the workload.
|
void |
setName(String name)
Kubernetes workload name.
|
void |
setNamespace(String namespace)
Kubernetes namespace that the workload is part of.
|
void |
setType(String type)
Kubernetes workload type (e.g.
|
void |
setUid(String uid)
Kubernetes workload ID.
|
void |
setVolumes(Collection<Volume> volumes)
Volumes used by the Kubernetes workload.
|
String |
toString()
Returns a string representation of this object.
|
KubernetesWorkloadDetails |
withContainers(Collection<Container> containers)
Containers running as part of the Kubernetes workload.
|
KubernetesWorkloadDetails |
withContainers(Container... containers)
Containers running as part of the Kubernetes workload.
|
KubernetesWorkloadDetails |
withHostNetwork(Boolean hostNetwork)
Whether the hostNetwork flag is enabled for the pods included in the workload.
|
KubernetesWorkloadDetails |
withName(String name)
Kubernetes workload name.
|
KubernetesWorkloadDetails |
withNamespace(String namespace)
Kubernetes namespace that the workload is part of.
|
KubernetesWorkloadDetails |
withType(String type)
Kubernetes workload type (e.g.
|
KubernetesWorkloadDetails |
withUid(String uid)
Kubernetes workload ID.
|
KubernetesWorkloadDetails |
withVolumes(Collection<Volume> volumes)
Volumes used by the Kubernetes workload.
|
KubernetesWorkloadDetails |
withVolumes(Volume... volumes)
Volumes used by the Kubernetes workload.
|
public void setName(String name)
Kubernetes workload name.
name
- Kubernetes workload name.public String getName()
Kubernetes workload name.
public KubernetesWorkloadDetails withName(String name)
Kubernetes workload name.
name
- Kubernetes workload name.public void setType(String type)
Kubernetes workload type (e.g. Pod, Deployment, etc.).
type
- Kubernetes workload type (e.g. Pod, Deployment, etc.).public String getType()
Kubernetes workload type (e.g. Pod, Deployment, etc.).
public KubernetesWorkloadDetails withType(String type)
Kubernetes workload type (e.g. Pod, Deployment, etc.).
type
- Kubernetes workload type (e.g. Pod, Deployment, etc.).public void setUid(String uid)
Kubernetes workload ID.
uid
- Kubernetes workload ID.public String getUid()
Kubernetes workload ID.
public KubernetesWorkloadDetails withUid(String uid)
Kubernetes workload ID.
uid
- Kubernetes workload ID.public void setNamespace(String namespace)
Kubernetes namespace that the workload is part of.
namespace
- Kubernetes namespace that the workload is part of.public String getNamespace()
Kubernetes namespace that the workload is part of.
public KubernetesWorkloadDetails withNamespace(String namespace)
Kubernetes namespace that the workload is part of.
namespace
- Kubernetes namespace that the workload is part of.public void setHostNetwork(Boolean hostNetwork)
Whether the hostNetwork flag is enabled for the pods included in the workload.
hostNetwork
- Whether the hostNetwork flag is enabled for the pods included in the workload.public Boolean getHostNetwork()
Whether the hostNetwork flag is enabled for the pods included in the workload.
public KubernetesWorkloadDetails withHostNetwork(Boolean hostNetwork)
Whether the hostNetwork flag is enabled for the pods included in the workload.
hostNetwork
- Whether the hostNetwork flag is enabled for the pods included in the workload.public Boolean isHostNetwork()
Whether the hostNetwork flag is enabled for the pods included in the workload.
public List<Container> getContainers()
Containers running as part of the Kubernetes workload.
public void setContainers(Collection<Container> containers)
Containers running as part of the Kubernetes workload.
containers
- Containers running as part of the Kubernetes workload.public KubernetesWorkloadDetails withContainers(Container... containers)
Containers running as part of the Kubernetes workload.
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
- Containers running as part of the Kubernetes workload.public KubernetesWorkloadDetails withContainers(Collection<Container> containers)
Containers running as part of the Kubernetes workload.
containers
- Containers running as part of the Kubernetes workload.public List<Volume> getVolumes()
Volumes used by the Kubernetes workload.
public void setVolumes(Collection<Volume> volumes)
Volumes used by the Kubernetes workload.
volumes
- Volumes used by the Kubernetes workload.public KubernetesWorkloadDetails withVolumes(Volume... volumes)
Volumes used by the Kubernetes workload.
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
- Volumes used by the Kubernetes workload.public KubernetesWorkloadDetails withVolumes(Collection<Volume> volumes)
Volumes used by the Kubernetes workload.
volumes
- Volumes used by the Kubernetes workload.public String toString()
toString
in class Object
Object.toString()
public KubernetesWorkloadDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.