/* * 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 globalaccelerator-2018-08-08.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.GlobalAccelerator.Model { /// /// Container for the parameters to the CreateAccelerator operation. /// Create an accelerator. An accelerator includes one or more listeners that process /// inbound connections and direct traffic to one or more endpoint groups, each of which /// includes endpoints, such as Network Load Balancers. /// /// /// /// Global Accelerator is a global service that supports endpoints in multiple Amazon /// Web Services Regions but you must specify the US West (Oregon) Region to create, update, /// or otherwise work with accelerators. That is, for example, specify --region /// us-west-2 on AWS CLI commands. /// /// /// public partial class CreateAcceleratorRequest : AmazonGlobalAcceleratorRequest { private bool? _enabled; private string _idempotencyToken; private List _ipAddresses = new List(); private IpAddressType _ipAddressType; private string _name; private List _tags = new List(); /// /// Gets and sets the property Enabled. /// /// Indicates whether an accelerator is enabled. The value is true or false. The default /// value is true. /// /// /// /// If the value is set to true, an accelerator cannot be deleted. If set to false, the /// accelerator can be deleted. /// /// public bool Enabled { get { return this._enabled.GetValueOrDefault(); } set { this._enabled = value; } } // Check to see if Enabled property is set internal bool IsSetEnabled() { return this._enabled.HasValue; } /// /// Gets and sets the property IdempotencyToken. /// /// A unique, case-sensitive identifier that you provide to ensure the idempotency—that /// is, the uniqueness—of an accelerator. /// /// [AWSProperty(Max=255)] public string IdempotencyToken { get { return this._idempotencyToken; } set { this._idempotencyToken = value; } } // Check to see if IdempotencyToken property is set internal bool IsSetIdempotencyToken() { return this._idempotencyToken != null; } /// /// Gets and sets the property IpAddresses. /// /// Optionally, if you've added your own IP address pool to Global Accelerator (BYOIP), /// you can choose an IPv4 address from your own pool to use for the accelerator's static /// IPv4 address when you create an accelerator. /// /// /// /// After you bring an address range to Amazon Web Services, it appears in your account /// as an address pool. When you create an accelerator, you can assign one IPv4 address /// from your range to it. Global Accelerator assigns you a second static IPv4 address /// from an Amazon IP address range. If you bring two IPv4 address ranges to Amazon Web /// Services, you can assign one IPv4 address from each range to your accelerator. This /// restriction is because Global Accelerator assigns each address range to a different /// network zone, for high availability. /// /// /// /// You can specify one or two addresses, separated by a space. Do not include the /32 /// suffix. /// /// /// /// Note that you can't update IP addresses for an existing accelerator. To change them, /// you must create a new accelerator with the new addresses. /// /// /// /// For more information, see Bring /// your own IP addresses (BYOIP) in the Global Accelerator Developer Guide. /// /// [AWSProperty(Min=0, Max=2)] public List IpAddresses { get { return this._ipAddresses; } set { this._ipAddresses = value; } } // Check to see if IpAddresses property is set internal bool IsSetIpAddresses() { return this._ipAddresses != null && this._ipAddresses.Count > 0; } /// /// Gets and sets the property IpAddressType. /// /// The IP address type that an accelerator supports. For a standard accelerator, the /// value can be IPV4 or DUAL_STACK. /// /// public IpAddressType IpAddressType { get { return this._ipAddressType; } set { this._ipAddressType = value; } } // Check to see if IpAddressType property is set internal bool IsSetIpAddressType() { return this._ipAddressType != null; } /// /// Gets and sets the property Name. /// /// The name of the accelerator. The name can have a maximum of 64 characters, must contain /// only alphanumeric characters, periods (.), or hyphens (-), and must not begin or end /// with a hyphen or period. /// /// [AWSProperty(Required=true, Max=255)] 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 Tags. /// /// Create tags for an accelerator. /// /// /// /// For more information, see Tagging /// in Global Accelerator in the Global Accelerator Developer Guide. /// /// 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; } } }