All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.iamrolesanywhere.model.SourceData Maven / Gradle / Ivy

Go to download

The AWS Java SDK for IAM Roles Anywhere module holds the client classes that are used for communicating with IAM Roles Anywhere Service

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.iamrolesanywhere.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The data field of the trust anchor depending on its type. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class SourceData implements Serializable, Cloneable, StructuredPojo { /** *

* 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. *

*/ private String acmPcaArn; /** *

* The PEM-encoded data for the certificate anchor. Included for trust anchors of type * CERTIFICATE_BUNDLE. *

*/ private String x509CertificateData; /** *

* 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. *

* * @param 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. */ public void setAcmPcaArn(String acmPcaArn) { this.acmPcaArn = 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. *

* * @return 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 * . */ public String getAcmPcaArn() { return this.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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceData withAcmPcaArn(String acmPcaArn) { setAcmPcaArn(acmPcaArn); return this; } /** *

* The PEM-encoded data for the certificate anchor. Included for trust anchors of type * CERTIFICATE_BUNDLE. *

* * @param x509CertificateData * The PEM-encoded data for the certificate anchor. Included for trust anchors of type * CERTIFICATE_BUNDLE. */ public void setX509CertificateData(String x509CertificateData) { this.x509CertificateData = x509CertificateData; } /** *

* The PEM-encoded data for the certificate anchor. Included for trust anchors of type * CERTIFICATE_BUNDLE. *

* * @return The PEM-encoded data for the certificate anchor. Included for trust anchors of type * CERTIFICATE_BUNDLE. */ public String getX509CertificateData() { return this.x509CertificateData; } /** *

* The PEM-encoded data for the certificate anchor. Included for trust anchors of type * CERTIFICATE_BUNDLE. *

* * @param x509CertificateData * The PEM-encoded data for the certificate anchor. Included for trust anchors of type * CERTIFICATE_BUNDLE. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceData withX509CertificateData(String x509CertificateData) { setX509CertificateData(x509CertificateData); return this; } /** * 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. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAcmPcaArn() != null) sb.append("AcmPcaArn: ").append(getAcmPcaArn()).append(","); if (getX509CertificateData() != null) sb.append("X509CertificateData: ").append(getX509CertificateData()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SourceData == false) return false; SourceData other = (SourceData) obj; if (other.getAcmPcaArn() == null ^ this.getAcmPcaArn() == null) return false; if (other.getAcmPcaArn() != null && other.getAcmPcaArn().equals(this.getAcmPcaArn()) == false) return false; if (other.getX509CertificateData() == null ^ this.getX509CertificateData() == null) return false; if (other.getX509CertificateData() != null && other.getX509CertificateData().equals(this.getX509CertificateData()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAcmPcaArn() == null) ? 0 : getAcmPcaArn().hashCode()); hashCode = prime * hashCode + ((getX509CertificateData() == null) ? 0 : getX509CertificateData().hashCode()); return hashCode; } @Override public SourceData clone() { try { return (SourceData) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.iamrolesanywhere.model.transform.SourceDataMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy