@Generated(value="software.amazon.awssdk:codegen") public final class ValidityPeriod extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ValidityPeriod.Builder,ValidityPeriod>
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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ValidityPeriod.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ValidityPeriod.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Long |
period()
The numeric value for the validity period.
|
ValidityPeriodType |
periodType()
The unit of time.
|
String |
periodTypeAsString()
The unit of time.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ValidityPeriod.Builder> |
serializableBuilderClass() |
ValidityPeriod.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Long period()
The numeric value for the validity period.
public final ValidityPeriodType periodType()
The unit of time. You can select hours, days, weeks, months, and years.
If the service returns an enum value that is not available in the current SDK version, periodType will
return ValidityPeriodType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
periodTypeAsString().
ValidityPeriodTypepublic final String periodTypeAsString()
The unit of time. You can select hours, days, weeks, months, and years.
If the service returns an enum value that is not available in the current SDK version, periodType will
return ValidityPeriodType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
periodTypeAsString().
ValidityPeriodTypepublic ValidityPeriod.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ValidityPeriod.Builder,ValidityPeriod>public static ValidityPeriod.Builder builder()
public static Class<? extends ValidityPeriod.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.