@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ValidityPeriod extends Object implements Serializable, Cloneable, StructuredPojo
Information describing the end of the validity period of the certificate. This parameter sets the “Not After” date for the certificate. Certificate validity is the period of time during which a certificate is valid. Validity can be expressed as an explicit date and time when the certificate expires, or as a span of time after issuance, stated in hours, days, months, or years. For more information, see Validity in RFC 5280. This value is unaffected when ValidityNotBefore is also specified. For example, if Validity is set to 20 days in the future, the certificate will expire 20 days from issuance time regardless of the ValidityNotBefore value.
| Constructor and Description |
|---|
ValidityPeriod() |
| Modifier and Type | Method and Description |
|---|---|
ValidityPeriod |
clone() |
boolean |
equals(Object obj) |
Long |
getPeriod()
The numeric value for the validity period.
|
String |
getPeriodType()
The unit of time.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setPeriod(Long period)
The numeric value for the validity period.
|
void |
setPeriodType(String periodType)
The unit of time.
|
String |
toString()
Returns a string representation of this object.
|
ValidityPeriod |
withPeriod(Long period)
The numeric value for the validity period.
|
ValidityPeriod |
withPeriodType(String periodType)
The unit of time.
|
ValidityPeriod |
withPeriodType(ValidityPeriodType periodType)
The unit of time.
|
public void setPeriod(Long period)
The numeric value for the validity period.
period - The numeric value for the validity period.public Long getPeriod()
The numeric value for the validity period.
public ValidityPeriod withPeriod(Long period)
The numeric value for the validity period.
period - The numeric value for the validity period.public void setPeriodType(String periodType)
The unit of time. You can select hours, days, weeks, months, and years.
periodType - The unit of time. You can select hours, days, weeks, months, and years.ValidityPeriodTypepublic String getPeriodType()
The unit of time. You can select hours, days, weeks, months, and years.
ValidityPeriodTypepublic ValidityPeriod withPeriodType(String periodType)
The unit of time. You can select hours, days, weeks, months, and years.
periodType - The unit of time. You can select hours, days, weeks, months, and years.ValidityPeriodTypepublic ValidityPeriod withPeriodType(ValidityPeriodType periodType)
The unit of time. You can select hours, days, weeks, months, and years.
periodType - The unit of time. You can select hours, days, weeks, months, and years.ValidityPeriodTypepublic String toString()
toString in class ObjectObject.toString()public ValidityPeriod clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2023. All rights reserved.