/* * 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.AmazonWebServiceRequest; /** * * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DescribeConnectorProfilesRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the connector profile. The name is unique for each ConnectorProfile
in the Amazon Web
* Services account.
*
* The type of connector, such as Salesforce, Amplitude, and so on. *
*/ private String connectorType; /** *
* The name of the connector. The name is unique for each ConnectorRegistration
in your Amazon Web
* Services account. Only needed if calling for CUSTOMCONNECTOR connector type/.
*
* Specifies the maximum number of items that should be returned in the result set. The default for
* maxResults
is 20 (for all paginated API operations).
*
* The pagination token for the next page of data. *
*/ private String nextToken; /** *
* The name of the connector profile. The name is unique for each ConnectorProfile
in the Amazon Web
* Services account.
*
ConnectorProfile
in the
* Amazon Web Services account.
*/
public java.util.List
* The name of the connector profile. The name is unique for each ConnectorProfile
in the Amazon Web
* Services account.
*
ConnectorProfile
in the Amazon
* Web Services account.
*/
public void setConnectorProfileNames(java.util.Collection
* The name of the connector profile. The name is unique for each ConnectorProfile
in the Amazon Web
* Services account.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setConnectorProfileNames(java.util.Collection)} or * {@link #withConnectorProfileNames(java.util.Collection)} if you want to override the existing values. *
* * @param connectorProfileNames * The name of the connector profile. The name is unique for eachConnectorProfile
in the Amazon
* Web Services account.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeConnectorProfilesRequest withConnectorProfileNames(String... connectorProfileNames) {
if (this.connectorProfileNames == null) {
setConnectorProfileNames(new java.util.ArrayList
* The name of the connector profile. The name is unique for each ConnectorProfile
in the Amazon Web
* Services account.
*
ConnectorProfile
in the Amazon
* Web Services account.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeConnectorProfilesRequest withConnectorProfileNames(java.util.Collection* The type of connector, such as Salesforce, Amplitude, and so on. *
* * @param connectorType * The type of connector, such as Salesforce, Amplitude, and so on. * @see ConnectorType */ public void setConnectorType(String connectorType) { this.connectorType = connectorType; } /** ** 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 String getConnectorType() { return this.connectorType; } /** ** The type of connector, such as Salesforce, Amplitude, and so on. *
* * @param connectorType * 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 DescribeConnectorProfilesRequest withConnectorType(String connectorType) { setConnectorType(connectorType); return this; } /** ** The type of connector, such as Salesforce, Amplitude, and so on. *
* * @param connectorType * 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 DescribeConnectorProfilesRequest withConnectorType(ConnectorType connectorType) { this.connectorType = connectorType.toString(); return this; } /** *
* The name of the connector. The name is unique for each ConnectorRegistration
in your Amazon Web
* Services account. Only needed if calling for CUSTOMCONNECTOR connector type/.
*
ConnectorRegistration
in your Amazon
* Web Services account. Only needed if calling for CUSTOMCONNECTOR connector type/.
*/
public void setConnectorLabel(String connectorLabel) {
this.connectorLabel = connectorLabel;
}
/**
*
* The name of the connector. The name is unique for each ConnectorRegistration
in your Amazon Web
* Services account. Only needed if calling for CUSTOMCONNECTOR connector type/.
*
ConnectorRegistration
in your Amazon
* Web Services account. Only needed if calling for CUSTOMCONNECTOR connector type/.
*/
public String getConnectorLabel() {
return this.connectorLabel;
}
/**
*
* The name of the connector. The name is unique for each ConnectorRegistration
in your Amazon Web
* Services account. Only needed if calling for CUSTOMCONNECTOR connector type/.
*
ConnectorRegistration
in your Amazon
* Web Services account. Only needed if calling for CUSTOMCONNECTOR connector type/.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeConnectorProfilesRequest withConnectorLabel(String connectorLabel) {
setConnectorLabel(connectorLabel);
return this;
}
/**
*
* Specifies the maximum number of items that should be returned in the result set. The default for
* maxResults
is 20 (for all paginated API operations).
*
maxResults
is 20 (for all paginated API operations).
*/
public void setMaxResults(Integer maxResults) {
this.maxResults = maxResults;
}
/**
*
* Specifies the maximum number of items that should be returned in the result set. The default for
* maxResults
is 20 (for all paginated API operations).
*
maxResults
is 20 (for all paginated API operations).
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
*
* Specifies the maximum number of items that should be returned in the result set. The default for
* maxResults
is 20 (for all paginated API operations).
*
maxResults
is 20 (for all paginated API operations).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeConnectorProfilesRequest 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 DescribeConnectorProfilesRequest 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 (getConnectorProfileNames() != null) sb.append("ConnectorProfileNames: ").append(getConnectorProfileNames()).append(","); if (getConnectorType() != null) sb.append("ConnectorType: ").append(getConnectorType()).append(","); if (getConnectorLabel() != null) sb.append("ConnectorLabel: ").append(getConnectorLabel()).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 DescribeConnectorProfilesRequest == false) return false; DescribeConnectorProfilesRequest other = (DescribeConnectorProfilesRequest) obj; if (other.getConnectorProfileNames() == null ^ this.getConnectorProfileNames() == null) return false; if (other.getConnectorProfileNames() != null && other.getConnectorProfileNames().equals(this.getConnectorProfileNames()) == false) return false; if (other.getConnectorType() == null ^ this.getConnectorType() == null) return false; if (other.getConnectorType() != null && other.getConnectorType().equals(this.getConnectorType()) == false) return false; if (other.getConnectorLabel() == null ^ this.getConnectorLabel() == null) return false; if (other.getConnectorLabel() != null && other.getConnectorLabel().equals(this.getConnectorLabel()) == 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 + ((getConnectorProfileNames() == null) ? 0 : getConnectorProfileNames().hashCode()); hashCode = prime * hashCode + ((getConnectorType() == null) ? 0 : getConnectorType().hashCode()); hashCode = prime * hashCode + ((getConnectorLabel() == null) ? 0 : getConnectorLabel().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; } @Override public DescribeConnectorProfilesRequest clone() { return (DescribeConnectorProfilesRequest) super.clone(); } }