/* * 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 alexaforbusiness-2017-11-09.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.AlexaForBusiness.Model { /// /// Container for the parameters to the CreateContact operation. /// Creates a contact with the specified details. /// public partial class CreateContactRequest : AmazonAlexaForBusinessRequest { private string _clientRequestToken; private string _displayName; private string _firstName; private string _lastName; private string _phoneNumber; private List _phoneNumbers = new List(); private List _sipAddresses = new List(); private List _tags = new List(); /// /// Gets and sets the property ClientRequestToken. /// /// A unique, user-specified identifier for this request that ensures idempotency. /// /// [AWSProperty(Min=10, Max=150)] public string ClientRequestToken { get { return this._clientRequestToken; } set { this._clientRequestToken = value; } } // Check to see if ClientRequestToken property is set internal bool IsSetClientRequestToken() { return this._clientRequestToken != null; } /// /// Gets and sets the property DisplayName. /// /// The name of the contact to display on the console. /// /// [AWSProperty(Min=1, Max=100)] public string DisplayName { get { return this._displayName; } set { this._displayName = value; } } // Check to see if DisplayName property is set internal bool IsSetDisplayName() { return this._displayName != null; } /// /// Gets and sets the property FirstName. /// /// The first name of the contact that is used to call the contact on the device. /// /// [AWSProperty(Required=true, Min=1, Max=100)] public string FirstName { get { return this._firstName; } set { this._firstName = value; } } // Check to see if FirstName property is set internal bool IsSetFirstName() { return this._firstName != null; } /// /// Gets and sets the property LastName. /// /// The last name of the contact that is used to call the contact on the device. /// /// [AWSProperty(Min=1, Max=100)] public string LastName { get { return this._lastName; } set { this._lastName = value; } } // Check to see if LastName property is set internal bool IsSetLastName() { return this._lastName != null; } /// /// Gets and sets the property PhoneNumber. /// /// The phone number of the contact in E.164 format. The phone number type defaults to /// WORK. You can specify PhoneNumber or PhoneNumbers. We recommend that you use PhoneNumbers, /// which lets you specify the phone number type and multiple numbers. /// /// [AWSProperty(Sensitive=true, Min=0, Max=50)] public string PhoneNumber { get { return this._phoneNumber; } set { this._phoneNumber = value; } } // Check to see if PhoneNumber property is set internal bool IsSetPhoneNumber() { return this._phoneNumber != null; } /// /// Gets and sets the property PhoneNumbers. /// /// The list of phone numbers for the contact. /// /// [AWSProperty(Min=0, Max=3)] public List PhoneNumbers { get { return this._phoneNumbers; } set { this._phoneNumbers = value; } } // Check to see if PhoneNumbers property is set internal bool IsSetPhoneNumbers() { return this._phoneNumbers != null && this._phoneNumbers.Count > 0; } /// /// Gets and sets the property SipAddresses. /// /// The list of SIP addresses for the contact. /// /// [AWSProperty(Min=0, Max=1)] public List SipAddresses { get { return this._sipAddresses; } set { this._sipAddresses = value; } } // Check to see if SipAddresses property is set internal bool IsSetSipAddresses() { return this._sipAddresses != null && this._sipAddresses.Count > 0; } /// /// Gets and sets the property Tags. /// /// The tags to be added to the specified resource. Do not provide system tags. /// /// public List Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }