@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.ScopeType
public String getKey()
The type of the scope.
ScopeType
public Scope withKey(String key)
The type of the scope.
key
- The type of the scope.ScopeType
public Scope withKey(ScopeType key)
The type of the scope.
key
- The type of the scope.ScopeType
public 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 Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.