@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class StopInstanceOnIdleRequest extends Object implements Serializable, Cloneable, StructuredPojo
Describes a request to create or edit the StopInstanceOnIdle
add-on.
This add-on only applies to Lightsail for Research resources.
Constructor and Description |
---|
StopInstanceOnIdleRequest() |
Modifier and Type | Method and Description |
---|---|
StopInstanceOnIdleRequest |
clone() |
boolean |
equals(Object obj) |
String |
getDuration()
The amount of idle time in minutes after which your virtual computer will automatically stop.
|
String |
getThreshold()
The value to compare with the duration.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDuration(String duration)
The amount of idle time in minutes after which your virtual computer will automatically stop.
|
void |
setThreshold(String threshold)
The value to compare with the duration.
|
String |
toString()
Returns a string representation of this object.
|
StopInstanceOnIdleRequest |
withDuration(String duration)
The amount of idle time in minutes after which your virtual computer will automatically stop.
|
StopInstanceOnIdleRequest |
withThreshold(String threshold)
The value to compare with the duration.
|
public void setThreshold(String threshold)
The value to compare with the duration.
threshold
- The value to compare with the duration.public String getThreshold()
The value to compare with the duration.
public StopInstanceOnIdleRequest withThreshold(String threshold)
The value to compare with the duration.
threshold
- The value to compare with the duration.public void setDuration(String duration)
The amount of idle time in minutes after which your virtual computer will automatically stop.
duration
- The amount of idle time in minutes after which your virtual computer will automatically stop.public String getDuration()
The amount of idle time in minutes after which your virtual computer will automatically stop.
public StopInstanceOnIdleRequest withDuration(String duration)
The amount of idle time in minutes after which your virtual computer will automatically stop.
duration
- The amount of idle time in minutes after which your virtual computer will automatically stop.public String toString()
toString
in class Object
Object.toString()
public StopInstanceOnIdleRequest clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.