public class CreateAssociationRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
CreateAssociation operation
.
Associates the specified configuration document with the specified instance.
When you associate a configuration document with an instance, the configuration agent on the instance processes the configuration document and configures the instance as specified.
If you associate a configuration document with an instance that already has an associated configuration document, we replace the current configuration document with the new configuration document.
NOOP
Constructor and Description |
---|
CreateAssociationRequest() |
Modifier and Type | Method and Description |
---|---|
CreateAssociationRequest |
clone() |
boolean |
equals(Object obj) |
String |
getInstanceId()
The ID of the instance.
|
String |
getName()
The name of the configuration document.
|
int |
hashCode() |
void |
setInstanceId(String instanceId)
The ID of the instance.
|
void |
setName(String name)
The name of the configuration document.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateAssociationRequest |
withInstanceId(String instanceId)
The ID of the instance.
|
CreateAssociationRequest |
withName(String name)
The name of the configuration document.
|
copyBaseTo, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
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
- The name of the configuration document.public CreateAssociationRequest 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
- The name of the configuration document.public String getInstanceId()
Constraints:
Length: 10 - 10
Pattern: ^(?=.{10}$)(i-(\w){8})
public void setInstanceId(String instanceId)
Constraints:
Length: 10 - 10
Pattern: ^(?=.{10}$)(i-(\w){8})
instanceId
- The ID of the instance.public CreateAssociationRequest withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 10 - 10
Pattern: ^(?=.{10}$)(i-(\w){8})
instanceId
- The ID of the instance.public String toString()
toString
in class Object
Object.toString()
public CreateAssociationRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2015. All rights reserved.