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

com.amazonaws.services.cloudhsm.model.GetConfigRequest Maven / Gradle / Ivy

Go to download

The AWS SDK for Java with support for OSGi. The AWS SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).

There is a newer version: 1.11.60
Show newest version
/*
 * Copyright 2011-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.cloudhsm.model;

import java.io.Serializable;
import com.amazonaws.AmazonWebServiceRequest;

/**
 * 
 */
public class GetConfigRequest extends AmazonWebServiceRequest implements
        Serializable, Cloneable {

    /**
     * 

* The ARN of the client. *

*/ private String clientArn; /** *

* The client version. *

*/ private String clientVersion; /** *

* A list of ARNs that identify the high-availability partition groups that * are associated with the client. *

*/ private com.amazonaws.internal.SdkInternalList hapgList; /** *

* The ARN of the client. *

* * @param clientArn * The ARN of the client. */ public void setClientArn(String clientArn) { this.clientArn = clientArn; } /** *

* The ARN of the client. *

* * @return The ARN of the client. */ public String getClientArn() { return this.clientArn; } /** *

* The ARN of the client. *

* * @param clientArn * The ARN of the client. * @return Returns a reference to this object so that method calls can be * chained together. */ public GetConfigRequest withClientArn(String clientArn) { setClientArn(clientArn); return this; } /** *

* The client version. *

* * @param clientVersion * The client version. * @see ClientVersion */ public void setClientVersion(String clientVersion) { this.clientVersion = clientVersion; } /** *

* The client version. *

* * @return The client version. * @see ClientVersion */ public String getClientVersion() { return this.clientVersion; } /** *

* The client version. *

* * @param clientVersion * The client version. * @return Returns a reference to this object so that method calls can be * chained together. * @see ClientVersion */ public GetConfigRequest withClientVersion(String clientVersion) { setClientVersion(clientVersion); return this; } /** *

* The client version. *

* * @param clientVersion * The client version. * @see ClientVersion */ public void setClientVersion(ClientVersion clientVersion) { this.clientVersion = clientVersion.toString(); } /** *

* The client version. *

* * @param clientVersion * The client version. * @return Returns a reference to this object so that method calls can be * chained together. * @see ClientVersion */ public GetConfigRequest withClientVersion(ClientVersion clientVersion) { setClientVersion(clientVersion); return this; } /** *

* A list of ARNs that identify the high-availability partition groups that * are associated with the client. *

* * @return A list of ARNs that identify the high-availability partition * groups that are associated with the client. */ public java.util.List getHapgList() { if (hapgList == null) { hapgList = new com.amazonaws.internal.SdkInternalList(); } return hapgList; } /** *

* A list of ARNs that identify the high-availability partition groups that * are associated with the client. *

* * @param hapgList * A list of ARNs that identify the high-availability partition * groups that are associated with the client. */ public void setHapgList(java.util.Collection hapgList) { if (hapgList == null) { this.hapgList = null; return; } this.hapgList = new com.amazonaws.internal.SdkInternalList( hapgList); } /** *

* A list of ARNs that identify the high-availability partition groups that * are associated with the client. *

*

* NOTE: This method appends the values to the existing list (if * any). Use {@link #setHapgList(java.util.Collection)} or * {@link #withHapgList(java.util.Collection)} if you want to override the * existing values. *

* * @param hapgList * A list of ARNs that identify the high-availability partition * groups that are associated with the client. * @return Returns a reference to this object so that method calls can be * chained together. */ public GetConfigRequest withHapgList(String... hapgList) { if (this.hapgList == null) { setHapgList(new com.amazonaws.internal.SdkInternalList( hapgList.length)); } for (String ele : hapgList) { this.hapgList.add(ele); } return this; } /** *

* A list of ARNs that identify the high-availability partition groups that * are associated with the client. *

* * @param hapgList * A list of ARNs that identify the high-availability partition * groups that are associated with the client. * @return Returns a reference to this object so that method calls can be * chained together. */ public GetConfigRequest withHapgList(java.util.Collection hapgList) { setHapgList(hapgList); 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 (getClientArn() != null) sb.append("ClientArn: " + getClientArn() + ","); if (getClientVersion() != null) sb.append("ClientVersion: " + getClientVersion() + ","); if (getHapgList() != null) sb.append("HapgList: " + getHapgList()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetConfigRequest == false) return false; GetConfigRequest other = (GetConfigRequest) obj; if (other.getClientArn() == null ^ this.getClientArn() == null) return false; if (other.getClientArn() != null && other.getClientArn().equals(this.getClientArn()) == false) return false; if (other.getClientVersion() == null ^ this.getClientVersion() == null) return false; if (other.getClientVersion() != null && other.getClientVersion().equals(this.getClientVersion()) == false) return false; if (other.getHapgList() == null ^ this.getHapgList() == null) return false; if (other.getHapgList() != null && other.getHapgList().equals(this.getHapgList()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getClientArn() == null) ? 0 : getClientArn().hashCode()); hashCode = prime * hashCode + ((getClientVersion() == null) ? 0 : getClientVersion() .hashCode()); hashCode = prime * hashCode + ((getHapgList() == null) ? 0 : getHapgList().hashCode()); return hashCode; } @Override public GetConfigRequest clone() { return (GetConfigRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy