/* * Copyright 2018-2023 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 javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GetConfigRequest extends com.amazonaws.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* 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) { withClientVersion(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(ClientVersion clientVersion) { this.clientVersion = clientVersion.toString(); 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* 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* 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* 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