@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateContextRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateContextRequest() |
Modifier and Type | Method and Description |
---|---|
CreateContextRequest |
addPropertiesEntry(String key,
String value)
Add a single Properties entry
|
CreateContextRequest |
clearPropertiesEntries()
Removes all the entries added into Properties.
|
CreateContextRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getContextName()
The name of the context.
|
String |
getContextType()
The context type.
|
String |
getDescription()
The description of the context.
|
Map<String,String> |
getProperties()
A list of properties to add to the context.
|
ContextSource |
getSource()
The source type, ID, and URI.
|
List<Tag> |
getTags()
A list of tags to apply to the context.
|
int |
hashCode() |
void |
setContextName(String contextName)
The name of the context.
|
void |
setContextType(String contextType)
The context type.
|
void |
setDescription(String description)
The description of the context.
|
void |
setProperties(Map<String,String> properties)
A list of properties to add to the context.
|
void |
setSource(ContextSource source)
The source type, ID, and URI.
|
void |
setTags(Collection<Tag> tags)
A list of tags to apply to the context.
|
String |
toString()
Returns a string representation of this object.
|
CreateContextRequest |
withContextName(String contextName)
The name of the context.
|
CreateContextRequest |
withContextType(String contextType)
The context type.
|
CreateContextRequest |
withDescription(String description)
The description of the context.
|
CreateContextRequest |
withProperties(Map<String,String> properties)
A list of properties to add to the context.
|
CreateContextRequest |
withSource(ContextSource source)
The source type, ID, and URI.
|
CreateContextRequest |
withTags(Collection<Tag> tags)
A list of tags to apply to the context.
|
CreateContextRequest |
withTags(Tag... tags)
A list of tags to apply to the context.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setContextName(String contextName)
The name of the context. Must be unique to your account in an Amazon Web Services Region.
contextName
- The name of the context. Must be unique to your account in an Amazon Web Services Region.public String getContextName()
The name of the context. Must be unique to your account in an Amazon Web Services Region.
public CreateContextRequest withContextName(String contextName)
The name of the context. Must be unique to your account in an Amazon Web Services Region.
contextName
- The name of the context. Must be unique to your account in an Amazon Web Services Region.public void setSource(ContextSource source)
The source type, ID, and URI.
source
- The source type, ID, and URI.public ContextSource getSource()
The source type, ID, and URI.
public CreateContextRequest withSource(ContextSource source)
The source type, ID, and URI.
source
- The source type, ID, and URI.public void setContextType(String contextType)
The context type.
contextType
- The context type.public String getContextType()
The context type.
public CreateContextRequest withContextType(String contextType)
The context type.
contextType
- The context type.public void setDescription(String description)
The description of the context.
description
- The description of the context.public String getDescription()
The description of the context.
public CreateContextRequest withDescription(String description)
The description of the context.
description
- The description of the context.public Map<String,String> getProperties()
A list of properties to add to the context.
public void setProperties(Map<String,String> properties)
A list of properties to add to the context.
properties
- A list of properties to add to the context.public CreateContextRequest withProperties(Map<String,String> properties)
A list of properties to add to the context.
properties
- A list of properties to add to the context.public CreateContextRequest addPropertiesEntry(String key, String value)
public CreateContextRequest clearPropertiesEntries()
public List<Tag> getTags()
A list of tags to apply to the context.
public void setTags(Collection<Tag> tags)
A list of tags to apply to the context.
tags
- A list of tags to apply to the context.public CreateContextRequest withTags(Tag... tags)
A list of tags to apply to the context.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- A list of tags to apply to the context.public CreateContextRequest withTags(Collection<Tag> tags)
A list of tags to apply to the context.
tags
- A list of tags to apply to the context.public String toString()
toString
in class Object
Object.toString()
public CreateContextRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()