public class AssignInstanceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
AssignInstance operation.
Assign a registered instance to a layer.
Required Permissions : To use this action, an AWS Identity and Access Management (IAM) user must have a Manage permissions level for the stack or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions .
NOOP| Constructor and Description |
|---|
AssignInstanceRequest() |
| Modifier and Type | Method and Description |
|---|---|
AssignInstanceRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getInstanceId()
The instance ID.
|
List<String> |
getLayerIds()
The layer ID, which must correspond to a custom layer.
|
int |
hashCode() |
void |
setInstanceId(String instanceId)
The instance ID.
|
void |
setLayerIds(Collection<String> layerIds)
The layer ID, which must correspond to a custom layer.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AssignInstanceRequest |
withInstanceId(String instanceId)
The instance ID.
|
AssignInstanceRequest |
withLayerIds(Collection<String> layerIds)
The layer ID, which must correspond to a custom layer.
|
AssignInstanceRequest |
withLayerIds(String... layerIds)
The layer ID, which must correspond to a custom layer.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getInstanceId()
public void setInstanceId(String instanceId)
instanceId - The instance ID.public AssignInstanceRequest withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId - The instance ID.public List<String> getLayerIds()
public void setLayerIds(Collection<String> layerIds)
layerIds - The layer ID, which must correspond to a custom layer. You cannot
assign a registered instance to a built-in layer.public AssignInstanceRequest withLayerIds(String... layerIds)
NOTE: This method appends the values to the existing list (if
any). Use setLayerIds(java.util.Collection) or withLayerIds(java.util.Collection) if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
layerIds - The layer ID, which must correspond to a custom layer. You cannot
assign a registered instance to a built-in layer.public AssignInstanceRequest withLayerIds(Collection<String> layerIds)
Returns a reference to this object so that method calls can be chained together.
layerIds - The layer ID, which must correspond to a custom layer. You cannot
assign a registered instance to a built-in layer.public String toString()
toString in class ObjectObject.toString()public AssignInstanceRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2015. All rights reserved.