/*
* 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 RemoveEndpoints operation.
/// Remove endpoints from an endpoint group.
///
///
///
/// The RemoveEndpoints
API operation is the recommended option for removing
/// endpoints. The alternative is to remove endpoints by updating an endpoint group by
/// using the UpdateEndpointGroup
/// API operation. There are two advantages to using AddEndpoints
to remove
/// endpoints instead:
///
/// -
///
/// It's more convenient, because you only need to specify the endpoints that you want
/// to remove. With the
UpdateEndpointGroup
API operation, you must specify
/// all of the endpoints in the endpoint group except the ones that you want to remove
/// from the group.
///
/// -
///
/// It's faster, because Global Accelerator doesn't need to resolve any endpoints. With
/// the
UpdateEndpointGroup
API operation, Global Accelerator must resolve
/// all of the endpoints that remain in the group.
///
///
///
public partial class RemoveEndpointsRequest : AmazonGlobalAcceleratorRequest
{
private string _endpointGroupArn;
private List _endpointIdentifiers = new List();
///
/// Gets and sets the property EndpointGroupArn.
///
/// The Amazon Resource Name (ARN) of the endpoint group.
///
///
[AWSProperty(Required=true, Max=255)]
public string EndpointGroupArn
{
get { return this._endpointGroupArn; }
set { this._endpointGroupArn = value; }
}
// Check to see if EndpointGroupArn property is set
internal bool IsSetEndpointGroupArn()
{
return this._endpointGroupArn != null;
}
///
/// Gets and sets the property EndpointIdentifiers.
///
/// The identifiers of the endpoints that you want to remove.
///
///
[AWSProperty(Required=true, Min=1, Max=10)]
public List EndpointIdentifiers
{
get { return this._endpointIdentifiers; }
set { this._endpointIdentifiers = value; }
}
// Check to see if EndpointIdentifiers property is set
internal bool IsSetEndpointIdentifiers()
{
return this._endpointIdentifiers != null && this._endpointIdentifiers.Count > 0;
}
}
}