@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Duration extends Object implements Serializable, Cloneable, StructuredPojo
Specifies maintenance schedule duration: duration value and duration unit. See the Developer Guide for more information.
Constructor and Description |
---|
Duration() |
Modifier and Type | Method and Description |
---|---|
Duration |
clone() |
boolean |
equals(Object obj) |
String |
getUnit()
Specifies the unit of a maintenance schedule duration.
|
Long |
getValue()
Integer to specify the value of a maintenance schedule duration.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setUnit(String unit)
Specifies the unit of a maintenance schedule duration.
|
void |
setValue(Long value)
Integer to specify the value of a maintenance schedule duration.
|
String |
toString()
Returns a string representation of this object.
|
Duration |
withUnit(String unit)
Specifies the unit of a maintenance schedule duration.
|
Duration |
withUnit(TimeUnit unit)
Specifies the unit of a maintenance schedule duration.
|
Duration |
withValue(Long value)
Integer to specify the value of a maintenance schedule duration.
|
public void setValue(Long value)
Integer to specify the value of a maintenance schedule duration. See the Developer Guide for more information.
value
- Integer to specify the value of a maintenance schedule duration. See the Developer Guide for more information.public Long getValue()
Integer to specify the value of a maintenance schedule duration. See the Developer Guide for more information.
public Duration withValue(Long value)
Integer to specify the value of a maintenance schedule duration. See the Developer Guide for more information.
value
- Integer to specify the value of a maintenance schedule duration. See the Developer Guide for more information.public void setUnit(String unit)
Specifies the unit of a maintenance schedule duration. Valid value is HOURS. See the Developer Guide for more information.
unit
- Specifies the unit of a maintenance schedule duration. Valid value is HOURS. See the Developer Guide for more information.TimeUnit
public String getUnit()
Specifies the unit of a maintenance schedule duration. Valid value is HOURS. See the Developer Guide for more information.
TimeUnit
public Duration withUnit(String unit)
Specifies the unit of a maintenance schedule duration. Valid value is HOURS. See the Developer Guide for more information.
unit
- Specifies the unit of a maintenance schedule duration. Valid value is HOURS. See the Developer Guide for more information.TimeUnit
public Duration withUnit(TimeUnit unit)
Specifies the unit of a maintenance schedule duration. Valid value is HOURS. See the Developer Guide for more information.
unit
- Specifies the unit of a maintenance schedule duration. Valid value is HOURS. See the Developer Guide for more information.TimeUnit
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.