public class CreateDocumentRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
CreateDocument operation.
Creates a configuration document.
After you create a configuration document, you can use CreateAssociation to associate it with one or more running instances.
NOOP| Constructor and Description |
|---|
CreateDocumentRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreateDocumentRequest |
clone() |
boolean |
equals(Object obj) |
String |
getContent()
A valid JSON file.
|
String |
getName()
A name for the configuration document.
|
int |
hashCode() |
void |
setContent(String content)
A valid JSON file.
|
void |
setName(String name)
A name for the configuration document.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateDocumentRequest |
withContent(String content)
A valid JSON file.
|
CreateDocumentRequest |
withName(String name)
A name for the configuration document.
|
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getContent()
Constraints:
Length: 1 -
public void setContent(String content)
Constraints:
Length: 1 -
content - A valid JSON file. For more information about the contents of this
file, see Configuration
Document.public CreateDocumentRequest withContent(String content)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
content - A valid JSON file. For more information about the contents of this
file, see Configuration
Document.public String getName()
Constraints:
Length: 3 - 64
Pattern: ^[a-zA-Z0-9_\-.]{3,64}$
public void setName(String name)
Constraints:
Length: 3 - 64
Pattern: ^[a-zA-Z0-9_\-.]{3,64}$
name - A name for the configuration document.public CreateDocumentRequest withName(String name)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 3 - 64
Pattern: ^[a-zA-Z0-9_\-.]{3,64}$
name - A name for the configuration document.public String toString()
toString in class ObjectObject.toString()public CreateDocumentRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2015. All rights reserved.