@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Scope extends Object implements Serializable, Cloneable, StructuredPojo
This data type contains key-value pairs that identify various Amazon resources.
| Constructor and Description |
|---|
Scope() |
| Modifier and Type | Method and Description |
|---|---|
Scope |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The type of the scope.
|
String |
getValue()
The resource identifier for the specified scope type.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setKey(String key)
The type of the scope.
|
void |
setValue(String value)
The resource identifier for the specified scope type.
|
String |
toString()
Returns a string representation of this object.
|
Scope |
withKey(ScopeType key)
The type of the scope.
|
Scope |
withKey(String key)
The type of the scope.
|
Scope |
withValue(String value)
The resource identifier for the specified scope type.
|
public void setKey(String key)
The type of the scope.
key - The type of the scope.ScopeTypepublic String getKey()
The type of the scope.
ScopeTypepublic Scope withKey(String key)
The type of the scope.
key - The type of the scope.ScopeTypepublic Scope withKey(ScopeType key)
The type of the scope.
key - The type of the scope.ScopeTypepublic void setValue(String value)
The resource identifier for the specified scope type.
value - The resource identifier for the specified scope type.public String getValue()
The resource identifier for the specified scope type.
public Scope withValue(String value)
The resource identifier for the specified scope type.
value - The resource identifier for the specified scope type.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.