com.amazonaws.services.iot.model.TransferCertificateRequest Maven / Gradle / Ivy
                 Go to download
                
        
                    Show more of this group  Show more artifacts with this name
Show all versions of aws-java-sdk-iot Show documentation
                Show all versions of aws-java-sdk-iot Show documentation
The AWS Java SDK for AWS Iot Service module holds the client classes that are used for communicating with AWS IoT Service
                
             The newest version!
        
        /*
 * 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.iot.model;
import java.io.Serializable;
import com.amazonaws.AmazonWebServiceRequest;
/**
 * 
 * The input for the TransferCertificate operation.
 * 
 */
public class TransferCertificateRequest extends AmazonWebServiceRequest
        implements Serializable, Cloneable {
    /**
     * 
     * The ID of the certificate.
     * 
     */
    private String certificateId;
    /**
     * 
     * The AWS account.
     * 
     */
    private String targetAwsAccount;
    /**
     * 
     * The transfer message.
     * 
     */
    private String transferMessage;
    /**
     * 
     * The ID of the certificate.
     * 
     * 
     * @param certificateId
     *        The ID of the certificate.
     */
    public void setCertificateId(String certificateId) {
        this.certificateId = certificateId;
    }
    /**
     * 
     * The ID of the certificate.
     * 
     * 
     * @return The ID of the certificate.
     */
    public String getCertificateId() {
        return this.certificateId;
    }
    /**
     * 
     * The ID of the certificate.
     * 
     * 
     * @param certificateId
     *        The ID of the certificate.
     * @return Returns a reference to this object so that method calls can be
     *         chained together.
     */
    public TransferCertificateRequest withCertificateId(String certificateId) {
        setCertificateId(certificateId);
        return this;
    }
    /**
     * 
     * The AWS account.
     * 
     * 
     * @param targetAwsAccount
     *        The AWS account.
     */
    public void setTargetAwsAccount(String targetAwsAccount) {
        this.targetAwsAccount = targetAwsAccount;
    }
    /**
     * 
     * The AWS account.
     * 
     * 
     * @return The AWS account.
     */
    public String getTargetAwsAccount() {
        return this.targetAwsAccount;
    }
    /**
     * 
     * The AWS account.
     * 
     * 
     * @param targetAwsAccount
     *        The AWS account.
     * @return Returns a reference to this object so that method calls can be
     *         chained together.
     */
    public TransferCertificateRequest withTargetAwsAccount(
            String targetAwsAccount) {
        setTargetAwsAccount(targetAwsAccount);
        return this;
    }
    /**
     * 
     * The transfer message.
     * 
     * 
     * @param transferMessage
     *        The transfer message.
     */
    public void setTransferMessage(String transferMessage) {
        this.transferMessage = transferMessage;
    }
    /**
     * 
     * The transfer message.
     * 
     * 
     * @return The transfer message.
     */
    public String getTransferMessage() {
        return this.transferMessage;
    }
    /**
     * 
     * The transfer message.
     * 
     * 
     * @param transferMessage
     *        The transfer message.
     * @return Returns a reference to this object so that method calls can be
     *         chained together.
     */
    public TransferCertificateRequest withTransferMessage(String transferMessage) {
        setTransferMessage(transferMessage);
        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 (getCertificateId() != null)
            sb.append("CertificateId: " + getCertificateId() + ",");
        if (getTargetAwsAccount() != null)
            sb.append("TargetAwsAccount: " + getTargetAwsAccount() + ",");
        if (getTransferMessage() != null)
            sb.append("TransferMessage: " + getTransferMessage());
        sb.append("}");
        return sb.toString();
    }
    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (obj instanceof TransferCertificateRequest == false)
            return false;
        TransferCertificateRequest other = (TransferCertificateRequest) obj;
        if (other.getCertificateId() == null ^ this.getCertificateId() == null)
            return false;
        if (other.getCertificateId() != null
                && other.getCertificateId().equals(this.getCertificateId()) == false)
            return false;
        if (other.getTargetAwsAccount() == null
                ^ this.getTargetAwsAccount() == null)
            return false;
        if (other.getTargetAwsAccount() != null
                && other.getTargetAwsAccount().equals(
                        this.getTargetAwsAccount()) == false)
            return false;
        if (other.getTransferMessage() == null
                ^ this.getTransferMessage() == null)
            return false;
        if (other.getTransferMessage() != null
                && other.getTransferMessage().equals(this.getTransferMessage()) == false)
            return false;
        return true;
    }
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        hashCode = prime
                * hashCode
                + ((getCertificateId() == null) ? 0 : getCertificateId()
                        .hashCode());
        hashCode = prime
                * hashCode
                + ((getTargetAwsAccount() == null) ? 0 : getTargetAwsAccount()
                        .hashCode());
        hashCode = prime
                * hashCode
                + ((getTransferMessage() == null) ? 0 : getTransferMessage()
                        .hashCode());
        return hashCode;
    }
    @Override
    public TransferCertificateRequest clone() {
        return (TransferCertificateRequest) super.clone();
    }
}    © 2015 - 2025 Weber Informatics LLC | Privacy Policy