/* * 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.appflow.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Information about required authentication parameters. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AuthParameter implements Serializable, Cloneable, StructuredPojo { /** ** The authentication key required to authenticate with the connector. *
*/ private String key; /** ** Indicates whether this authentication parameter is required. *
*/ private Boolean isRequired; /** ** Label used for authentication parameter. *
*/ private String label; /** ** A description about the authentication parameter. *
*/ private String description; /** ** Indicates whether this authentication parameter is a sensitive field. *
*/ private Boolean isSensitiveField; /** ** Contains default values for this authentication parameter that are supplied by the connector. *
*/ private java.util.List* The authentication key required to authenticate with the connector. *
* * @param key * The authentication key required to authenticate with the connector. */ public void setKey(String key) { this.key = key; } /** ** The authentication key required to authenticate with the connector. *
* * @return The authentication key required to authenticate with the connector. */ public String getKey() { return this.key; } /** ** The authentication key required to authenticate with the connector. *
* * @param key * The authentication key required to authenticate with the connector. * @return Returns a reference to this object so that method calls can be chained together. */ public AuthParameter withKey(String key) { setKey(key); return this; } /** ** Indicates whether this authentication parameter is required. *
* * @param isRequired * Indicates whether this authentication parameter is required. */ public void setIsRequired(Boolean isRequired) { this.isRequired = isRequired; } /** ** Indicates whether this authentication parameter is required. *
* * @return Indicates whether this authentication parameter is required. */ public Boolean getIsRequired() { return this.isRequired; } /** ** Indicates whether this authentication parameter is required. *
* * @param isRequired * Indicates whether this authentication parameter is required. * @return Returns a reference to this object so that method calls can be chained together. */ public AuthParameter withIsRequired(Boolean isRequired) { setIsRequired(isRequired); return this; } /** ** Indicates whether this authentication parameter is required. *
* * @return Indicates whether this authentication parameter is required. */ public Boolean isRequired() { return this.isRequired; } /** ** Label used for authentication parameter. *
* * @param label * Label used for authentication parameter. */ public void setLabel(String label) { this.label = label; } /** ** Label used for authentication parameter. *
* * @return Label used for authentication parameter. */ public String getLabel() { return this.label; } /** ** Label used for authentication parameter. *
* * @param label * Label used for authentication parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public AuthParameter withLabel(String label) { setLabel(label); return this; } /** ** A description about the authentication parameter. *
* * @param description * A description about the authentication parameter. */ public void setDescription(String description) { this.description = description; } /** ** A description about the authentication parameter. *
* * @return A description about the authentication parameter. */ public String getDescription() { return this.description; } /** ** A description about the authentication parameter. *
* * @param description * A description about the authentication parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public AuthParameter withDescription(String description) { setDescription(description); return this; } /** ** Indicates whether this authentication parameter is a sensitive field. *
* * @param isSensitiveField * Indicates whether this authentication parameter is a sensitive field. */ public void setIsSensitiveField(Boolean isSensitiveField) { this.isSensitiveField = isSensitiveField; } /** ** Indicates whether this authentication parameter is a sensitive field. *
* * @return Indicates whether this authentication parameter is a sensitive field. */ public Boolean getIsSensitiveField() { return this.isSensitiveField; } /** ** Indicates whether this authentication parameter is a sensitive field. *
* * @param isSensitiveField * Indicates whether this authentication parameter is a sensitive field. * @return Returns a reference to this object so that method calls can be chained together. */ public AuthParameter withIsSensitiveField(Boolean isSensitiveField) { setIsSensitiveField(isSensitiveField); return this; } /** ** Indicates whether this authentication parameter is a sensitive field. *
* * @return Indicates whether this authentication parameter is a sensitive field. */ public Boolean isSensitiveField() { return this.isSensitiveField; } /** ** Contains default values for this authentication parameter that are supplied by the connector. *
* * @return Contains default values for this authentication parameter that are supplied by the connector. */ public java.util.List* Contains default values for this authentication parameter that are supplied by the connector. *
* * @param connectorSuppliedValues * Contains default values for this authentication parameter that are supplied by the connector. */ public void setConnectorSuppliedValues(java.util.Collection* Contains default values for this authentication parameter that are supplied by the connector. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setConnectorSuppliedValues(java.util.Collection)} or * {@link #withConnectorSuppliedValues(java.util.Collection)} if you want to override the existing values. *
* * @param connectorSuppliedValues * Contains default values for this authentication parameter that are supplied by the connector. * @return Returns a reference to this object so that method calls can be chained together. */ public AuthParameter withConnectorSuppliedValues(String... connectorSuppliedValues) { if (this.connectorSuppliedValues == null) { setConnectorSuppliedValues(new java.util.ArrayList* Contains default values for this authentication parameter that are supplied by the connector. *
* * @param connectorSuppliedValues * Contains default values for this authentication parameter that are supplied by the connector. * @return Returns a reference to this object so that method calls can be chained together. */ public AuthParameter withConnectorSuppliedValues(java.util.Collection