/*******************************************************************************
* Copyright 2012-2019 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.
* *****************************************************************************
*
* AWS Tools for Windows (TM) PowerShell (TM)
*
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Management.Automation;
using System.Text;
using Amazon.PowerShell.Common;
using Amazon.Runtime;
using Amazon.Route53Domains;
using Amazon.Route53Domains.Model;
namespace Amazon.PowerShell.Cmdlets.R53D
{
///
/// Transfers a domain from another registrar to Amazon Route 53.
///
///
///
/// For more information about transferring domains, see the following topics:
///
/// If the registrar for your domain is also the DNS service provider for the domain,
/// we highly recommend that you transfer your DNS service to Route 53 or to another DNS
/// service provider before you transfer your registration. Some registrars provide free
/// DNS service when you purchase a domain registration. When you transfer the registration,
/// the previous registrar will not renew your domain registration and could end your
/// DNS service at any time.
///
/// If the registrar for your domain is also the DNS service provider for the domain and
/// you don't transfer DNS service to another provider, your website, email, and the web
/// applications associated with the domain might become unavailable.
///
/// If the transfer is successful, this method returns an operation ID that you can use
/// to track the progress and completion of the action. If the transfer doesn't complete
/// successfully, the domain registrant will be notified by email.
///
///
[Cmdlet("Invoke", "R53DDomainTransfer", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)]
[OutputType("System.String")]
[AWSCmdlet("Calls the Amazon Route 53 Domains TransferDomain API operation.", Operation = new[] {"TransferDomain"}, SelectReturnType = typeof(Amazon.Route53Domains.Model.TransferDomainResponse))]
[AWSCmdletOutput("System.String or Amazon.Route53Domains.Model.TransferDomainResponse",
"This cmdlet returns a System.String object.",
"The service call response (type Amazon.Route53Domains.Model.TransferDomainResponse) can also be referenced from properties attached to the cmdlet entry in the $AWSHistory stack."
)]
public partial class InvokeR53DDomainTransferCmdlet : AmazonRoute53DomainsClientCmdlet, IExecutor
{
protected override bool IsSensitiveRequest { get; set; } = true;
#region Parameter AdminContact_AddressLine1
///
///
/// First line of the contact's address.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String AdminContact_AddressLine1 { get; set; }
#endregion
#region Parameter RegistrantContact_AddressLine1
///
///
/// First line of the contact's address.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String RegistrantContact_AddressLine1 { get; set; }
#endregion
#region Parameter TechContact_AddressLine1
///
///
/// First line of the contact's address.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String TechContact_AddressLine1 { get; set; }
#endregion
#region Parameter AdminContact_AddressLine2
///
///
/// Second line of contact's address, if any.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String AdminContact_AddressLine2 { get; set; }
#endregion
#region Parameter RegistrantContact_AddressLine2
///
///
/// Second line of contact's address, if any.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String RegistrantContact_AddressLine2 { get; set; }
#endregion
#region Parameter TechContact_AddressLine2
///
///
/// Second line of contact's address, if any.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String TechContact_AddressLine2 { get; set; }
#endregion
#region Parameter AuthCode
///
///
/// The authorization code for the domain. You get this value from the current registrar.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String AuthCode { get; set; }
#endregion
#region Parameter AutoRenew
///
///
/// Indicates whether the domain will be automatically renewed (true) or not (false).
/// Auto renewal only takes effect after the account is charged.Default: true
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.Boolean? AutoRenew { get; set; }
#endregion
#region Parameter AdminContact_City
///
///
/// The city of the contact's address.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String AdminContact_City { get; set; }
#endregion
#region Parameter RegistrantContact_City
///
///
/// The city of the contact's address.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String RegistrantContact_City { get; set; }
#endregion
#region Parameter TechContact_City
///
///
/// The city of the contact's address.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String TechContact_City { get; set; }
#endregion
#region Parameter AdminContact_ContactType
///
///
/// Indicates whether the contact is a person, company, association, or public organization.
/// Note the following:- If you specify a value other than
PERSON
, you must also specify a value
/// for OrganizationName
. - For some TLDs, the privacy protection available depends on the value that you specify
/// for
Contact Type
. For the privacy protection settings for your TLD, see
/// Domains
/// that You Can Register with Amazon Route 53 in the Amazon Route 53 Developer
/// Guide - For .es domains, the value of
ContactType
must be PERSON
/// for all three contacts.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
[AWSConstantClassSource("Amazon.Route53Domains.ContactType")]
public Amazon.Route53Domains.ContactType AdminContact_ContactType { get; set; }
#endregion
#region Parameter RegistrantContact_ContactType
///
///
/// Indicates whether the contact is a person, company, association, or public organization.
/// Note the following:- If you specify a value other than
PERSON
, you must also specify a value
/// for OrganizationName
. - For some TLDs, the privacy protection available depends on the value that you specify
/// for
Contact Type
. For the privacy protection settings for your TLD, see
/// Domains
/// that You Can Register with Amazon Route 53 in the Amazon Route 53 Developer
/// Guide - For .es domains, the value of
ContactType
must be PERSON
/// for all three contacts.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
[AWSConstantClassSource("Amazon.Route53Domains.ContactType")]
public Amazon.Route53Domains.ContactType RegistrantContact_ContactType { get; set; }
#endregion
#region Parameter TechContact_ContactType
///
///
/// Indicates whether the contact is a person, company, association, or public organization.
/// Note the following:- If you specify a value other than
PERSON
, you must also specify a value
/// for OrganizationName
. - For some TLDs, the privacy protection available depends on the value that you specify
/// for
Contact Type
. For the privacy protection settings for your TLD, see
/// Domains
/// that You Can Register with Amazon Route 53 in the Amazon Route 53 Developer
/// Guide - For .es domains, the value of
ContactType
must be PERSON
/// for all three contacts.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
[AWSConstantClassSource("Amazon.Route53Domains.ContactType")]
public Amazon.Route53Domains.ContactType TechContact_ContactType { get; set; }
#endregion
#region Parameter AdminContact_CountryCode
///
///
/// Code for the country of the contact's address.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
[AWSConstantClassSource("Amazon.Route53Domains.CountryCode")]
public Amazon.Route53Domains.CountryCode AdminContact_CountryCode { get; set; }
#endregion
#region Parameter RegistrantContact_CountryCode
///
///
/// Code for the country of the contact's address.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
[AWSConstantClassSource("Amazon.Route53Domains.CountryCode")]
public Amazon.Route53Domains.CountryCode RegistrantContact_CountryCode { get; set; }
#endregion
#region Parameter TechContact_CountryCode
///
///
/// Code for the country of the contact's address.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
[AWSConstantClassSource("Amazon.Route53Domains.CountryCode")]
public Amazon.Route53Domains.CountryCode TechContact_CountryCode { get; set; }
#endregion
#region Parameter DomainName
///
///
/// The name of the domain that you want to transfer to Route 53. The top-level domain
/// (TLD), such as .com, must be a TLD that Route 53 supports. For a list of supported
/// TLDs, see Domains
/// that You Can Register with Amazon Route 53 in the Amazon Route 53 Developer
/// Guide.The domain name can contain only the following characters:- Letters a through z. Domain names are not case sensitive.
- Numbers 0 through 9.
- Hyphen (-). You can't specify a hyphen at the beginning or end of a label.
- Period (.) to separate the labels in the name, such as the
.
in example.com
.
///
///
#if !MODULAR
[System.Management.Automation.Parameter(Position = 0, ValueFromPipelineByPropertyName = true, ValueFromPipeline = true)]
#else
[System.Management.Automation.Parameter(Position = 0, ValueFromPipelineByPropertyName = true, ValueFromPipeline = true, Mandatory = true)]
[System.Management.Automation.AllowEmptyString]
[System.Management.Automation.AllowNull]
#endif
[Amazon.PowerShell.Common.AWSRequiredParameter]
public System.String DomainName { get; set; }
#endregion
#region Parameter DurationInYears
///
///
/// The number of years that you want to register the domain for. Domains are registered
/// for a minimum of one year. The maximum period depends on the top-level domain.Default: 1
///
///
#if !MODULAR
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
#else
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)]
[System.Management.Automation.AllowNull]
#endif
[Amazon.PowerShell.Common.AWSRequiredParameter]
public System.Int32? DurationInYears { get; set; }
#endregion
#region Parameter AdminContact_Email
///
///
/// Email address of the contact.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String AdminContact_Email { get; set; }
#endregion
#region Parameter RegistrantContact_Email
///
///
/// Email address of the contact.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String RegistrantContact_Email { get; set; }
#endregion
#region Parameter TechContact_Email
///
///
/// Email address of the contact.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String TechContact_Email { get; set; }
#endregion
#region Parameter AdminContact_ExtraParam
///
///
/// A list of name-value pairs for parameters required by certain top-level domains.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
[Alias("AdminContact_ExtraParams")]
public Amazon.Route53Domains.Model.ExtraParam[] AdminContact_ExtraParam { get; set; }
#endregion
#region Parameter RegistrantContact_ExtraParam
///
///
/// A list of name-value pairs for parameters required by certain top-level domains.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
[Alias("RegistrantContact_ExtraParams")]
public Amazon.Route53Domains.Model.ExtraParam[] RegistrantContact_ExtraParam { get; set; }
#endregion
#region Parameter TechContact_ExtraParam
///
///
/// A list of name-value pairs for parameters required by certain top-level domains.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
[Alias("TechContact_ExtraParams")]
public Amazon.Route53Domains.Model.ExtraParam[] TechContact_ExtraParam { get; set; }
#endregion
#region Parameter AdminContact_Fax
///
///
/// Fax number of the contact.Constraints: Phone number must be specified in the format "+[country dialing code].[number
/// including any area code]". For example, a US phone number might appear as "+1.1234567890"
.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String AdminContact_Fax { get; set; }
#endregion
#region Parameter RegistrantContact_Fax
///
///
/// Fax number of the contact.Constraints: Phone number must be specified in the format "+[country dialing code].[number
/// including any area code]". For example, a US phone number might appear as "+1.1234567890"
.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String RegistrantContact_Fax { get; set; }
#endregion
#region Parameter TechContact_Fax
///
///
/// Fax number of the contact.Constraints: Phone number must be specified in the format "+[country dialing code].[number
/// including any area code]". For example, a US phone number might appear as "+1.1234567890"
.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String TechContact_Fax { get; set; }
#endregion
#region Parameter AdminContact_FirstName
///
///
/// First name of contact.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String AdminContact_FirstName { get; set; }
#endregion
#region Parameter RegistrantContact_FirstName
///
///
/// First name of contact.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String RegistrantContact_FirstName { get; set; }
#endregion
#region Parameter TechContact_FirstName
///
///
/// First name of contact.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String TechContact_FirstName { get; set; }
#endregion
#region Parameter IdnLangCode
///
///
/// Reserved for future use.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String IdnLangCode { get; set; }
#endregion
#region Parameter AdminContact_LastName
///
///
/// Last name of contact.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String AdminContact_LastName { get; set; }
#endregion
#region Parameter RegistrantContact_LastName
///
///
/// Last name of contact.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String RegistrantContact_LastName { get; set; }
#endregion
#region Parameter TechContact_LastName
///
///
/// Last name of contact.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String TechContact_LastName { get; set; }
#endregion
#region Parameter Nameserver
///
///
/// Contains details for the host and glue IP addresses.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
[Alias("Nameservers")]
public Amazon.Route53Domains.Model.Nameserver[] Nameserver { get; set; }
#endregion
#region Parameter AdminContact_OrganizationName
///
///
/// Name of the organization for contact types other than PERSON
.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String AdminContact_OrganizationName { get; set; }
#endregion
#region Parameter RegistrantContact_OrganizationName
///
///
/// Name of the organization for contact types other than PERSON
.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String RegistrantContact_OrganizationName { get; set; }
#endregion
#region Parameter TechContact_OrganizationName
///
///
/// Name of the organization for contact types other than PERSON
.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String TechContact_OrganizationName { get; set; }
#endregion
#region Parameter AdminContact_PhoneNumber
///
///
/// The phone number of the contact.Constraints: Phone number must be specified in the format "+[country dialing code].[number
/// including any area code>]". For example, a US phone number might appear as "+1.1234567890"
.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String AdminContact_PhoneNumber { get; set; }
#endregion
#region Parameter RegistrantContact_PhoneNumber
///
///
/// The phone number of the contact.Constraints: Phone number must be specified in the format "+[country dialing code].[number
/// including any area code>]". For example, a US phone number might appear as "+1.1234567890"
.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String RegistrantContact_PhoneNumber { get; set; }
#endregion
#region Parameter TechContact_PhoneNumber
///
///
/// The phone number of the contact.Constraints: Phone number must be specified in the format "+[country dialing code].[number
/// including any area code>]". For example, a US phone number might appear as "+1.1234567890"
.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String TechContact_PhoneNumber { get; set; }
#endregion
#region Parameter PrivacyProtectAdminContact
///
///
/// Whether you want to conceal contact information from WHOIS queries. If you specify
/// true
, WHOIS ("who is") queries return contact information for the registrar,
/// the phrase "REDACTED FOR PRIVACY", or "On behalf of <domain name> owner.".While some domains may allow different privacy settings per contact, we recommend
/// specifying the same privacy setting for all contacts.Default: true
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.Boolean? PrivacyProtectAdminContact { get; set; }
#endregion
#region Parameter PrivacyProtectRegistrantContact
///
///
/// Whether you want to conceal contact information from WHOIS queries. If you specify
/// true
, WHOIS ("who is") queries return contact information either for
/// Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate,
/// Gandi (for all other TLDs). If you specify false
, WHOIS queries return
/// the information that you entered for the registrant contact (domain owner).You must specify the same privacy setting for the administrative, registrant, and
/// technical contacts.Default: true
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.Boolean? PrivacyProtectRegistrantContact { get; set; }
#endregion
#region Parameter PrivacyProtectTechContact
///
///
/// Whether you want to conceal contact information from WHOIS queries. If you specify
/// true
, WHOIS ("who is") queries return contact information either for
/// Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate,
/// Gandi (for all other TLDs). If you specify false
, WHOIS queries return
/// the information that you entered for the technical contact.You must specify the same privacy setting for the administrative, registrant, and
/// technical contacts.Default: true
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.Boolean? PrivacyProtectTechContact { get; set; }
#endregion
#region Parameter AdminContact_State
///
///
/// The state or province of the contact's city.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String AdminContact_State { get; set; }
#endregion
#region Parameter RegistrantContact_State
///
///
/// The state or province of the contact's city.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String RegistrantContact_State { get; set; }
#endregion
#region Parameter TechContact_State
///
///
/// The state or province of the contact's city.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String TechContact_State { get; set; }
#endregion
#region Parameter AdminContact_ZipCode
///
///
/// The zip or postal code of the contact's address.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String AdminContact_ZipCode { get; set; }
#endregion
#region Parameter RegistrantContact_ZipCode
///
///
/// The zip or postal code of the contact's address.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String RegistrantContact_ZipCode { get; set; }
#endregion
#region Parameter TechContact_ZipCode
///
///
/// The zip or postal code of the contact's address.
///
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String TechContact_ZipCode { get; set; }
#endregion
#region Parameter Select
///
/// Use the -Select parameter to control the cmdlet output. The default value is 'OperationId'.
/// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.Route53Domains.Model.TransferDomainResponse).
/// Specifying the name of a property of type Amazon.Route53Domains.Model.TransferDomainResponse will result in that property being returned.
/// Specifying -Select '^ParameterName' will result in the cmdlet returning the selected cmdlet parameter value.
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public string Select { get; set; } = "OperationId";
#endregion
#region Parameter PassThru
///
/// Changes the cmdlet behavior to return the value passed to the DomainName parameter.
/// The -PassThru parameter is deprecated, use -Select '^DomainName' instead. This parameter will be removed in a future version.
///
[System.Obsolete("The -PassThru parameter is deprecated, use -Select '^DomainName' instead. This parameter will be removed in a future version.")]
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public SwitchParameter PassThru { get; set; }
#endregion
#region Parameter Force
///
/// This parameter overrides confirmation prompts to force
/// the cmdlet to continue its operation. This parameter should always
/// be used with caution.
///
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public SwitchParameter Force { get; set; }
#endregion
protected override void ProcessRecord()
{
this._AWSSignerType = "v4";
base.ProcessRecord();
var resourceIdentifiersText = FormatParameterValuesForConfirmationMsg(nameof(this.DomainName), MyInvocation.BoundParameters);
if (!ConfirmShouldProceed(this.Force.IsPresent, resourceIdentifiersText, "Invoke-R53DDomainTransfer (TransferDomain)"))
{
return;
}
var context = new CmdletContext();
// allow for manipulation of parameters prior to loading into context
PreExecutionContextLoad(context);
#pragma warning disable CS0618, CS0612 //A class member was marked with the Obsolete attribute
if (ParameterWasBound(nameof(this.Select)))
{
context.Select = CreateSelectDelegate(Select) ??
throw new System.ArgumentException("Invalid value for -Select parameter.", nameof(this.Select));
if (this.PassThru.IsPresent)
{
throw new System.ArgumentException("-PassThru cannot be used when -Select is specified.", nameof(this.Select));
}
}
else if (this.PassThru.IsPresent)
{
context.Select = (response, cmdlet) => this.DomainName;
}
#pragma warning restore CS0618, CS0612 //A class member was marked with the Obsolete attribute
context.AdminContact_AddressLine1 = this.AdminContact_AddressLine1;
context.AdminContact_AddressLine2 = this.AdminContact_AddressLine2;
context.AdminContact_City = this.AdminContact_City;
context.AdminContact_ContactType = this.AdminContact_ContactType;
context.AdminContact_CountryCode = this.AdminContact_CountryCode;
context.AdminContact_Email = this.AdminContact_Email;
if (this.AdminContact_ExtraParam != null)
{
context.AdminContact_ExtraParam = new List(this.AdminContact_ExtraParam);
}
context.AdminContact_Fax = this.AdminContact_Fax;
context.AdminContact_FirstName = this.AdminContact_FirstName;
context.AdminContact_LastName = this.AdminContact_LastName;
context.AdminContact_OrganizationName = this.AdminContact_OrganizationName;
context.AdminContact_PhoneNumber = this.AdminContact_PhoneNumber;
context.AdminContact_State = this.AdminContact_State;
context.AdminContact_ZipCode = this.AdminContact_ZipCode;
context.AuthCode = this.AuthCode;
context.AutoRenew = this.AutoRenew;
context.DomainName = this.DomainName;
#if MODULAR
if (this.DomainName == null && ParameterWasBound(nameof(this.DomainName)))
{
WriteWarning("You are passing $null as a value for parameter DomainName which is marked as required. In case you believe this parameter was incorrectly marked as required, report this by opening an issue at https://github.com/aws/aws-tools-for-powershell/issues.");
}
#endif
context.DurationInYears = this.DurationInYears;
#if MODULAR
if (this.DurationInYears == null && ParameterWasBound(nameof(this.DurationInYears)))
{
WriteWarning("You are passing $null as a value for parameter DurationInYears which is marked as required. In case you believe this parameter was incorrectly marked as required, report this by opening an issue at https://github.com/aws/aws-tools-for-powershell/issues.");
}
#endif
context.IdnLangCode = this.IdnLangCode;
if (this.Nameserver != null)
{
context.Nameserver = new List(this.Nameserver);
}
context.PrivacyProtectAdminContact = this.PrivacyProtectAdminContact;
context.PrivacyProtectRegistrantContact = this.PrivacyProtectRegistrantContact;
context.PrivacyProtectTechContact = this.PrivacyProtectTechContact;
context.RegistrantContact_AddressLine1 = this.RegistrantContact_AddressLine1;
context.RegistrantContact_AddressLine2 = this.RegistrantContact_AddressLine2;
context.RegistrantContact_City = this.RegistrantContact_City;
context.RegistrantContact_ContactType = this.RegistrantContact_ContactType;
context.RegistrantContact_CountryCode = this.RegistrantContact_CountryCode;
context.RegistrantContact_Email = this.RegistrantContact_Email;
if (this.RegistrantContact_ExtraParam != null)
{
context.RegistrantContact_ExtraParam = new List(this.RegistrantContact_ExtraParam);
}
context.RegistrantContact_Fax = this.RegistrantContact_Fax;
context.RegistrantContact_FirstName = this.RegistrantContact_FirstName;
context.RegistrantContact_LastName = this.RegistrantContact_LastName;
context.RegistrantContact_OrganizationName = this.RegistrantContact_OrganizationName;
context.RegistrantContact_PhoneNumber = this.RegistrantContact_PhoneNumber;
context.RegistrantContact_State = this.RegistrantContact_State;
context.RegistrantContact_ZipCode = this.RegistrantContact_ZipCode;
context.TechContact_AddressLine1 = this.TechContact_AddressLine1;
context.TechContact_AddressLine2 = this.TechContact_AddressLine2;
context.TechContact_City = this.TechContact_City;
context.TechContact_ContactType = this.TechContact_ContactType;
context.TechContact_CountryCode = this.TechContact_CountryCode;
context.TechContact_Email = this.TechContact_Email;
if (this.TechContact_ExtraParam != null)
{
context.TechContact_ExtraParam = new List(this.TechContact_ExtraParam);
}
context.TechContact_Fax = this.TechContact_Fax;
context.TechContact_FirstName = this.TechContact_FirstName;
context.TechContact_LastName = this.TechContact_LastName;
context.TechContact_OrganizationName = this.TechContact_OrganizationName;
context.TechContact_PhoneNumber = this.TechContact_PhoneNumber;
context.TechContact_State = this.TechContact_State;
context.TechContact_ZipCode = this.TechContact_ZipCode;
// allow further manipulation of loaded context prior to processing
PostExecutionContextLoad(context);
var output = Execute(context) as CmdletOutput;
ProcessOutput(output);
}
#region IExecutor Members
public object Execute(ExecutorContext context)
{
var cmdletContext = context as CmdletContext;
// create request
var request = new Amazon.Route53Domains.Model.TransferDomainRequest();
// populate AdminContact
var requestAdminContactIsNull = true;
request.AdminContact = new Amazon.Route53Domains.Model.ContactDetail();
System.String requestAdminContact_adminContact_AddressLine1 = null;
if (cmdletContext.AdminContact_AddressLine1 != null)
{
requestAdminContact_adminContact_AddressLine1 = cmdletContext.AdminContact_AddressLine1;
}
if (requestAdminContact_adminContact_AddressLine1 != null)
{
request.AdminContact.AddressLine1 = requestAdminContact_adminContact_AddressLine1;
requestAdminContactIsNull = false;
}
System.String requestAdminContact_adminContact_AddressLine2 = null;
if (cmdletContext.AdminContact_AddressLine2 != null)
{
requestAdminContact_adminContact_AddressLine2 = cmdletContext.AdminContact_AddressLine2;
}
if (requestAdminContact_adminContact_AddressLine2 != null)
{
request.AdminContact.AddressLine2 = requestAdminContact_adminContact_AddressLine2;
requestAdminContactIsNull = false;
}
System.String requestAdminContact_adminContact_City = null;
if (cmdletContext.AdminContact_City != null)
{
requestAdminContact_adminContact_City = cmdletContext.AdminContact_City;
}
if (requestAdminContact_adminContact_City != null)
{
request.AdminContact.City = requestAdminContact_adminContact_City;
requestAdminContactIsNull = false;
}
Amazon.Route53Domains.ContactType requestAdminContact_adminContact_ContactType = null;
if (cmdletContext.AdminContact_ContactType != null)
{
requestAdminContact_adminContact_ContactType = cmdletContext.AdminContact_ContactType;
}
if (requestAdminContact_adminContact_ContactType != null)
{
request.AdminContact.ContactType = requestAdminContact_adminContact_ContactType;
requestAdminContactIsNull = false;
}
Amazon.Route53Domains.CountryCode requestAdminContact_adminContact_CountryCode = null;
if (cmdletContext.AdminContact_CountryCode != null)
{
requestAdminContact_adminContact_CountryCode = cmdletContext.AdminContact_CountryCode;
}
if (requestAdminContact_adminContact_CountryCode != null)
{
request.AdminContact.CountryCode = requestAdminContact_adminContact_CountryCode;
requestAdminContactIsNull = false;
}
System.String requestAdminContact_adminContact_Email = null;
if (cmdletContext.AdminContact_Email != null)
{
requestAdminContact_adminContact_Email = cmdletContext.AdminContact_Email;
}
if (requestAdminContact_adminContact_Email != null)
{
request.AdminContact.Email = requestAdminContact_adminContact_Email;
requestAdminContactIsNull = false;
}
List requestAdminContact_adminContact_ExtraParam = null;
if (cmdletContext.AdminContact_ExtraParam != null)
{
requestAdminContact_adminContact_ExtraParam = cmdletContext.AdminContact_ExtraParam;
}
if (requestAdminContact_adminContact_ExtraParam != null)
{
request.AdminContact.ExtraParams = requestAdminContact_adminContact_ExtraParam;
requestAdminContactIsNull = false;
}
System.String requestAdminContact_adminContact_Fax = null;
if (cmdletContext.AdminContact_Fax != null)
{
requestAdminContact_adminContact_Fax = cmdletContext.AdminContact_Fax;
}
if (requestAdminContact_adminContact_Fax != null)
{
request.AdminContact.Fax = requestAdminContact_adminContact_Fax;
requestAdminContactIsNull = false;
}
System.String requestAdminContact_adminContact_FirstName = null;
if (cmdletContext.AdminContact_FirstName != null)
{
requestAdminContact_adminContact_FirstName = cmdletContext.AdminContact_FirstName;
}
if (requestAdminContact_adminContact_FirstName != null)
{
request.AdminContact.FirstName = requestAdminContact_adminContact_FirstName;
requestAdminContactIsNull = false;
}
System.String requestAdminContact_adminContact_LastName = null;
if (cmdletContext.AdminContact_LastName != null)
{
requestAdminContact_adminContact_LastName = cmdletContext.AdminContact_LastName;
}
if (requestAdminContact_adminContact_LastName != null)
{
request.AdminContact.LastName = requestAdminContact_adminContact_LastName;
requestAdminContactIsNull = false;
}
System.String requestAdminContact_adminContact_OrganizationName = null;
if (cmdletContext.AdminContact_OrganizationName != null)
{
requestAdminContact_adminContact_OrganizationName = cmdletContext.AdminContact_OrganizationName;
}
if (requestAdminContact_adminContact_OrganizationName != null)
{
request.AdminContact.OrganizationName = requestAdminContact_adminContact_OrganizationName;
requestAdminContactIsNull = false;
}
System.String requestAdminContact_adminContact_PhoneNumber = null;
if (cmdletContext.AdminContact_PhoneNumber != null)
{
requestAdminContact_adminContact_PhoneNumber = cmdletContext.AdminContact_PhoneNumber;
}
if (requestAdminContact_adminContact_PhoneNumber != null)
{
request.AdminContact.PhoneNumber = requestAdminContact_adminContact_PhoneNumber;
requestAdminContactIsNull = false;
}
System.String requestAdminContact_adminContact_State = null;
if (cmdletContext.AdminContact_State != null)
{
requestAdminContact_adminContact_State = cmdletContext.AdminContact_State;
}
if (requestAdminContact_adminContact_State != null)
{
request.AdminContact.State = requestAdminContact_adminContact_State;
requestAdminContactIsNull = false;
}
System.String requestAdminContact_adminContact_ZipCode = null;
if (cmdletContext.AdminContact_ZipCode != null)
{
requestAdminContact_adminContact_ZipCode = cmdletContext.AdminContact_ZipCode;
}
if (requestAdminContact_adminContact_ZipCode != null)
{
request.AdminContact.ZipCode = requestAdminContact_adminContact_ZipCode;
requestAdminContactIsNull = false;
}
// determine if request.AdminContact should be set to null
if (requestAdminContactIsNull)
{
request.AdminContact = null;
}
if (cmdletContext.AuthCode != null)
{
request.AuthCode = cmdletContext.AuthCode;
}
if (cmdletContext.AutoRenew != null)
{
request.AutoRenew = cmdletContext.AutoRenew.Value;
}
if (cmdletContext.DomainName != null)
{
request.DomainName = cmdletContext.DomainName;
}
if (cmdletContext.DurationInYears != null)
{
request.DurationInYears = cmdletContext.DurationInYears.Value;
}
if (cmdletContext.IdnLangCode != null)
{
request.IdnLangCode = cmdletContext.IdnLangCode;
}
if (cmdletContext.Nameserver != null)
{
request.Nameservers = cmdletContext.Nameserver;
}
if (cmdletContext.PrivacyProtectAdminContact != null)
{
request.PrivacyProtectAdminContact = cmdletContext.PrivacyProtectAdminContact.Value;
}
if (cmdletContext.PrivacyProtectRegistrantContact != null)
{
request.PrivacyProtectRegistrantContact = cmdletContext.PrivacyProtectRegistrantContact.Value;
}
if (cmdletContext.PrivacyProtectTechContact != null)
{
request.PrivacyProtectTechContact = cmdletContext.PrivacyProtectTechContact.Value;
}
// populate RegistrantContact
var requestRegistrantContactIsNull = true;
request.RegistrantContact = new Amazon.Route53Domains.Model.ContactDetail();
System.String requestRegistrantContact_registrantContact_AddressLine1 = null;
if (cmdletContext.RegistrantContact_AddressLine1 != null)
{
requestRegistrantContact_registrantContact_AddressLine1 = cmdletContext.RegistrantContact_AddressLine1;
}
if (requestRegistrantContact_registrantContact_AddressLine1 != null)
{
request.RegistrantContact.AddressLine1 = requestRegistrantContact_registrantContact_AddressLine1;
requestRegistrantContactIsNull = false;
}
System.String requestRegistrantContact_registrantContact_AddressLine2 = null;
if (cmdletContext.RegistrantContact_AddressLine2 != null)
{
requestRegistrantContact_registrantContact_AddressLine2 = cmdletContext.RegistrantContact_AddressLine2;
}
if (requestRegistrantContact_registrantContact_AddressLine2 != null)
{
request.RegistrantContact.AddressLine2 = requestRegistrantContact_registrantContact_AddressLine2;
requestRegistrantContactIsNull = false;
}
System.String requestRegistrantContact_registrantContact_City = null;
if (cmdletContext.RegistrantContact_City != null)
{
requestRegistrantContact_registrantContact_City = cmdletContext.RegistrantContact_City;
}
if (requestRegistrantContact_registrantContact_City != null)
{
request.RegistrantContact.City = requestRegistrantContact_registrantContact_City;
requestRegistrantContactIsNull = false;
}
Amazon.Route53Domains.ContactType requestRegistrantContact_registrantContact_ContactType = null;
if (cmdletContext.RegistrantContact_ContactType != null)
{
requestRegistrantContact_registrantContact_ContactType = cmdletContext.RegistrantContact_ContactType;
}
if (requestRegistrantContact_registrantContact_ContactType != null)
{
request.RegistrantContact.ContactType = requestRegistrantContact_registrantContact_ContactType;
requestRegistrantContactIsNull = false;
}
Amazon.Route53Domains.CountryCode requestRegistrantContact_registrantContact_CountryCode = null;
if (cmdletContext.RegistrantContact_CountryCode != null)
{
requestRegistrantContact_registrantContact_CountryCode = cmdletContext.RegistrantContact_CountryCode;
}
if (requestRegistrantContact_registrantContact_CountryCode != null)
{
request.RegistrantContact.CountryCode = requestRegistrantContact_registrantContact_CountryCode;
requestRegistrantContactIsNull = false;
}
System.String requestRegistrantContact_registrantContact_Email = null;
if (cmdletContext.RegistrantContact_Email != null)
{
requestRegistrantContact_registrantContact_Email = cmdletContext.RegistrantContact_Email;
}
if (requestRegistrantContact_registrantContact_Email != null)
{
request.RegistrantContact.Email = requestRegistrantContact_registrantContact_Email;
requestRegistrantContactIsNull = false;
}
List requestRegistrantContact_registrantContact_ExtraParam = null;
if (cmdletContext.RegistrantContact_ExtraParam != null)
{
requestRegistrantContact_registrantContact_ExtraParam = cmdletContext.RegistrantContact_ExtraParam;
}
if (requestRegistrantContact_registrantContact_ExtraParam != null)
{
request.RegistrantContact.ExtraParams = requestRegistrantContact_registrantContact_ExtraParam;
requestRegistrantContactIsNull = false;
}
System.String requestRegistrantContact_registrantContact_Fax = null;
if (cmdletContext.RegistrantContact_Fax != null)
{
requestRegistrantContact_registrantContact_Fax = cmdletContext.RegistrantContact_Fax;
}
if (requestRegistrantContact_registrantContact_Fax != null)
{
request.RegistrantContact.Fax = requestRegistrantContact_registrantContact_Fax;
requestRegistrantContactIsNull = false;
}
System.String requestRegistrantContact_registrantContact_FirstName = null;
if (cmdletContext.RegistrantContact_FirstName != null)
{
requestRegistrantContact_registrantContact_FirstName = cmdletContext.RegistrantContact_FirstName;
}
if (requestRegistrantContact_registrantContact_FirstName != null)
{
request.RegistrantContact.FirstName = requestRegistrantContact_registrantContact_FirstName;
requestRegistrantContactIsNull = false;
}
System.String requestRegistrantContact_registrantContact_LastName = null;
if (cmdletContext.RegistrantContact_LastName != null)
{
requestRegistrantContact_registrantContact_LastName = cmdletContext.RegistrantContact_LastName;
}
if (requestRegistrantContact_registrantContact_LastName != null)
{
request.RegistrantContact.LastName = requestRegistrantContact_registrantContact_LastName;
requestRegistrantContactIsNull = false;
}
System.String requestRegistrantContact_registrantContact_OrganizationName = null;
if (cmdletContext.RegistrantContact_OrganizationName != null)
{
requestRegistrantContact_registrantContact_OrganizationName = cmdletContext.RegistrantContact_OrganizationName;
}
if (requestRegistrantContact_registrantContact_OrganizationName != null)
{
request.RegistrantContact.OrganizationName = requestRegistrantContact_registrantContact_OrganizationName;
requestRegistrantContactIsNull = false;
}
System.String requestRegistrantContact_registrantContact_PhoneNumber = null;
if (cmdletContext.RegistrantContact_PhoneNumber != null)
{
requestRegistrantContact_registrantContact_PhoneNumber = cmdletContext.RegistrantContact_PhoneNumber;
}
if (requestRegistrantContact_registrantContact_PhoneNumber != null)
{
request.RegistrantContact.PhoneNumber = requestRegistrantContact_registrantContact_PhoneNumber;
requestRegistrantContactIsNull = false;
}
System.String requestRegistrantContact_registrantContact_State = null;
if (cmdletContext.RegistrantContact_State != null)
{
requestRegistrantContact_registrantContact_State = cmdletContext.RegistrantContact_State;
}
if (requestRegistrantContact_registrantContact_State != null)
{
request.RegistrantContact.State = requestRegistrantContact_registrantContact_State;
requestRegistrantContactIsNull = false;
}
System.String requestRegistrantContact_registrantContact_ZipCode = null;
if (cmdletContext.RegistrantContact_ZipCode != null)
{
requestRegistrantContact_registrantContact_ZipCode = cmdletContext.RegistrantContact_ZipCode;
}
if (requestRegistrantContact_registrantContact_ZipCode != null)
{
request.RegistrantContact.ZipCode = requestRegistrantContact_registrantContact_ZipCode;
requestRegistrantContactIsNull = false;
}
// determine if request.RegistrantContact should be set to null
if (requestRegistrantContactIsNull)
{
request.RegistrantContact = null;
}
// populate TechContact
var requestTechContactIsNull = true;
request.TechContact = new Amazon.Route53Domains.Model.ContactDetail();
System.String requestTechContact_techContact_AddressLine1 = null;
if (cmdletContext.TechContact_AddressLine1 != null)
{
requestTechContact_techContact_AddressLine1 = cmdletContext.TechContact_AddressLine1;
}
if (requestTechContact_techContact_AddressLine1 != null)
{
request.TechContact.AddressLine1 = requestTechContact_techContact_AddressLine1;
requestTechContactIsNull = false;
}
System.String requestTechContact_techContact_AddressLine2 = null;
if (cmdletContext.TechContact_AddressLine2 != null)
{
requestTechContact_techContact_AddressLine2 = cmdletContext.TechContact_AddressLine2;
}
if (requestTechContact_techContact_AddressLine2 != null)
{
request.TechContact.AddressLine2 = requestTechContact_techContact_AddressLine2;
requestTechContactIsNull = false;
}
System.String requestTechContact_techContact_City = null;
if (cmdletContext.TechContact_City != null)
{
requestTechContact_techContact_City = cmdletContext.TechContact_City;
}
if (requestTechContact_techContact_City != null)
{
request.TechContact.City = requestTechContact_techContact_City;
requestTechContactIsNull = false;
}
Amazon.Route53Domains.ContactType requestTechContact_techContact_ContactType = null;
if (cmdletContext.TechContact_ContactType != null)
{
requestTechContact_techContact_ContactType = cmdletContext.TechContact_ContactType;
}
if (requestTechContact_techContact_ContactType != null)
{
request.TechContact.ContactType = requestTechContact_techContact_ContactType;
requestTechContactIsNull = false;
}
Amazon.Route53Domains.CountryCode requestTechContact_techContact_CountryCode = null;
if (cmdletContext.TechContact_CountryCode != null)
{
requestTechContact_techContact_CountryCode = cmdletContext.TechContact_CountryCode;
}
if (requestTechContact_techContact_CountryCode != null)
{
request.TechContact.CountryCode = requestTechContact_techContact_CountryCode;
requestTechContactIsNull = false;
}
System.String requestTechContact_techContact_Email = null;
if (cmdletContext.TechContact_Email != null)
{
requestTechContact_techContact_Email = cmdletContext.TechContact_Email;
}
if (requestTechContact_techContact_Email != null)
{
request.TechContact.Email = requestTechContact_techContact_Email;
requestTechContactIsNull = false;
}
List requestTechContact_techContact_ExtraParam = null;
if (cmdletContext.TechContact_ExtraParam != null)
{
requestTechContact_techContact_ExtraParam = cmdletContext.TechContact_ExtraParam;
}
if (requestTechContact_techContact_ExtraParam != null)
{
request.TechContact.ExtraParams = requestTechContact_techContact_ExtraParam;
requestTechContactIsNull = false;
}
System.String requestTechContact_techContact_Fax = null;
if (cmdletContext.TechContact_Fax != null)
{
requestTechContact_techContact_Fax = cmdletContext.TechContact_Fax;
}
if (requestTechContact_techContact_Fax != null)
{
request.TechContact.Fax = requestTechContact_techContact_Fax;
requestTechContactIsNull = false;
}
System.String requestTechContact_techContact_FirstName = null;
if (cmdletContext.TechContact_FirstName != null)
{
requestTechContact_techContact_FirstName = cmdletContext.TechContact_FirstName;
}
if (requestTechContact_techContact_FirstName != null)
{
request.TechContact.FirstName = requestTechContact_techContact_FirstName;
requestTechContactIsNull = false;
}
System.String requestTechContact_techContact_LastName = null;
if (cmdletContext.TechContact_LastName != null)
{
requestTechContact_techContact_LastName = cmdletContext.TechContact_LastName;
}
if (requestTechContact_techContact_LastName != null)
{
request.TechContact.LastName = requestTechContact_techContact_LastName;
requestTechContactIsNull = false;
}
System.String requestTechContact_techContact_OrganizationName = null;
if (cmdletContext.TechContact_OrganizationName != null)
{
requestTechContact_techContact_OrganizationName = cmdletContext.TechContact_OrganizationName;
}
if (requestTechContact_techContact_OrganizationName != null)
{
request.TechContact.OrganizationName = requestTechContact_techContact_OrganizationName;
requestTechContactIsNull = false;
}
System.String requestTechContact_techContact_PhoneNumber = null;
if (cmdletContext.TechContact_PhoneNumber != null)
{
requestTechContact_techContact_PhoneNumber = cmdletContext.TechContact_PhoneNumber;
}
if (requestTechContact_techContact_PhoneNumber != null)
{
request.TechContact.PhoneNumber = requestTechContact_techContact_PhoneNumber;
requestTechContactIsNull = false;
}
System.String requestTechContact_techContact_State = null;
if (cmdletContext.TechContact_State != null)
{
requestTechContact_techContact_State = cmdletContext.TechContact_State;
}
if (requestTechContact_techContact_State != null)
{
request.TechContact.State = requestTechContact_techContact_State;
requestTechContactIsNull = false;
}
System.String requestTechContact_techContact_ZipCode = null;
if (cmdletContext.TechContact_ZipCode != null)
{
requestTechContact_techContact_ZipCode = cmdletContext.TechContact_ZipCode;
}
if (requestTechContact_techContact_ZipCode != null)
{
request.TechContact.ZipCode = requestTechContact_techContact_ZipCode;
requestTechContactIsNull = false;
}
// determine if request.TechContact should be set to null
if (requestTechContactIsNull)
{
request.TechContact = null;
}
CmdletOutput output;
// issue call
var client = Client ?? CreateClient(_CurrentCredentials, _RegionEndpoint);
try
{
var response = CallAWSServiceOperation(client, request);
object pipelineOutput = null;
pipelineOutput = cmdletContext.Select(response, this);
output = new CmdletOutput
{
PipelineOutput = pipelineOutput,
ServiceResponse = response
};
}
catch (Exception e)
{
output = new CmdletOutput { ErrorResponse = e };
}
return output;
}
public ExecutorContext CreateContext()
{
return new CmdletContext();
}
#endregion
#region AWS Service Operation Call
private Amazon.Route53Domains.Model.TransferDomainResponse CallAWSServiceOperation(IAmazonRoute53Domains client, Amazon.Route53Domains.Model.TransferDomainRequest request)
{
Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Route 53 Domains", "TransferDomain");
try
{
#if DESKTOP
return client.TransferDomain(request);
#elif CORECLR
return client.TransferDomainAsync(request).GetAwaiter().GetResult();
#else
#error "Unknown build edition"
#endif
}
catch (AmazonServiceException exc)
{
var webException = exc.InnerException as System.Net.WebException;
if (webException != null)
{
throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException);
}
throw;
}
}
#endregion
internal partial class CmdletContext : ExecutorContext
{
public System.String AdminContact_AddressLine1 { get; set; }
public System.String AdminContact_AddressLine2 { get; set; }
public System.String AdminContact_City { get; set; }
public Amazon.Route53Domains.ContactType AdminContact_ContactType { get; set; }
public Amazon.Route53Domains.CountryCode AdminContact_CountryCode { get; set; }
public System.String AdminContact_Email { get; set; }
public List AdminContact_ExtraParam { get; set; }
public System.String AdminContact_Fax { get; set; }
public System.String AdminContact_FirstName { get; set; }
public System.String AdminContact_LastName { get; set; }
public System.String AdminContact_OrganizationName { get; set; }
public System.String AdminContact_PhoneNumber { get; set; }
public System.String AdminContact_State { get; set; }
public System.String AdminContact_ZipCode { get; set; }
public System.String AuthCode { get; set; }
public System.Boolean? AutoRenew { get; set; }
public System.String DomainName { get; set; }
public System.Int32? DurationInYears { get; set; }
public System.String IdnLangCode { get; set; }
public List Nameserver { get; set; }
public System.Boolean? PrivacyProtectAdminContact { get; set; }
public System.Boolean? PrivacyProtectRegistrantContact { get; set; }
public System.Boolean? PrivacyProtectTechContact { get; set; }
public System.String RegistrantContact_AddressLine1 { get; set; }
public System.String RegistrantContact_AddressLine2 { get; set; }
public System.String RegistrantContact_City { get; set; }
public Amazon.Route53Domains.ContactType RegistrantContact_ContactType { get; set; }
public Amazon.Route53Domains.CountryCode RegistrantContact_CountryCode { get; set; }
public System.String RegistrantContact_Email { get; set; }
public List RegistrantContact_ExtraParam { get; set; }
public System.String RegistrantContact_Fax { get; set; }
public System.String RegistrantContact_FirstName { get; set; }
public System.String RegistrantContact_LastName { get; set; }
public System.String RegistrantContact_OrganizationName { get; set; }
public System.String RegistrantContact_PhoneNumber { get; set; }
public System.String RegistrantContact_State { get; set; }
public System.String RegistrantContact_ZipCode { get; set; }
public System.String TechContact_AddressLine1 { get; set; }
public System.String TechContact_AddressLine2 { get; set; }
public System.String TechContact_City { get; set; }
public Amazon.Route53Domains.ContactType TechContact_ContactType { get; set; }
public Amazon.Route53Domains.CountryCode TechContact_CountryCode { get; set; }
public System.String TechContact_Email { get; set; }
public List TechContact_ExtraParam { get; set; }
public System.String TechContact_Fax { get; set; }
public System.String TechContact_FirstName { get; set; }
public System.String TechContact_LastName { get; set; }
public System.String TechContact_OrganizationName { get; set; }
public System.String TechContact_PhoneNumber { get; set; }
public System.String TechContact_State { get; set; }
public System.String TechContact_ZipCode { get; set; }
public System.Func Select { get; set; } =
(response, cmdlet) => response.OperationId;
}
}
}