/* * 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 RegisterConnectorRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The name of the connector. The name is unique for each ConnectorRegistration in your Amazon Web * Services account. *

*/ private String connectorLabel; /** *

* A description about the connector that's being registered. *

*/ private String description; /** *

* The provisioning type of the connector. Currently the only supported value is LAMBDA. *

*/ private String connectorProvisioningType; /** *

* The provisioning type of the connector. Currently the only supported value is LAMBDA. *

*/ private ConnectorProvisioningConfig connectorProvisioningConfig; /** *

* The clientToken parameter is an idempotency token. It ensures that your * RegisterConnector request completes only once. You choose the value to pass. For example, if you * don't receive a response from your request, you can safely retry the request with the same * clientToken parameter value. *

*

* If you omit a clientToken value, the Amazon Web Services SDK that you are using inserts a value for * you. This way, the SDK can safely retry requests multiple times after a network error. You must provide your own * value for other use cases. *

*

* If you specify input parameters that differ from your first request, an error occurs. If you use a different * value for clientToken, Amazon AppFlow considers it a new call to RegisterConnector. The * token is active for 8 hours. *

*/ private String clientToken; /** *

* The name of the connector. The name is unique for each ConnectorRegistration in your Amazon Web * Services account. *

* * @param connectorLabel * The name of the connector. The name is unique for each ConnectorRegistration in your Amazon * Web Services account. */ 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. *

* * @return The name of the connector. The name is unique for each ConnectorRegistration in your Amazon * Web Services account. */ public String getConnectorLabel() { return this.connectorLabel; } /** *

* The name of the connector. The name is unique for each ConnectorRegistration in your Amazon Web * Services account. *

* * @param connectorLabel * The name of the connector. The name is unique for each ConnectorRegistration in your Amazon * Web Services account. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterConnectorRequest withConnectorLabel(String connectorLabel) { setConnectorLabel(connectorLabel); return this; } /** *

* A description about the connector that's being registered. *

* * @param description * A description about the connector that's being registered. */ public void setDescription(String description) { this.description = description; } /** *

* A description about the connector that's being registered. *

* * @return A description about the connector that's being registered. */ public String getDescription() { return this.description; } /** *

* A description about the connector that's being registered. *

* * @param description * A description about the connector that's being registered. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterConnectorRequest withDescription(String description) { setDescription(description); return this; } /** *

* The provisioning type of the connector. Currently the only supported value is LAMBDA. *

* * @param connectorProvisioningType * The provisioning type of the connector. Currently the only supported value is LAMBDA. * @see ConnectorProvisioningType */ public void setConnectorProvisioningType(String connectorProvisioningType) { this.connectorProvisioningType = connectorProvisioningType; } /** *

* The provisioning type of the connector. Currently the only supported value is LAMBDA. *

* * @return The provisioning type of the connector. Currently the only supported value is LAMBDA. * @see ConnectorProvisioningType */ public String getConnectorProvisioningType() { return this.connectorProvisioningType; } /** *

* The provisioning type of the connector. Currently the only supported value is LAMBDA. *

* * @param connectorProvisioningType * The provisioning type of the connector. Currently the only supported value is LAMBDA. * @return Returns a reference to this object so that method calls can be chained together. * @see ConnectorProvisioningType */ public RegisterConnectorRequest withConnectorProvisioningType(String connectorProvisioningType) { setConnectorProvisioningType(connectorProvisioningType); return this; } /** *

* The provisioning type of the connector. Currently the only supported value is LAMBDA. *

* * @param connectorProvisioningType * The provisioning type of the connector. Currently the only supported value is LAMBDA. * @return Returns a reference to this object so that method calls can be chained together. * @see ConnectorProvisioningType */ public RegisterConnectorRequest withConnectorProvisioningType(ConnectorProvisioningType connectorProvisioningType) { this.connectorProvisioningType = connectorProvisioningType.toString(); return this; } /** *

* The provisioning type of the connector. Currently the only supported value is LAMBDA. *

* * @param connectorProvisioningConfig * The provisioning type of the connector. Currently the only supported value is LAMBDA. */ public void setConnectorProvisioningConfig(ConnectorProvisioningConfig connectorProvisioningConfig) { this.connectorProvisioningConfig = connectorProvisioningConfig; } /** *

* The provisioning type of the connector. Currently the only supported value is LAMBDA. *

* * @return The provisioning type of the connector. Currently the only supported value is LAMBDA. */ public ConnectorProvisioningConfig getConnectorProvisioningConfig() { return this.connectorProvisioningConfig; } /** *

* The provisioning type of the connector. Currently the only supported value is LAMBDA. *

* * @param connectorProvisioningConfig * The provisioning type of the connector. Currently the only supported value is LAMBDA. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterConnectorRequest withConnectorProvisioningConfig(ConnectorProvisioningConfig connectorProvisioningConfig) { setConnectorProvisioningConfig(connectorProvisioningConfig); return this; } /** *

* The clientToken parameter is an idempotency token. It ensures that your * RegisterConnector request completes only once. You choose the value to pass. For example, if you * don't receive a response from your request, you can safely retry the request with the same * clientToken parameter value. *

*

* If you omit a clientToken value, the Amazon Web Services SDK that you are using inserts a value for * you. This way, the SDK can safely retry requests multiple times after a network error. You must provide your own * value for other use cases. *

*

* If you specify input parameters that differ from your first request, an error occurs. If you use a different * value for clientToken, Amazon AppFlow considers it a new call to RegisterConnector. The * token is active for 8 hours. *

* * @param clientToken * The clientToken parameter is an idempotency token. It ensures that your * RegisterConnector request completes only once. You choose the value to pass. For example, if * you don't receive a response from your request, you can safely retry the request with the same * clientToken parameter value.

*

* If you omit a clientToken value, the Amazon Web Services SDK that you are using inserts a * value for you. This way, the SDK can safely retry requests multiple times after a network error. You must * provide your own value for other use cases. *

*

* If you specify input parameters that differ from your first request, an error occurs. If you use a * different value for clientToken, Amazon AppFlow considers it a new call to * RegisterConnector. The token is active for 8 hours. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** *

* The clientToken parameter is an idempotency token. It ensures that your * RegisterConnector request completes only once. You choose the value to pass. For example, if you * don't receive a response from your request, you can safely retry the request with the same * clientToken parameter value. *

*

* If you omit a clientToken value, the Amazon Web Services SDK that you are using inserts a value for * you. This way, the SDK can safely retry requests multiple times after a network error. You must provide your own * value for other use cases. *

*

* If you specify input parameters that differ from your first request, an error occurs. If you use a different * value for clientToken, Amazon AppFlow considers it a new call to RegisterConnector. The * token is active for 8 hours. *

* * @return The clientToken parameter is an idempotency token. It ensures that your * RegisterConnector request completes only once. You choose the value to pass. For example, if * you don't receive a response from your request, you can safely retry the request with the same * clientToken parameter value.

*

* If you omit a clientToken value, the Amazon Web Services SDK that you are using inserts a * value for you. This way, the SDK can safely retry requests multiple times after a network error. You must * provide your own value for other use cases. *

*

* If you specify input parameters that differ from your first request, an error occurs. If you use a * different value for clientToken, Amazon AppFlow considers it a new call to * RegisterConnector. The token is active for 8 hours. */ public String getClientToken() { return this.clientToken; } /** *

* The clientToken parameter is an idempotency token. It ensures that your * RegisterConnector request completes only once. You choose the value to pass. For example, if you * don't receive a response from your request, you can safely retry the request with the same * clientToken parameter value. *

*

* If you omit a clientToken value, the Amazon Web Services SDK that you are using inserts a value for * you. This way, the SDK can safely retry requests multiple times after a network error. You must provide your own * value for other use cases. *

*

* If you specify input parameters that differ from your first request, an error occurs. If you use a different * value for clientToken, Amazon AppFlow considers it a new call to RegisterConnector. The * token is active for 8 hours. *

* * @param clientToken * The clientToken parameter is an idempotency token. It ensures that your * RegisterConnector request completes only once. You choose the value to pass. For example, if * you don't receive a response from your request, you can safely retry the request with the same * clientToken parameter value.

*

* If you omit a clientToken value, the Amazon Web Services SDK that you are using inserts a * value for you. This way, the SDK can safely retry requests multiple times after a network error. You must * provide your own value for other use cases. *

*

* If you specify input parameters that differ from your first request, an error occurs. If you use a * different value for clientToken, Amazon AppFlow considers it a new call to * RegisterConnector. The token is active for 8 hours. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterConnectorRequest withClientToken(String clientToken) { setClientToken(clientToken); 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 (getConnectorLabel() != null) sb.append("ConnectorLabel: ").append(getConnectorLabel()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getConnectorProvisioningType() != null) sb.append("ConnectorProvisioningType: ").append(getConnectorProvisioningType()).append(","); if (getConnectorProvisioningConfig() != null) sb.append("ConnectorProvisioningConfig: ").append(getConnectorProvisioningConfig()).append(","); if (getClientToken() != null) sb.append("ClientToken: ").append(getClientToken()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RegisterConnectorRequest == false) return false; RegisterConnectorRequest other = (RegisterConnectorRequest) obj; if (other.getConnectorLabel() == null ^ this.getConnectorLabel() == null) return false; if (other.getConnectorLabel() != null && other.getConnectorLabel().equals(this.getConnectorLabel()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getConnectorProvisioningType() == null ^ this.getConnectorProvisioningType() == null) return false; if (other.getConnectorProvisioningType() != null && other.getConnectorProvisioningType().equals(this.getConnectorProvisioningType()) == false) return false; if (other.getConnectorProvisioningConfig() == null ^ this.getConnectorProvisioningConfig() == null) return false; if (other.getConnectorProvisioningConfig() != null && other.getConnectorProvisioningConfig().equals(this.getConnectorProvisioningConfig()) == false) return false; if (other.getClientToken() == null ^ this.getClientToken() == null) return false; if (other.getClientToken() != null && other.getClientToken().equals(this.getClientToken()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConnectorLabel() == null) ? 0 : getConnectorLabel().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getConnectorProvisioningType() == null) ? 0 : getConnectorProvisioningType().hashCode()); hashCode = prime * hashCode + ((getConnectorProvisioningConfig() == null) ? 0 : getConnectorProvisioningConfig().hashCode()); hashCode = prime * hashCode + ((getClientToken() == null) ? 0 : getClientToken().hashCode()); return hashCode; } @Override public RegisterConnectorRequest clone() { return (RegisterConnectorRequest) super.clone(); } }