/* * Copyright 2010-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.connect.model; import java.io.Serializable; /** *

* Contains summary information about the associated AppIntegrations. *

*/ public class IntegrationAssociationSummary implements Serializable { /** *

* The identifier for the AppIntegration association. *

*

* Constraints:
* Length: 1 - 200
*/ private String integrationAssociationId; /** *

* The Amazon Resource Name (ARN) for the AppIntegration association. *

*/ private String integrationAssociationArn; /** *

* The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the * instance. *

*

* Constraints:
* Length: 1 - 100
*/ private String instanceId; /** *

* The integration type. *

*

* Constraints:
* Allowed Values: EVENT, VOICE_ID, PINPOINT_APP, WISDOM_ASSISTANT, * WISDOM_KNOWLEDGE_BASE, CASES_DOMAIN */ private String integrationType; /** *

* The Amazon Resource Name (ARN) for the AppIntegration. *

*/ private String integrationArn; /** *

* The URL for the external application. *

*

* Constraints:
* Length: 1 - 2000
*/ private String sourceApplicationUrl; /** *

* The user-provided, friendly name for the external application. *

*

* Constraints:
* Length: 1 - 100
* Pattern: ^[a-zA-Z0-9_ -]+$
*/ private String sourceApplicationName; /** *

* The name of the source. *

*

* Constraints:
* Allowed Values: SALESFORCE, ZENDESK */ private String sourceType; /** *

* The identifier for the AppIntegration association. *

*

* Constraints:
* Length: 1 - 200
* * @return

* The identifier for the AppIntegration association. *

*/ public String getIntegrationAssociationId() { return integrationAssociationId; } /** *

* The identifier for the AppIntegration association. *

*

* Constraints:
* Length: 1 - 200
* * @param integrationAssociationId

* The identifier for the AppIntegration association. *

*/ public void setIntegrationAssociationId(String integrationAssociationId) { this.integrationAssociationId = integrationAssociationId; } /** *

* The identifier for the AppIntegration association. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Length: 1 - 200
* * @param integrationAssociationId

* The identifier for the AppIntegration association. *

* @return A reference to this updated object so that method calls can be * chained together. */ public IntegrationAssociationSummary withIntegrationAssociationId( String integrationAssociationId) { this.integrationAssociationId = integrationAssociationId; return this; } /** *

* The Amazon Resource Name (ARN) for the AppIntegration association. *

* * @return

* The Amazon Resource Name (ARN) for the AppIntegration * association. *

*/ public String getIntegrationAssociationArn() { return integrationAssociationArn; } /** *

* The Amazon Resource Name (ARN) for the AppIntegration association. *

* * @param integrationAssociationArn

* The Amazon Resource Name (ARN) for the AppIntegration * association. *

*/ public void setIntegrationAssociationArn(String integrationAssociationArn) { this.integrationAssociationArn = integrationAssociationArn; } /** *

* The Amazon Resource Name (ARN) for the AppIntegration association. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param integrationAssociationArn

* The Amazon Resource Name (ARN) for the AppIntegration * association. *

* @return A reference to this updated object so that method calls can be * chained together. */ public IntegrationAssociationSummary withIntegrationAssociationArn( String integrationAssociationArn) { this.integrationAssociationArn = integrationAssociationArn; return this; } /** *

* The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the * instance. *

*

* Constraints:
* Length: 1 - 100
* * @return

* The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of * the instance. *

*/ public String getInstanceId() { return instanceId; } /** *

* The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the * instance. *

*

* Constraints:
* Length: 1 - 100
* * @param instanceId

* The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of * the instance. *

*/ public void setInstanceId(String instanceId) { this.instanceId = instanceId; } /** *

* The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the * instance. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Length: 1 - 100
* * @param instanceId

* The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of * the instance. *

* @return A reference to this updated object so that method calls can be * chained together. */ public IntegrationAssociationSummary withInstanceId(String instanceId) { this.instanceId = instanceId; return this; } /** *

* The integration type. *

*

* Constraints:
* Allowed Values: EVENT, VOICE_ID, PINPOINT_APP, WISDOM_ASSISTANT, * WISDOM_KNOWLEDGE_BASE, CASES_DOMAIN * * @return

* The integration type. *

* @see IntegrationType */ public String getIntegrationType() { return integrationType; } /** *

* The integration type. *

*

* Constraints:
* Allowed Values: EVENT, VOICE_ID, PINPOINT_APP, WISDOM_ASSISTANT, * WISDOM_KNOWLEDGE_BASE, CASES_DOMAIN * * @param integrationType

* The integration type. *

* @see IntegrationType */ public void setIntegrationType(String integrationType) { this.integrationType = integrationType; } /** *

* The integration type. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Allowed Values: EVENT, VOICE_ID, PINPOINT_APP, WISDOM_ASSISTANT, * WISDOM_KNOWLEDGE_BASE, CASES_DOMAIN * * @param integrationType

* The integration type. *

* @return A reference to this updated object so that method calls can be * chained together. * @see IntegrationType */ public IntegrationAssociationSummary withIntegrationType(String integrationType) { this.integrationType = integrationType; return this; } /** *

* The integration type. *

*

* Constraints:
* Allowed Values: EVENT, VOICE_ID, PINPOINT_APP, WISDOM_ASSISTANT, * WISDOM_KNOWLEDGE_BASE, CASES_DOMAIN * * @param integrationType

* The integration type. *

* @see IntegrationType */ public void setIntegrationType(IntegrationType integrationType) { this.integrationType = integrationType.toString(); } /** *

* The integration type. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Allowed Values: EVENT, VOICE_ID, PINPOINT_APP, WISDOM_ASSISTANT, * WISDOM_KNOWLEDGE_BASE, CASES_DOMAIN * * @param integrationType

* The integration type. *

* @return A reference to this updated object so that method calls can be * chained together. * @see IntegrationType */ public IntegrationAssociationSummary withIntegrationType(IntegrationType integrationType) { this.integrationType = integrationType.toString(); return this; } /** *

* The Amazon Resource Name (ARN) for the AppIntegration. *

* * @return

* The Amazon Resource Name (ARN) for the AppIntegration. *

*/ public String getIntegrationArn() { return integrationArn; } /** *

* The Amazon Resource Name (ARN) for the AppIntegration. *

* * @param integrationArn

* The Amazon Resource Name (ARN) for the AppIntegration. *

*/ public void setIntegrationArn(String integrationArn) { this.integrationArn = integrationArn; } /** *

* The Amazon Resource Name (ARN) for the AppIntegration. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param integrationArn

* The Amazon Resource Name (ARN) for the AppIntegration. *

* @return A reference to this updated object so that method calls can be * chained together. */ public IntegrationAssociationSummary withIntegrationArn(String integrationArn) { this.integrationArn = integrationArn; return this; } /** *

* The URL for the external application. *

*

* Constraints:
* Length: 1 - 2000
* * @return

* The URL for the external application. *

*/ public String getSourceApplicationUrl() { return sourceApplicationUrl; } /** *

* The URL for the external application. *

*

* Constraints:
* Length: 1 - 2000
* * @param sourceApplicationUrl

* The URL for the external application. *

*/ public void setSourceApplicationUrl(String sourceApplicationUrl) { this.sourceApplicationUrl = sourceApplicationUrl; } /** *

* The URL for the external application. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Length: 1 - 2000
* * @param sourceApplicationUrl

* The URL for the external application. *

* @return A reference to this updated object so that method calls can be * chained together. */ public IntegrationAssociationSummary withSourceApplicationUrl(String sourceApplicationUrl) { this.sourceApplicationUrl = sourceApplicationUrl; return this; } /** *

* The user-provided, friendly name for the external application. *

*

* Constraints:
* Length: 1 - 100
* Pattern: ^[a-zA-Z0-9_ -]+$
* * @return

* The user-provided, friendly name for the external application. *

*/ public String getSourceApplicationName() { return sourceApplicationName; } /** *

* The user-provided, friendly name for the external application. *

*

* Constraints:
* Length: 1 - 100
* Pattern: ^[a-zA-Z0-9_ -]+$
* * @param sourceApplicationName

* The user-provided, friendly name for the external application. *

*/ public void setSourceApplicationName(String sourceApplicationName) { this.sourceApplicationName = sourceApplicationName; } /** *

* The user-provided, friendly name for the external application. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Length: 1 - 100
* Pattern: ^[a-zA-Z0-9_ -]+$
* * @param sourceApplicationName

* The user-provided, friendly name for the external application. *

* @return A reference to this updated object so that method calls can be * chained together. */ public IntegrationAssociationSummary withSourceApplicationName(String sourceApplicationName) { this.sourceApplicationName = sourceApplicationName; return this; } /** *

* The name of the source. *

*

* Constraints:
* Allowed Values: SALESFORCE, ZENDESK * * @return

* The name of the source. *

* @see SourceType */ public String getSourceType() { return sourceType; } /** *

* The name of the source. *

*

* Constraints:
* Allowed Values: SALESFORCE, ZENDESK * * @param sourceType

* The name of the source. *

* @see SourceType */ public void setSourceType(String sourceType) { this.sourceType = sourceType; } /** *

* The name of the source. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Allowed Values: SALESFORCE, ZENDESK * * @param sourceType

* The name of the source. *

* @return A reference to this updated object so that method calls can be * chained together. * @see SourceType */ public IntegrationAssociationSummary withSourceType(String sourceType) { this.sourceType = sourceType; return this; } /** *

* The name of the source. *

*

* Constraints:
* Allowed Values: SALESFORCE, ZENDESK * * @param sourceType

* The name of the source. *

* @see SourceType */ public void setSourceType(SourceType sourceType) { this.sourceType = sourceType.toString(); } /** *

* The name of the source. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Allowed Values: SALESFORCE, ZENDESK * * @param sourceType

* The name of the source. *

* @return A reference to this updated object so that method calls can be * chained together. * @see SourceType */ public IntegrationAssociationSummary withSourceType(SourceType sourceType) { this.sourceType = sourceType.toString(); return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getIntegrationAssociationId() != null) sb.append("IntegrationAssociationId: " + getIntegrationAssociationId() + ","); if (getIntegrationAssociationArn() != null) sb.append("IntegrationAssociationArn: " + getIntegrationAssociationArn() + ","); if (getInstanceId() != null) sb.append("InstanceId: " + getInstanceId() + ","); if (getIntegrationType() != null) sb.append("IntegrationType: " + getIntegrationType() + ","); if (getIntegrationArn() != null) sb.append("IntegrationArn: " + getIntegrationArn() + ","); if (getSourceApplicationUrl() != null) sb.append("SourceApplicationUrl: " + getSourceApplicationUrl() + ","); if (getSourceApplicationName() != null) sb.append("SourceApplicationName: " + getSourceApplicationName() + ","); if (getSourceType() != null) sb.append("SourceType: " + getSourceType()); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getIntegrationAssociationId() == null) ? 0 : getIntegrationAssociationId() .hashCode()); hashCode = prime * hashCode + ((getIntegrationAssociationArn() == null) ? 0 : getIntegrationAssociationArn() .hashCode()); hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); hashCode = prime * hashCode + ((getIntegrationType() == null) ? 0 : getIntegrationType().hashCode()); hashCode = prime * hashCode + ((getIntegrationArn() == null) ? 0 : getIntegrationArn().hashCode()); hashCode = prime * hashCode + ((getSourceApplicationUrl() == null) ? 0 : getSourceApplicationUrl().hashCode()); hashCode = prime * hashCode + ((getSourceApplicationName() == null) ? 0 : getSourceApplicationName().hashCode()); hashCode = prime * hashCode + ((getSourceType() == null) ? 0 : getSourceType().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof IntegrationAssociationSummary == false) return false; IntegrationAssociationSummary other = (IntegrationAssociationSummary) obj; if (other.getIntegrationAssociationId() == null ^ this.getIntegrationAssociationId() == null) return false; if (other.getIntegrationAssociationId() != null && other.getIntegrationAssociationId().equals(this.getIntegrationAssociationId()) == false) return false; if (other.getIntegrationAssociationArn() == null ^ this.getIntegrationAssociationArn() == null) return false; if (other.getIntegrationAssociationArn() != null && other.getIntegrationAssociationArn().equals(this.getIntegrationAssociationArn()) == false) return false; if (other.getInstanceId() == null ^ this.getInstanceId() == null) return false; if (other.getInstanceId() != null && other.getInstanceId().equals(this.getInstanceId()) == false) return false; if (other.getIntegrationType() == null ^ this.getIntegrationType() == null) return false; if (other.getIntegrationType() != null && other.getIntegrationType().equals(this.getIntegrationType()) == false) return false; if (other.getIntegrationArn() == null ^ this.getIntegrationArn() == null) return false; if (other.getIntegrationArn() != null && other.getIntegrationArn().equals(this.getIntegrationArn()) == false) return false; if (other.getSourceApplicationUrl() == null ^ this.getSourceApplicationUrl() == null) return false; if (other.getSourceApplicationUrl() != null && other.getSourceApplicationUrl().equals(this.getSourceApplicationUrl()) == false) return false; if (other.getSourceApplicationName() == null ^ this.getSourceApplicationName() == null) return false; if (other.getSourceApplicationName() != null && other.getSourceApplicationName().equals(this.getSourceApplicationName()) == false) return false; if (other.getSourceType() == null ^ this.getSourceType() == null) return false; if (other.getSourceType() != null && other.getSourceType().equals(this.getSourceType()) == false) return false; return true; } }