Class ValidityPeriod
- java.lang.Object
-
- software.amazon.awssdk.services.pcaconnectorad.model.ValidityPeriod
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ValidityPeriod.Builder,ValidityPeriod>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceValidityPeriod.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ValidityPeriod.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Longperiod()The numeric value for the validity period.ValidityPeriodTypeperiodType()The unit of time.StringperiodTypeAsString()The unit of time.List<SdkField<?>>sdkFields()static Class<? extends ValidityPeriod.Builder>serializableBuilderClass()ValidityPeriod.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
period
public final Long period()
The numeric value for the validity period.
- Returns:
- The numeric value for the validity period.
-
periodType
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,
periodTypewill returnValidityPeriodType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromperiodTypeAsString().- Returns:
- The unit of time. You can select hours, days, weeks, months, and years.
- See Also:
ValidityPeriodType
-
periodTypeAsString
public 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,
periodTypewill returnValidityPeriodType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromperiodTypeAsString().- Returns:
- The unit of time. You can select hours, days, weeks, months, and years.
- See Also:
ValidityPeriodType
-
toBuilder
public ValidityPeriod.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ValidityPeriod.Builder,ValidityPeriod>
-
builder
public static ValidityPeriod.Builder builder()
-
serializableBuilderClass
public static Class<? extends ValidityPeriod.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-