public class SetInstanceProtectionRequest extends AmazonWebServiceRequest implements java.io.Serializable
Updates the instance protection settings of the specified instances.
For more information, see Instance Protection in the Auto Scaling Developer Guide.
Constructor and Description |
---|
SetInstanceProtectionRequest() |
Modifier and Type | Method and Description |
---|---|
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.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.util.List<java.lang.String> getInstanceIds()
One or more instance IDs.
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.
Returns a reference to this object so that method calls can be chained together.
instanceIds
- One or more instance IDs.
public SetInstanceProtectionRequest withInstanceIds(java.util.Collection<java.lang.String> instanceIds)
One or more instance IDs.
Returns a reference to this object so that method calls can be chained together.
instanceIds
- One or more instance IDs.
public java.lang.String getAutoScalingGroupName()
The name of the group.
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
The name of the group.
public void setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group.
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
autoScalingGroupName
- The name of the group.
public SetInstanceProtectionRequest withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
autoScalingGroupName
- The name of the group.
public java.lang.Boolean isProtectedFromScaleIn()
Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
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.
Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
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 SetInstanceProtectionRequest withProtectedFromScaleIn(java.lang.Boolean protectedFromScaleIn)
Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
Returns a reference to this object so that method calls can be chained together.
protectedFromScaleIn
- 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 int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.