Class Certificate
- java.lang.Object
-
- software.amazon.awssdk.services.iot.model.Certificate
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<Certificate.Builder,Certificate>
@Generated("software.amazon.awssdk:codegen") public final class Certificate extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Certificate.Builder,Certificate>
Information about a certificate.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Certificate.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Certificate.Builder
builder()
String
certificateArn()
The ARN of the certificate.String
certificateId()
The ID of the certificate.CertificateMode
certificateMode()
The mode of the certificate.String
certificateModeAsString()
The mode of the certificate.Instant
creationDate()
The date and time the certificate was created.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
List<SdkField<?>>
sdkFields()
static Class<? extends Certificate.Builder>
serializableBuilderClass()
CertificateStatus
status()
The status of the certificate.String
statusAsString()
The status of the certificate.Certificate.Builder
toBuilder()
String
toString()
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
-
certificateArn
public final String certificateArn()
The ARN of the certificate.
- Returns:
- The ARN of the certificate.
-
certificateId
public final String certificateId()
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
- Returns:
- The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
-
status
public final CertificateStatus status()
The status of the certificate.
The status value REGISTER_INACTIVE is deprecated and should not be used.
If the service returns an enum value that is not available in the current SDK version,
status
will returnCertificateStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- The status of the certificate.
The status value REGISTER_INACTIVE is deprecated and should not be used.
- See Also:
CertificateStatus
-
statusAsString
public final String statusAsString()
The status of the certificate.
The status value REGISTER_INACTIVE is deprecated and should not be used.
If the service returns an enum value that is not available in the current SDK version,
status
will returnCertificateStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- The status of the certificate.
The status value REGISTER_INACTIVE is deprecated and should not be used.
- See Also:
CertificateStatus
-
certificateMode
public final CertificateMode certificateMode()
The mode of the certificate.
DEFAULT
: A certificate inDEFAULT
mode is either generated by Amazon Web Services IoT Core or registered with an issuer certificate authority (CA) inDEFAULT
mode. Devices with certificates inDEFAULT
mode aren't required to send the Server Name Indication (SNI) extension when connecting to Amazon Web Services IoT Core. However, to use features such as custom domains and VPC endpoints, we recommend that you use the SNI extension when connecting to Amazon Web Services IoT Core.SNI_ONLY
: A certificate inSNI_ONLY
mode is registered without an issuer CA. Devices with certificates inSNI_ONLY
mode must send the SNI extension when connecting to Amazon Web Services IoT Core.If the service returns an enum value that is not available in the current SDK version,
certificateMode
will returnCertificateMode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcertificateModeAsString()
.- Returns:
- The mode of the certificate.
DEFAULT
: A certificate inDEFAULT
mode is either generated by Amazon Web Services IoT Core or registered with an issuer certificate authority (CA) inDEFAULT
mode. Devices with certificates inDEFAULT
mode aren't required to send the Server Name Indication (SNI) extension when connecting to Amazon Web Services IoT Core. However, to use features such as custom domains and VPC endpoints, we recommend that you use the SNI extension when connecting to Amazon Web Services IoT Core.SNI_ONLY
: A certificate inSNI_ONLY
mode is registered without an issuer CA. Devices with certificates inSNI_ONLY
mode must send the SNI extension when connecting to Amazon Web Services IoT Core. - See Also:
CertificateMode
-
certificateModeAsString
public final String certificateModeAsString()
The mode of the certificate.
DEFAULT
: A certificate inDEFAULT
mode is either generated by Amazon Web Services IoT Core or registered with an issuer certificate authority (CA) inDEFAULT
mode. Devices with certificates inDEFAULT
mode aren't required to send the Server Name Indication (SNI) extension when connecting to Amazon Web Services IoT Core. However, to use features such as custom domains and VPC endpoints, we recommend that you use the SNI extension when connecting to Amazon Web Services IoT Core.SNI_ONLY
: A certificate inSNI_ONLY
mode is registered without an issuer CA. Devices with certificates inSNI_ONLY
mode must send the SNI extension when connecting to Amazon Web Services IoT Core.If the service returns an enum value that is not available in the current SDK version,
certificateMode
will returnCertificateMode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcertificateModeAsString()
.- Returns:
- The mode of the certificate.
DEFAULT
: A certificate inDEFAULT
mode is either generated by Amazon Web Services IoT Core or registered with an issuer certificate authority (CA) inDEFAULT
mode. Devices with certificates inDEFAULT
mode aren't required to send the Server Name Indication (SNI) extension when connecting to Amazon Web Services IoT Core. However, to use features such as custom domains and VPC endpoints, we recommend that you use the SNI extension when connecting to Amazon Web Services IoT Core.SNI_ONLY
: A certificate inSNI_ONLY
mode is registered without an issuer CA. Devices with certificates inSNI_ONLY
mode must send the SNI extension when connecting to Amazon Web Services IoT Core. - See Also:
CertificateMode
-
creationDate
public final Instant creationDate()
The date and time the certificate was created.
- Returns:
- The date and time the certificate was created.
-
toBuilder
public Certificate.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<Certificate.Builder,Certificate>
-
builder
public static Certificate.Builder builder()
-
serializableBuilderClass
public static Class<? extends Certificate.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in 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.
-
-