public class SetInstanceProtectionRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
autoScalingGroupName
The name of the group.
|
private SdkInternalList<java.lang.String> |
instanceIds
One or more instance IDs.
|
private java.lang.Boolean |
protectedFromScaleIn
Indicates whether the instance is protected from termination by Auto
Scaling when scaling in.
|
NOOP
Constructor and Description |
---|
SetInstanceProtectionRequest() |
Modifier and Type | Method and Description |
---|---|
SetInstanceProtectionRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAutoScalingGroupName()
The name of the group.
|
java.util.List<java.lang.String> |
getInstanceIds()
One or more instance IDs.
|
java.lang.Boolean |
getProtectedFromScaleIn()
Indicates whether the instance is protected from termination by Auto
Scaling when scaling in.
|
int |
hashCode() |
java.lang.Boolean |
isProtectedFromScaleIn()
Indicates whether the instance is protected from termination by Auto
Scaling when scaling in.
|
void |
setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group.
|
void |
setInstanceIds(java.util.Collection<java.lang.String> instanceIds)
One or more instance IDs.
|
void |
setProtectedFromScaleIn(java.lang.Boolean protectedFromScaleIn)
Indicates whether the instance is protected from termination by Auto
Scaling when scaling in.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SetInstanceProtectionRequest |
withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group.
|
SetInstanceProtectionRequest |
withInstanceIds(java.util.Collection<java.lang.String> instanceIds)
One or more instance IDs.
|
SetInstanceProtectionRequest |
withInstanceIds(java.lang.String... instanceIds)
One or more instance IDs.
|
SetInstanceProtectionRequest |
withProtectedFromScaleIn(java.lang.Boolean protectedFromScaleIn)
Indicates whether the instance is protected from termination by Auto
Scaling when scaling in.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private SdkInternalList<java.lang.String> instanceIds
One or more instance IDs.
private java.lang.String autoScalingGroupName
The name of the group.
private java.lang.Boolean protectedFromScaleIn
Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
public java.util.List<java.lang.String> getInstanceIds()
One or more instance IDs.
public void setInstanceIds(java.util.Collection<java.lang.String> instanceIds)
One or more instance IDs.
instanceIds
- One or more instance IDs.public SetInstanceProtectionRequest withInstanceIds(java.lang.String... instanceIds)
One or more instance IDs.
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.public SetInstanceProtectionRequest withInstanceIds(java.util.Collection<java.lang.String> instanceIds)
One or more instance IDs.
instanceIds
- One or more instance IDs.public void setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group.
autoScalingGroupName
- The name of the group.public java.lang.String getAutoScalingGroupName()
The name of the group.
public SetInstanceProtectionRequest withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group.
autoScalingGroupName
- The name of the group.public void setProtectedFromScaleIn(java.lang.Boolean protectedFromScaleIn)
Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
protectedFromScaleIn
- Indicates whether the instance is protected from termination by
Auto Scaling when scaling in.public java.lang.Boolean getProtectedFromScaleIn()
Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
public SetInstanceProtectionRequest withProtectedFromScaleIn(java.lang.Boolean protectedFromScaleIn)
Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
protectedFromScaleIn
- Indicates whether the instance is protected from termination by
Auto Scaling when scaling in.public java.lang.Boolean isProtectedFromScaleIn()
Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public SetInstanceProtectionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()