Class SourceData
- java.lang.Object
-
- software.amazon.awssdk.services.rolesanywhere.model.SourceData
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SourceData.Builder,SourceData>
@Generated("software.amazon.awssdk:codegen") public final class SourceData extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SourceData.Builder,SourceData>
The data field of the trust anchor depending on its type.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSourceData.Builderstatic classSourceData.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringacmPcaArn()The root certificate of the Private Certificate Authority specified by this ARN is used in trust validation for temporary credential requests.static SourceData.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static SourceDatafromAcmPcaArn(String acmPcaArn)Create an instance of this class withacmPcaArn()initialized to the given value.static SourceDatafromX509CertificateData(String x509CertificateData)Create an instance of this class withx509CertificateData()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends SourceData.Builder>serializableBuilderClass()SourceData.BuildertoBuilder()StringtoString()Returns a string representation of this object.SourceData.Typetype()Retrieve an enum value representing which member of this object is populated.Stringx509CertificateData()The PEM-encoded data for the certificate anchor.-
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
-
acmPcaArn
public final String acmPcaArn()
The root certificate of the Private Certificate Authority specified by this ARN is used in trust validation for temporary credential requests. Included for trust anchors of type
AWS_ACM_PCA.- Returns:
- The root certificate of the Private Certificate Authority specified by this ARN is used in trust
validation for temporary credential requests. Included for trust anchors of type
AWS_ACM_PCA.
-
x509CertificateData
public final String x509CertificateData()
The PEM-encoded data for the certificate anchor. Included for trust anchors of type
CERTIFICATE_BUNDLE.- Returns:
- The PEM-encoded data for the certificate anchor. Included for trust anchors of type
CERTIFICATE_BUNDLE.
-
toBuilder
public SourceData.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SourceData.Builder,SourceData>
-
builder
public static SourceData.Builder builder()
-
serializableBuilderClass
public static Class<? extends SourceData.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.
-
fromAcmPcaArn
public static SourceData fromAcmPcaArn(String acmPcaArn)
Create an instance of this class withacmPcaArn()initialized to the given value.The root certificate of the Private Certificate Authority specified by this ARN is used in trust validation for temporary credential requests. Included for trust anchors of type
AWS_ACM_PCA.- Parameters:
acmPcaArn- The root certificate of the Private Certificate Authority specified by this ARN is used in trust validation for temporary credential requests. Included for trust anchors of typeAWS_ACM_PCA.
-
fromX509CertificateData
public static SourceData fromX509CertificateData(String x509CertificateData)
Create an instance of this class withx509CertificateData()initialized to the given value.The PEM-encoded data for the certificate anchor. Included for trust anchors of type
CERTIFICATE_BUNDLE.- Parameters:
x509CertificateData- The PEM-encoded data for the certificate anchor. Included for trust anchors of typeCERTIFICATE_BUNDLE.
-
type
public SourceData.Type type()
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beSourceData.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beSourceData.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-