/* * 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 eventbridge-2015-10-07.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.EventBridge.Model { /// /// Container for the parameters to the UpdateEndpoint operation. /// Update an existing endpoint. For more information about global endpoints, see Making /// applications Regional-fault tolerant with global endpoints and event replication /// in the Amazon EventBridge User Guide.. /// public partial class UpdateEndpointRequest : AmazonEventBridgeRequest { private string _description; private List _eventBuses = new List(); private string _name; private ReplicationConfig _replicationConfig; private string _roleArn; private RoutingConfig _routingConfig; /// /// Gets and sets the property Description. /// /// A description for the endpoint. /// /// [AWSProperty(Max=512)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// /// Gets and sets the property EventBuses. /// /// Define event buses used for replication. /// /// [AWSProperty(Min=2, Max=2)] public List EventBuses { get { return this._eventBuses; } set { this._eventBuses = value; } } // Check to see if EventBuses property is set internal bool IsSetEventBuses() { return this._eventBuses != null && this._eventBuses.Count > 0; } /// /// Gets and sets the property Name. /// /// The name of the endpoint you want to update. /// /// [AWSProperty(Required=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 ReplicationConfig. /// /// Whether event replication was enabled or disabled by this request. /// /// public ReplicationConfig ReplicationConfig { get { return this._replicationConfig; } set { this._replicationConfig = value; } } // Check to see if ReplicationConfig property is set internal bool IsSetReplicationConfig() { return this._replicationConfig != null; } /// /// Gets and sets the property RoleArn. /// /// The ARN of the role used by event replication for this request. /// /// [AWSProperty(Min=1, Max=256)] public string RoleArn { get { return this._roleArn; } set { this._roleArn = value; } } // Check to see if RoleArn property is set internal bool IsSetRoleArn() { return this._roleArn != null; } /// /// Gets and sets the property RoutingConfig. /// /// Configure the routing policy, including the health check and secondary Region. /// /// public RoutingConfig RoutingConfig { get { return this._routingConfig; } set { this._routingConfig = value; } } // Check to see if RoutingConfig property is set internal bool IsSetRoutingConfig() { return this._routingConfig != null; } } }