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

com.amazonaws.services.appflow.model.DescribeConnectorsRequest Maven / Gradle / Ivy

/*
 * Copyright 2019-2024 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.AmazonWebServiceRequest;

/**
 * 
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeConnectorsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The type of connector, such as Salesforce, Amplitude, and so on. *

*/ private java.util.List connectorTypes; /** *

* The maximum number of items that should be returned in the result set. The default is 20. *

*/ private Integer maxResults; /** *

* The pagination token for the next page of data. *

*/ private String nextToken; /** *

* The type of connector, such as Salesforce, Amplitude, and so on. *

* * @return The type of connector, such as Salesforce, Amplitude, and so on. * @see ConnectorType */ public java.util.List getConnectorTypes() { return connectorTypes; } /** *

* The type of connector, such as Salesforce, Amplitude, and so on. *

* * @param connectorTypes * The type of connector, such as Salesforce, Amplitude, and so on. * @see ConnectorType */ public void setConnectorTypes(java.util.Collection connectorTypes) { if (connectorTypes == null) { this.connectorTypes = null; return; } this.connectorTypes = new java.util.ArrayList(connectorTypes); } /** *

* The type of connector, such as Salesforce, Amplitude, and so on. *

*

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

* * @param connectorTypes * The type of connector, such as Salesforce, Amplitude, and so on. * @return Returns a reference to this object so that method calls can be chained together. * @see ConnectorType */ public DescribeConnectorsRequest withConnectorTypes(String... connectorTypes) { if (this.connectorTypes == null) { setConnectorTypes(new java.util.ArrayList(connectorTypes.length)); } for (String ele : connectorTypes) { this.connectorTypes.add(ele); } return this; } /** *

* The type of connector, such as Salesforce, Amplitude, and so on. *

* * @param connectorTypes * The type of connector, such as Salesforce, Amplitude, and so on. * @return Returns a reference to this object so that method calls can be chained together. * @see ConnectorType */ public DescribeConnectorsRequest withConnectorTypes(java.util.Collection connectorTypes) { setConnectorTypes(connectorTypes); return this; } /** *

* The type of connector, such as Salesforce, Amplitude, and so on. *

* * @param connectorTypes * The type of connector, such as Salesforce, Amplitude, and so on. * @return Returns a reference to this object so that method calls can be chained together. * @see ConnectorType */ public DescribeConnectorsRequest withConnectorTypes(ConnectorType... connectorTypes) { java.util.ArrayList connectorTypesCopy = new java.util.ArrayList(connectorTypes.length); for (ConnectorType value : connectorTypes) { connectorTypesCopy.add(value.toString()); } if (getConnectorTypes() == null) { setConnectorTypes(connectorTypesCopy); } else { getConnectorTypes().addAll(connectorTypesCopy); } return this; } /** *

* The maximum number of items that should be returned in the result set. The default is 20. *

* * @param maxResults * The maximum number of items that should be returned in the result set. The default is 20. */ public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** *

* The maximum number of items that should be returned in the result set. The default is 20. *

* * @return The maximum number of items that should be returned in the result set. The default is 20. */ public Integer getMaxResults() { return this.maxResults; } /** *

* The maximum number of items that should be returned in the result set. The default is 20. *

* * @param maxResults * The maximum number of items that should be returned in the result set. The default is 20. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeConnectorsRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); return this; } /** *

* The pagination token for the next page of data. *

* * @param nextToken * The pagination token for the next page of data. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* The pagination token for the next page of data. *

* * @return The pagination token for the next page of data. */ public String getNextToken() { return this.nextToken; } /** *

* The pagination token for the next page of data. *

* * @param nextToken * The pagination token for the next page of data. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeConnectorsRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getConnectorTypes() != null) sb.append("ConnectorTypes: ").append(getConnectorTypes()).append(","); if (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeConnectorsRequest == false) return false; DescribeConnectorsRequest other = (DescribeConnectorsRequest) obj; if (other.getConnectorTypes() == null ^ this.getConnectorTypes() == null) return false; if (other.getConnectorTypes() != null && other.getConnectorTypes().equals(this.getConnectorTypes()) == false) return false; if (other.getMaxResults() == null ^ this.getMaxResults() == null) return false; if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConnectorTypes() == null) ? 0 : getConnectorTypes().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; } @Override public DescribeConnectorsRequest clone() { return (DescribeConnectorsRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy