/*
* 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 account-2021-02-01.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.Account.Model
{
///
/// Container for the parameters to the PutAlternateContact operation.
/// Modifies the specified alternate contact attached to an Amazon Web Services account.
///
///
///
/// For complete details about how to use the alternate contact operations, see Access
/// or updating the alternate contacts.
///
///
///
/// Before you can update the alternate contact information for an Amazon Web Services
/// account that is managed by Organizations, you must first enable integration between
/// Amazon Web Services Account Management and Organizations. For more information, see
/// Enabling
/// trusted access for Amazon Web Services Account Management.
///
///
///
public partial class PutAlternateContactRequest : AmazonAccountRequest
{
private string _accountId;
private AlternateContactType _alternateContactType;
private string _emailAddress;
private string _name;
private string _phoneNumber;
private string _title;
///
/// Gets and sets the property AccountId.
///
/// Specifies the 12 digit account ID number of the Amazon Web Services account that you
/// want to access or modify with this operation.
///
///
///
/// If you do not specify this parameter, it defaults to the Amazon Web Services account
/// of the identity used to call the operation.
///
///
///
/// To use this parameter, the caller must be an identity in the organization's
/// management account or a delegated administrator account, and the specified account
/// ID must be a member account in the same organization. The organization must have all
/// features enabled, and the organization must have trusted
/// access enabled for the Account Management service, and optionally a delegated
/// admin account assigned.
///
///
///
/// The management account can't specify its own AccountId
; it must call
/// the operation in standalone context by not including the AccountId
parameter.
///
///
///
/// To call this operation on an account that is not a member of an organization, then
/// don't specify this parameter, and call the operation using an identity belonging to
/// the account whose contacts you wish to retrieve or modify.
///
///
public string AccountId
{
get { return this._accountId; }
set { this._accountId = value; }
}
// Check to see if AccountId property is set
internal bool IsSetAccountId()
{
return this._accountId != null;
}
///
/// Gets and sets the property AlternateContactType.
///
/// Specifies which alternate contact you want to create or update.
///
///
[AWSProperty(Required=true)]
public AlternateContactType AlternateContactType
{
get { return this._alternateContactType; }
set { this._alternateContactType = value; }
}
// Check to see if AlternateContactType property is set
internal bool IsSetAlternateContactType()
{
return this._alternateContactType != null;
}
///
/// Gets and sets the property EmailAddress.
///
/// Specifies an email address for the alternate contact.
///
///
[AWSProperty(Required=true, Sensitive=true, Min=1, Max=254)]
public string EmailAddress
{
get { return this._emailAddress; }
set { this._emailAddress = value; }
}
// Check to see if EmailAddress property is set
internal bool IsSetEmailAddress()
{
return this._emailAddress != null;
}
///
/// Gets and sets the property Name.
///
/// Specifies a name for the alternate contact.
///
///
[AWSProperty(Required=true, Sensitive=true, Min=1, Max=64)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property PhoneNumber.
///
/// Specifies a phone number for the alternate contact.
///
///
[AWSProperty(Required=true, Sensitive=true, Min=1, Max=25)]
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 Title.
///
/// Specifies a title for the alternate contact.
///
///
[AWSProperty(Required=true, Sensitive=true, Min=1, Max=50)]
public string Title
{
get { return this._title; }
set { this._title = value; }
}
// Check to see if Title property is set
internal bool IsSetTitle()
{
return this._title != null;
}
}
}