/* * 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 s3control-2018-08-20.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.S3Control.Model { /// /// Container for the parameters to the SubmitMultiRegionAccessPointRoutes operation. /// Submits an updated route configuration for a Multi-Region Access Point. This API operation /// updates the routing status for the specified Regions from active to passive, or from /// passive to active. A value of 0 indicates a passive status, which means /// that traffic won't be routed to the specified Region. A value of 100 /// indicates an active status, which means that traffic will be routed to the specified /// Region. At least one Region must be active at all times. /// /// /// /// When the routing configuration is changed, any in-progress operations (uploads, copies, /// deletes, and so on) to formerly active Regions will continue to run to their final /// completion state (success or failure). The routing configurations of any Regions that /// aren’t specified remain unchanged. /// /// /// /// Updated routing configurations might not be immediately applied. It can take up to /// 2 minutes for your changes to take effect. /// /// /// /// To submit routing control changes and failover requests, use the Amazon S3 failover /// control infrastructure endpoints in these five Amazon Web Services Regions: /// /// /// /// Your Amazon S3 bucket does not need to be in these five Regions. /// /// /// public partial class SubmitMultiRegionAccessPointRoutesRequest : AmazonS3ControlRequest { private string _accountId; private string _mrap; private List _routeUpdates = new List(); /// /// Gets and sets the property AccountId. /// /// The Amazon Web Services account ID for the owner of the Multi-Region Access Point. /// /// [AWSProperty(Required=true, Max=64)] 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 Mrap. /// /// The Multi-Region Access Point ARN. /// /// [AWSProperty(Required=true, Max=200)] public string Mrap { get { return this._mrap; } set { this._mrap = value; } } // Check to see if Mrap property is set internal bool IsSetMrap() { return this._mrap != null; } /// /// Gets and sets the property RouteUpdates. /// /// The different routes that make up the new route configuration. Active routes return /// a value of 100, and passive routes return a value of 0. /// /// [AWSProperty(Required=true)] public List RouteUpdates { get { return this._routeUpdates; } set { this._routeUpdates = value; } } // Check to see if RouteUpdates property is set internal bool IsSetRouteUpdates() { return this._routeUpdates != null && this._routeUpdates.Count > 0; } } }