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

com.amazonaws.services.customerprofiles.model.PutIntegrationRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Connect Customer Profiles module holds the client classes that are used for communicating with Amazon Connect Customer Profiles Service

There is a newer version: 1.12.780
Show newest version
/*
 * 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.customerprofiles.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 PutIntegrationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The unique name of the domain. *

*/ private String domainName; /** *

* The URI of the S3 bucket or any other type of data source. *

*/ private String uri; /** *

* The name of the profile object type. *

*/ private String objectTypeName; /** *

* The tags used to organize, track, or control access for this resource. *

*/ private java.util.Map tags; /** *

* The configuration that controls how Customer Profiles retrieves data from the source. *

*/ private FlowDefinition flowDefinition; /** *

* A map in which each key is an event type from an external application such as Segment or Shopify, and each value * is an ObjectTypeName (template) used to ingest the event. It supports the following event types: * SegmentIdentify, ShopifyCreateCustomers, ShopifyUpdateCustomers, * ShopifyCreateDraftOrders, ShopifyUpdateDraftOrders, ShopifyCreateOrders, * and ShopifyUpdatedOrders. *

*/ private java.util.Map objectTypeNames; /** *

* The unique name of the domain. *

* * @param domainName * The unique name of the domain. */ public void setDomainName(String domainName) { this.domainName = domainName; } /** *

* The unique name of the domain. *

* * @return The unique name of the domain. */ public String getDomainName() { return this.domainName; } /** *

* The unique name of the domain. *

* * @param domainName * The unique name of the domain. * @return Returns a reference to this object so that method calls can be chained together. */ public PutIntegrationRequest withDomainName(String domainName) { setDomainName(domainName); return this; } /** *

* The URI of the S3 bucket or any other type of data source. *

* * @param uri * The URI of the S3 bucket or any other type of data source. */ public void setUri(String uri) { this.uri = uri; } /** *

* The URI of the S3 bucket or any other type of data source. *

* * @return The URI of the S3 bucket or any other type of data source. */ public String getUri() { return this.uri; } /** *

* The URI of the S3 bucket or any other type of data source. *

* * @param uri * The URI of the S3 bucket or any other type of data source. * @return Returns a reference to this object so that method calls can be chained together. */ public PutIntegrationRequest withUri(String uri) { setUri(uri); return this; } /** *

* The name of the profile object type. *

* * @param objectTypeName * The name of the profile object type. */ public void setObjectTypeName(String objectTypeName) { this.objectTypeName = objectTypeName; } /** *

* The name of the profile object type. *

* * @return The name of the profile object type. */ public String getObjectTypeName() { return this.objectTypeName; } /** *

* The name of the profile object type. *

* * @param objectTypeName * The name of the profile object type. * @return Returns a reference to this object so that method calls can be chained together. */ public PutIntegrationRequest withObjectTypeName(String objectTypeName) { setObjectTypeName(objectTypeName); return this; } /** *

* The tags used to organize, track, or control access for this resource. *

* * @return The tags used to organize, track, or control access for this resource. */ public java.util.Map getTags() { return tags; } /** *

* The tags used to organize, track, or control access for this resource. *

* * @param tags * The tags used to organize, track, or control access for this resource. */ public void setTags(java.util.Map tags) { this.tags = tags; } /** *

* The tags used to organize, track, or control access for this resource. *

* * @param tags * The tags used to organize, track, or control access for this resource. * @return Returns a reference to this object so that method calls can be chained together. */ public PutIntegrationRequest withTags(java.util.Map tags) { setTags(tags); return this; } /** * Add a single Tags entry * * @see PutIntegrationRequest#withTags * @returns a reference to this object so that method calls can be chained together. */ public PutIntegrationRequest addTagsEntry(String key, String value) { if (null == this.tags) { this.tags = new java.util.HashMap(); } if (this.tags.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.tags.put(key, value); return this; } /** * Removes all the entries added into Tags. * * @return Returns a reference to this object so that method calls can be chained together. */ public PutIntegrationRequest clearTagsEntries() { this.tags = null; return this; } /** *

* The configuration that controls how Customer Profiles retrieves data from the source. *

* * @param flowDefinition * The configuration that controls how Customer Profiles retrieves data from the source. */ public void setFlowDefinition(FlowDefinition flowDefinition) { this.flowDefinition = flowDefinition; } /** *

* The configuration that controls how Customer Profiles retrieves data from the source. *

* * @return The configuration that controls how Customer Profiles retrieves data from the source. */ public FlowDefinition getFlowDefinition() { return this.flowDefinition; } /** *

* The configuration that controls how Customer Profiles retrieves data from the source. *

* * @param flowDefinition * The configuration that controls how Customer Profiles retrieves data from the source. * @return Returns a reference to this object so that method calls can be chained together. */ public PutIntegrationRequest withFlowDefinition(FlowDefinition flowDefinition) { setFlowDefinition(flowDefinition); return this; } /** *

* A map in which each key is an event type from an external application such as Segment or Shopify, and each value * is an ObjectTypeName (template) used to ingest the event. It supports the following event types: * SegmentIdentify, ShopifyCreateCustomers, ShopifyUpdateCustomers, * ShopifyCreateDraftOrders, ShopifyUpdateDraftOrders, ShopifyCreateOrders, * and ShopifyUpdatedOrders. *

* * @return A map in which each key is an event type from an external application such as Segment or Shopify, and * each value is an ObjectTypeName (template) used to ingest the event. It supports the * following event types: SegmentIdentify, ShopifyCreateCustomers, * ShopifyUpdateCustomers, ShopifyCreateDraftOrders, * ShopifyUpdateDraftOrders, ShopifyCreateOrders, and * ShopifyUpdatedOrders. */ public java.util.Map getObjectTypeNames() { return objectTypeNames; } /** *

* A map in which each key is an event type from an external application such as Segment or Shopify, and each value * is an ObjectTypeName (template) used to ingest the event. It supports the following event types: * SegmentIdentify, ShopifyCreateCustomers, ShopifyUpdateCustomers, * ShopifyCreateDraftOrders, ShopifyUpdateDraftOrders, ShopifyCreateOrders, * and ShopifyUpdatedOrders. *

* * @param objectTypeNames * A map in which each key is an event type from an external application such as Segment or Shopify, and each * value is an ObjectTypeName (template) used to ingest the event. It supports the following * event types: SegmentIdentify, ShopifyCreateCustomers, * ShopifyUpdateCustomers, ShopifyCreateDraftOrders, * ShopifyUpdateDraftOrders, ShopifyCreateOrders, and * ShopifyUpdatedOrders. */ public void setObjectTypeNames(java.util.Map objectTypeNames) { this.objectTypeNames = objectTypeNames; } /** *

* A map in which each key is an event type from an external application such as Segment or Shopify, and each value * is an ObjectTypeName (template) used to ingest the event. It supports the following event types: * SegmentIdentify, ShopifyCreateCustomers, ShopifyUpdateCustomers, * ShopifyCreateDraftOrders, ShopifyUpdateDraftOrders, ShopifyCreateOrders, * and ShopifyUpdatedOrders. *

* * @param objectTypeNames * A map in which each key is an event type from an external application such as Segment or Shopify, and each * value is an ObjectTypeName (template) used to ingest the event. It supports the following * event types: SegmentIdentify, ShopifyCreateCustomers, * ShopifyUpdateCustomers, ShopifyCreateDraftOrders, * ShopifyUpdateDraftOrders, ShopifyCreateOrders, and * ShopifyUpdatedOrders. * @return Returns a reference to this object so that method calls can be chained together. */ public PutIntegrationRequest withObjectTypeNames(java.util.Map objectTypeNames) { setObjectTypeNames(objectTypeNames); return this; } /** * Add a single ObjectTypeNames entry * * @see PutIntegrationRequest#withObjectTypeNames * @returns a reference to this object so that method calls can be chained together. */ public PutIntegrationRequest addObjectTypeNamesEntry(String key, String value) { if (null == this.objectTypeNames) { this.objectTypeNames = new java.util.HashMap(); } if (this.objectTypeNames.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.objectTypeNames.put(key, value); return this; } /** * Removes all the entries added into ObjectTypeNames. * * @return Returns a reference to this object so that method calls can be chained together. */ public PutIntegrationRequest clearObjectTypeNamesEntries() { this.objectTypeNames = null; 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 (getDomainName() != null) sb.append("DomainName: ").append(getDomainName()).append(","); if (getUri() != null) sb.append("Uri: ").append(getUri()).append(","); if (getObjectTypeName() != null) sb.append("ObjectTypeName: ").append(getObjectTypeName()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getFlowDefinition() != null) sb.append("FlowDefinition: ").append("***Sensitive Data Redacted***").append(","); if (getObjectTypeNames() != null) sb.append("ObjectTypeNames: ").append(getObjectTypeNames()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PutIntegrationRequest == false) return false; PutIntegrationRequest other = (PutIntegrationRequest) obj; if (other.getDomainName() == null ^ this.getDomainName() == null) return false; if (other.getDomainName() != null && other.getDomainName().equals(this.getDomainName()) == false) return false; if (other.getUri() == null ^ this.getUri() == null) return false; if (other.getUri() != null && other.getUri().equals(this.getUri()) == false) return false; if (other.getObjectTypeName() == null ^ this.getObjectTypeName() == null) return false; if (other.getObjectTypeName() != null && other.getObjectTypeName().equals(this.getObjectTypeName()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getFlowDefinition() == null ^ this.getFlowDefinition() == null) return false; if (other.getFlowDefinition() != null && other.getFlowDefinition().equals(this.getFlowDefinition()) == false) return false; if (other.getObjectTypeNames() == null ^ this.getObjectTypeNames() == null) return false; if (other.getObjectTypeNames() != null && other.getObjectTypeNames().equals(this.getObjectTypeNames()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDomainName() == null) ? 0 : getDomainName().hashCode()); hashCode = prime * hashCode + ((getUri() == null) ? 0 : getUri().hashCode()); hashCode = prime * hashCode + ((getObjectTypeName() == null) ? 0 : getObjectTypeName().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getFlowDefinition() == null) ? 0 : getFlowDefinition().hashCode()); hashCode = prime * hashCode + ((getObjectTypeNames() == null) ? 0 : getObjectTypeNames().hashCode()); return hashCode; } @Override public PutIntegrationRequest clone() { return (PutIntegrationRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy