@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SecurityContext extends Object implements Serializable, Cloneable, StructuredPojo
Container security context.
Constructor and Description |
---|
SecurityContext() |
Modifier and Type | Method and Description |
---|---|
SecurityContext |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAllowPrivilegeEscalation()
Whether or not a container or a Kubernetes pod is allowed to gain more privileges than its parent process.
|
Boolean |
getPrivileged()
Whether the container is privileged.
|
int |
hashCode() |
Boolean |
isAllowPrivilegeEscalation()
Whether or not a container or a Kubernetes pod is allowed to gain more privileges than its parent process.
|
Boolean |
isPrivileged()
Whether the container is privileged.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAllowPrivilegeEscalation(Boolean allowPrivilegeEscalation)
Whether or not a container or a Kubernetes pod is allowed to gain more privileges than its parent process.
|
void |
setPrivileged(Boolean privileged)
Whether the container is privileged.
|
String |
toString()
Returns a string representation of this object.
|
SecurityContext |
withAllowPrivilegeEscalation(Boolean allowPrivilegeEscalation)
Whether or not a container or a Kubernetes pod is allowed to gain more privileges than its parent process.
|
SecurityContext |
withPrivileged(Boolean privileged)
Whether the container is privileged.
|
public void setPrivileged(Boolean privileged)
Whether the container is privileged.
privileged
- Whether the container is privileged.public Boolean getPrivileged()
Whether the container is privileged.
public SecurityContext withPrivileged(Boolean privileged)
Whether the container is privileged.
privileged
- Whether the container is privileged.public Boolean isPrivileged()
Whether the container is privileged.
public void setAllowPrivilegeEscalation(Boolean allowPrivilegeEscalation)
Whether or not a container or a Kubernetes pod is allowed to gain more privileges than its parent process.
allowPrivilegeEscalation
- Whether or not a container or a Kubernetes pod is allowed to gain more privileges than its parent process.public Boolean getAllowPrivilegeEscalation()
Whether or not a container or a Kubernetes pod is allowed to gain more privileges than its parent process.
public SecurityContext withAllowPrivilegeEscalation(Boolean allowPrivilegeEscalation)
Whether or not a container or a Kubernetes pod is allowed to gain more privileges than its parent process.
allowPrivilegeEscalation
- Whether or not a container or a Kubernetes pod is allowed to gain more privileges than its parent process.public Boolean isAllowPrivilegeEscalation()
Whether or not a container or a Kubernetes pod is allowed to gain more privileges than its parent process.
public String toString()
toString
in class Object
Object.toString()
public SecurityContext clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.