@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AccessScope extends Object implements Serializable, Cloneable, StructuredPojo
The scope of an AccessPolicy that's associated to an AccessEntry.
| Constructor and Description |
|---|
AccessScope() |
| Modifier and Type | Method and Description |
|---|---|
AccessScope |
clone() |
boolean |
equals(Object obj) |
List<String> |
getNamespaces()
A Kubernetes
namespace that an access policy is scoped to. |
String |
getType()
The scope type of an access policy.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setNamespaces(Collection<String> namespaces)
A Kubernetes
namespace that an access policy is scoped to. |
void |
setType(String type)
The scope type of an access policy.
|
String |
toString()
Returns a string representation of this object.
|
AccessScope |
withNamespaces(Collection<String> namespaces)
A Kubernetes
namespace that an access policy is scoped to. |
AccessScope |
withNamespaces(String... namespaces)
A Kubernetes
namespace that an access policy is scoped to. |
AccessScope |
withType(AccessScopeType type)
The scope type of an access policy.
|
AccessScope |
withType(String type)
The scope type of an access policy.
|
public void setType(String type)
The scope type of an access policy.
type - The scope type of an access policy.AccessScopeTypepublic String getType()
The scope type of an access policy.
AccessScopeTypepublic AccessScope withType(String type)
The scope type of an access policy.
type - The scope type of an access policy.AccessScopeTypepublic AccessScope withType(AccessScopeType type)
The scope type of an access policy.
type - The scope type of an access policy.AccessScopeTypepublic List<String> getNamespaces()
A Kubernetes namespace that an access policy is scoped to. A value is required if you specified
namespace for Type.
namespace that an access policy is scoped to. A value is required if you
specified namespace for Type.public void setNamespaces(Collection<String> namespaces)
A Kubernetes namespace that an access policy is scoped to. A value is required if you specified
namespace for Type.
namespaces - A Kubernetes namespace that an access policy is scoped to. A value is required if you
specified namespace for Type.public AccessScope withNamespaces(String... namespaces)
A Kubernetes namespace that an access policy is scoped to. A value is required if you specified
namespace for Type.
NOTE: This method appends the values to the existing list (if any). Use
setNamespaces(java.util.Collection) or withNamespaces(java.util.Collection) if you want to
override the existing values.
namespaces - A Kubernetes namespace that an access policy is scoped to. A value is required if you
specified namespace for Type.public AccessScope withNamespaces(Collection<String> namespaces)
A Kubernetes namespace that an access policy is scoped to. A value is required if you specified
namespace for Type.
namespaces - A Kubernetes namespace that an access policy is scoped to. A value is required if you
specified namespace for Type.public String toString()
toString in class ObjectObject.toString()public AccessScope clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.