@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SetInstanceProtectionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
SetInstanceProtectionRequest() |
Modifier and Type | Method and Description |
---|---|
SetInstanceProtectionRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAutoScalingGroupName()
The name of the Auto Scaling group.
|
List<String> |
getInstanceIds()
One or more instance IDs.
|
Boolean |
getProtectedFromScaleIn()
Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.
|
int |
hashCode() |
Boolean |
isProtectedFromScaleIn()
Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.
|
void |
setAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
|
void |
setInstanceIds(Collection<String> instanceIds)
One or more instance IDs.
|
void |
setProtectedFromScaleIn(Boolean protectedFromScaleIn)
Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.
|
String |
toString()
Returns a string representation of this object.
|
SetInstanceProtectionRequest |
withAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
|
SetInstanceProtectionRequest |
withInstanceIds(Collection<String> instanceIds)
One or more instance IDs.
|
SetInstanceProtectionRequest |
withInstanceIds(String... instanceIds)
One or more instance IDs.
|
SetInstanceProtectionRequest |
withProtectedFromScaleIn(Boolean protectedFromScaleIn)
Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.
|
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 List<String> getInstanceIds()
One or more instance IDs. You can specify up to 50 instances.
public void setInstanceIds(Collection<String> instanceIds)
One or more instance IDs. You can specify up to 50 instances.
instanceIds
- One or more instance IDs. You can specify up to 50 instances.public SetInstanceProtectionRequest withInstanceIds(String... instanceIds)
One or more instance IDs. You can specify up to 50 instances.
NOTE: This method appends the values to the existing list (if any). Use
setInstanceIds(java.util.Collection)
or withInstanceIds(java.util.Collection)
if you want to
override the existing values.
instanceIds
- One or more instance IDs. You can specify up to 50 instances.public SetInstanceProtectionRequest withInstanceIds(Collection<String> instanceIds)
One or more instance IDs. You can specify up to 50 instances.
instanceIds
- One or more instance IDs. You can specify up to 50 instances.public void setAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
autoScalingGroupName
- The name of the Auto Scaling group.public String getAutoScalingGroupName()
The name of the Auto Scaling group.
public SetInstanceProtectionRequest withAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
autoScalingGroupName
- The name of the Auto Scaling group.public void setProtectedFromScaleIn(Boolean protectedFromScaleIn)
Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.
protectedFromScaleIn
- Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.public Boolean getProtectedFromScaleIn()
Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.
public SetInstanceProtectionRequest withProtectedFromScaleIn(Boolean protectedFromScaleIn)
Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.
protectedFromScaleIn
- Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.public Boolean isProtectedFromScaleIn()
Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.
public String toString()
toString
in class Object
Object.toString()
public SetInstanceProtectionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()