com.amazonaws.services.certificatemanager.model.ResendValidationEmailRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-osgi Show documentation
/*
 * Copyright 2010-2016 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.certificatemanager.model;
import java.io.Serializable;
import com.amazonaws.AmazonWebServiceRequest;
/**
 * 
 */
public class ResendValidationEmailRequest extends AmazonWebServiceRequest
        implements Serializable, Cloneable {
    /**
     * 
     * String that contains the ARN of the requested certificate. The
     * certificate ARN is generated and returned by the
     * RequestCertificate action as soon as the request is made. By
     * default, using this parameter causes email to be sent to all top-level
     * domains you specified in the certificate request.
     * 
     * 
     * The ARN must be of the form:
     * 
     * 
     * arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012
     * 
     */
    private String certificateArn;
    /**
     * 
     * The Fully Qualified Domain Name (FQDN) of the certificate that needs to
     * be validated.
     * 
     */
    private String domain;
    /**
     * 
     * The base validation domain that will act as the suffix of the email
     * addresses that are used to send the emails. This must be the same as the
     * Domain value or a superdomain of the Domain
     * value. For example, if you requested a certificate for
     * site.subdomain.example.com and specify a
     * ValidationDomain of subdomain.example.com, ACM sends
     * email to the domain registrant, technical contact, and administrative
     * contact in WHOIS and the following five addresses:
     * 
     * - 
     * 
     * 
 
     * - 
     * 
     * 
 
     * - 
     * 
     * 
 
     * - 
     * 
     * 
 
     * - 
     * 
     * 
 
     * 
     * 
     */
    private String validationDomain;
    /**
     * 
     * String that contains the ARN of the requested certificate. The
     * certificate ARN is generated and returned by the
     * RequestCertificate action as soon as the request is made. By
     * default, using this parameter causes email to be sent to all top-level
     * domains you specified in the certificate request.
     * 
     * 
     * The ARN must be of the form:
     * 
     * 
     * arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012
     * 
     * 
     * @param certificateArn
     *        String that contains the ARN of the requested certificate. The
     *        certificate ARN is generated and returned by the
     *        RequestCertificate action as soon as the request is made.
     *        By default, using this parameter causes email to be sent to all
     *        top-level domains you specified in the certificate request. 
     *        
     *        The ARN must be of the form:
     *        
     *        
     *        arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012
     */
    public void setCertificateArn(String certificateArn) {
        this.certificateArn = certificateArn;
    }
    /**
     * 
     * String that contains the ARN of the requested certificate. The
     * certificate ARN is generated and returned by the
     * RequestCertificate action as soon as the request is made. By
     * default, using this parameter causes email to be sent to all top-level
     * domains you specified in the certificate request.
     * 
     * 
     * The ARN must be of the form:
     * 
     * 
     * arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012
     * 
     * 
     * @return String that contains the ARN of the requested certificate. The
     *         certificate ARN is generated and returned by the
     *         RequestCertificate action as soon as the request is made.
     *         By default, using this parameter causes email to be sent to all
     *         top-level domains you specified in the certificate request. 
     *         
     *         The ARN must be of the form:
     *         
     *         
     *         arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012
     */
    public String getCertificateArn() {
        return this.certificateArn;
    }
    /**
     * 
     * String that contains the ARN of the requested certificate. The
     * certificate ARN is generated and returned by the
     * RequestCertificate action as soon as the request is made. By
     * default, using this parameter causes email to be sent to all top-level
     * domains you specified in the certificate request.
     * 
     * 
     * The ARN must be of the form:
     * 
     * 
     * arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012
     * 
     * 
     * @param certificateArn
     *        String that contains the ARN of the requested certificate. The
     *        certificate ARN is generated and returned by the
     *        RequestCertificate action as soon as the request is made.
     *        By default, using this parameter causes email to be sent to all
     *        top-level domains you specified in the certificate request. 
     *        
     *        The ARN must be of the form:
     *        
     *        
     *        arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012
     * @return Returns a reference to this object so that method calls can be
     *         chained together.
     */
    public ResendValidationEmailRequest withCertificateArn(String certificateArn) {
        setCertificateArn(certificateArn);
        return this;
    }
    /**
     * 
     * The Fully Qualified Domain Name (FQDN) of the certificate that needs to
     * be validated.
     * 
     * 
     * @param domain
     *        The Fully Qualified Domain Name (FQDN) of the certificate that
     *        needs to be validated.
     */
    public void setDomain(String domain) {
        this.domain = domain;
    }
    /**
     * 
     * The Fully Qualified Domain Name (FQDN) of the certificate that needs to
     * be validated.
     * 
     * 
     * @return The Fully Qualified Domain Name (FQDN) of the certificate that
     *         needs to be validated.
     */
    public String getDomain() {
        return this.domain;
    }
    /**
     * 
     * The Fully Qualified Domain Name (FQDN) of the certificate that needs to
     * be validated.
     * 
     * 
     * @param domain
     *        The Fully Qualified Domain Name (FQDN) of the certificate that
     *        needs to be validated.
     * @return Returns a reference to this object so that method calls can be
     *         chained together.
     */
    public ResendValidationEmailRequest withDomain(String domain) {
        setDomain(domain);
        return this;
    }
    /**
     * 
     * The base validation domain that will act as the suffix of the email
     * addresses that are used to send the emails. This must be the same as the
     * Domain value or a superdomain of the Domain
     * value. For example, if you requested a certificate for
     * site.subdomain.example.com and specify a
     * ValidationDomain of subdomain.example.com, ACM sends
     * email to the domain registrant, technical contact, and administrative
     * contact in WHOIS and the following five addresses:
     * 
     * - 
     * 
     * 
 
     * - 
     * 
     * 
 
     * - 
     * 
     * 
 
     * - 
     * 
     * 
 
     * - 
     * 
     * 
 
     * 
     * 
     * 
     * @param validationDomain
     *        The base validation domain that will act as the suffix of the
     *        email addresses that are used to send the emails. This must be the
     *        same as the Domain value or a superdomain of the
     *        Domain value. For example, if you requested a
     *        certificate for site.subdomain.example.com and
     *        specify a ValidationDomain of
     *        subdomain.example.com, ACM sends email to the domain
     *        registrant, technical contact, and administrative contact in WHOIS
     *        and the following five addresses:
     *        
     *        - 
     *        
     *        
 
     *        - 
     *        
     *        
 
     *        - 
     *        
     *        
 
     *        - 
     *        
     *        
 
     *        - 
     *        
     *        
 
     *        
     */
    public void setValidationDomain(String validationDomain) {
        this.validationDomain = validationDomain;
    }
    /**
     * 
     * The base validation domain that will act as the suffix of the email
     * addresses that are used to send the emails. This must be the same as the
     * Domain value or a superdomain of the Domain
     * value. For example, if you requested a certificate for
     * site.subdomain.example.com and specify a
     * ValidationDomain of subdomain.example.com, ACM sends
     * email to the domain registrant, technical contact, and administrative
     * contact in WHOIS and the following five addresses:
     * 
     * - 
     * 
     * 
 
     * - 
     * 
     * 
 
     * - 
     * 
     * 
 
     * - 
     * 
     * 
 
     * - 
     * 
     * 
 
     * 
     * 
     * 
     * @return The base validation domain that will act as the suffix of the
     *         email addresses that are used to send the emails. This must be
     *         the same as the Domain value or a superdomain of the
     *         Domain value. For example, if you requested a
     *         certificate for site.subdomain.example.com and
     *         specify a ValidationDomain of
     *         subdomain.example.com, ACM sends email to the domain
     *         registrant, technical contact, and administrative contact in
     *         WHOIS and the following five addresses:
     *         
     *         - 
     *         
     *         
 
     *         - 
     *         
     *         
 
     *         - 
     *         
     *         
 
     *         - 
     *         
     *         
 
     *         - 
     *         
     *         
 
     *         
     */
    public String getValidationDomain() {
        return this.validationDomain;
    }
    /**
     * 
     * The base validation domain that will act as the suffix of the email
     * addresses that are used to send the emails. This must be the same as the
     * Domain value or a superdomain of the Domain
     * value. For example, if you requested a certificate for
     * site.subdomain.example.com and specify a
     * ValidationDomain of subdomain.example.com, ACM sends
     * email to the domain registrant, technical contact, and administrative
     * contact in WHOIS and the following five addresses:
     * 
     * - 
     * 
     * 
 
     * - 
     * 
     * 
 
     * - 
     * 
     * 
 
     * - 
     * 
     * 
 
     * - 
     * 
     * 
 
     * 
     * 
     * 
     * @param validationDomain
     *        The base validation domain that will act as the suffix of the
     *        email addresses that are used to send the emails. This must be the
     *        same as the Domain value or a superdomain of the
     *        Domain value. For example, if you requested a
     *        certificate for site.subdomain.example.com and
     *        specify a ValidationDomain of
     *        subdomain.example.com, ACM sends email to the domain
     *        registrant, technical contact, and administrative contact in WHOIS
     *        and the following five addresses:
     *        
     *        - 
     *        
     *        
 
     *        - 
     *        
     *        
 
     *        - 
     *        
     *        
 
     *        - 
     *        
     *        
 
     *        - 
     *        
     *        
 
     *        
     * @return Returns a reference to this object so that method calls can be
     *         chained together.
     */
    public ResendValidationEmailRequest withValidationDomain(
            String validationDomain) {
        setValidationDomain(validationDomain);
        return this;
    }
    /**
     * Returns a string representation of this object; useful for testing and
     * debugging.
     *
     * @return A string representation of this object.
     *
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getCertificateArn() != null)
            sb.append("CertificateArn: " + getCertificateArn() + ",");
        if (getDomain() != null)
            sb.append("Domain: " + getDomain() + ",");
        if (getValidationDomain() != null)
            sb.append("ValidationDomain: " + getValidationDomain());
        sb.append("}");
        return sb.toString();
    }
    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (obj instanceof ResendValidationEmailRequest == false)
            return false;
        ResendValidationEmailRequest other = (ResendValidationEmailRequest) obj;
        if (other.getCertificateArn() == null
                ^ this.getCertificateArn() == null)
            return false;
        if (other.getCertificateArn() != null
                && other.getCertificateArn().equals(this.getCertificateArn()) == false)
            return false;
        if (other.getDomain() == null ^ this.getDomain() == null)
            return false;
        if (other.getDomain() != null
                && other.getDomain().equals(this.getDomain()) == false)
            return false;
        if (other.getValidationDomain() == null
                ^ this.getValidationDomain() == null)
            return false;
        if (other.getValidationDomain() != null
                && other.getValidationDomain().equals(
                        this.getValidationDomain()) == false)
            return false;
        return true;
    }
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        hashCode = prime
                * hashCode
                + ((getCertificateArn() == null) ? 0 : getCertificateArn()
                        .hashCode());
        hashCode = prime * hashCode
                + ((getDomain() == null) ? 0 : getDomain().hashCode());
        hashCode = prime
                * hashCode
                + ((getValidationDomain() == null) ? 0 : getValidationDomain()
                        .hashCode());
        return hashCode;
    }
    @Override
    public ResendValidationEmailRequest clone() {
        return (ResendValidationEmailRequest) super.clone();
    }
}