/* * Copyright 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. */ /* * Do not modify this file. This file is generated from the customer-profiles-2020-08-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CustomerProfiles.Model { /// /// Container for the parameters to the AddProfileKey operation. /// Associates a new key value with a specific profile, such as a Contact Record ContactId. /// /// /// /// A profile object can have a single unique key and any number of additional keys that /// can be used to identify the profile that it belongs to. /// /// public partial class AddProfileKeyRequest : AmazonCustomerProfilesRequest { private string _domainName; private string _keyName; private string _profileId; private List _values = new List(); /// /// Gets and sets the property DomainName. /// /// The unique name of the domain. /// /// [AWSProperty(Required=true, Min=1, Max=64)] public string DomainName { get { return this._domainName; } set { this._domainName = value; } } // Check to see if DomainName property is set internal bool IsSetDomainName() { return this._domainName != null; } /// /// Gets and sets the property KeyName. /// /// A searchable identifier of a customer profile. The predefined keys you can use include: /// _account, _profileId, _assetId, _caseId, _orderId, _fullName, _phone, _email, _ctrContactId, /// _marketoLeadId, _salesforceAccountId, _salesforceContactId, _salesforceAssetId, _zendeskUserId, /// _zendeskExternalId, _zendeskTicketId, _serviceNowSystemId, _serviceNowIncidentId, /// _segmentUserId, _shopifyCustomerId, _shopifyOrderId. /// /// [AWSProperty(Required=true, Min=1, Max=64)] public string KeyName { get { return this._keyName; } set { this._keyName = value; } } // Check to see if KeyName property is set internal bool IsSetKeyName() { return this._keyName != null; } /// /// Gets and sets the property ProfileId. /// /// The unique identifier of a customer profile. /// /// [AWSProperty(Required=true)] public string ProfileId { get { return this._profileId; } set { this._profileId = value; } } // Check to see if ProfileId property is set internal bool IsSetProfileId() { return this._profileId != null; } /// /// Gets and sets the property Values. /// /// A list of key values. /// /// [AWSProperty(Required=true)] public List Values { get { return this._values; } set { this._values = value; } } // Check to see if Values property is set internal bool IsSetValues() { return this._values != null && this._values.Count > 0; } } }