public class AssignInstanceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
AssignInstance operation
.
Assign a registered instance to a layer.
Required Permissions : To use this action, an 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, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public 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 Object
Object.toString()
public AssignInstanceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.