/*
* 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 snowball-2016-06-30.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.Snowball.Model
{
///
/// Container for the parameters to the UpdateCluster operation.
/// While a cluster's ClusterState
value is in the AwaitingQuorum
/// state, you can update some of the information associated with a cluster. Once the
/// cluster changes to a different job state, usually 60 minutes after the cluster being
/// created, this action is no longer available.
///
public partial class UpdateClusterRequest : AmazonSnowballRequest
{
private string _addressId;
private string _clusterId;
private string _description;
private string _forwardingAddressId;
private Notification _notification;
private OnDeviceServiceConfiguration _onDeviceServiceConfiguration;
private JobResource _resources;
private string _roleARN;
private ShippingOption _shippingOption;
///
/// Gets and sets the property AddressId.
///
/// The ID of the updated Address object.
///
///
[AWSProperty(Min=40, Max=40)]
public string AddressId
{
get { return this._addressId; }
set { this._addressId = value; }
}
// Check to see if AddressId property is set
internal bool IsSetAddressId()
{
return this._addressId != null;
}
///
/// Gets and sets the property ClusterId.
///
/// The cluster ID of the cluster that you want to update, for example CID123e4567-e89b-12d3-a456-426655440000
.
///
///
[AWSProperty(Required=true, Min=39, Max=39)]
public string ClusterId
{
get { return this._clusterId; }
set { this._clusterId = value; }
}
// Check to see if ClusterId property is set
internal bool IsSetClusterId()
{
return this._clusterId != null;
}
///
/// Gets and sets the property Description.
///
/// The updated description of this cluster.
///
///
[AWSProperty(Min=1, Max=1024)]
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 ForwardingAddressId.
///
/// The updated ID for the forwarding address for a cluster. This field is not supported
/// in most regions.
///
///
[AWSProperty(Min=40, Max=40)]
public string ForwardingAddressId
{
get { return this._forwardingAddressId; }
set { this._forwardingAddressId = value; }
}
// Check to see if ForwardingAddressId property is set
internal bool IsSetForwardingAddressId()
{
return this._forwardingAddressId != null;
}
///
/// Gets and sets the property Notification.
///
/// The new or updated Notification object.
///
///
public Notification Notification
{
get { return this._notification; }
set { this._notification = value; }
}
// Check to see if Notification property is set
internal bool IsSetNotification()
{
return this._notification != null;
}
///
/// Gets and sets the property OnDeviceServiceConfiguration.
///
/// Specifies the service or services on the Snow Family device that your transferred
/// data will be exported from or imported into. Amazon Web Services Snow Family device
/// clusters support Amazon S3 and NFS (Network File System).
///
///
public OnDeviceServiceConfiguration OnDeviceServiceConfiguration
{
get { return this._onDeviceServiceConfiguration; }
set { this._onDeviceServiceConfiguration = value; }
}
// Check to see if OnDeviceServiceConfiguration property is set
internal bool IsSetOnDeviceServiceConfiguration()
{
return this._onDeviceServiceConfiguration != null;
}
///
/// Gets and sets the property Resources.
///
/// The updated arrays of JobResource objects that can include updated S3Resource
/// objects or LambdaResource objects.
///
///
public JobResource Resources
{
get { return this._resources; }
set { this._resources = value; }
}
// Check to see if Resources property is set
internal bool IsSetResources()
{
return this._resources != null;
}
///
/// Gets and sets the property RoleARN.
///
/// The new role Amazon Resource Name (ARN) that you want to associate with this cluster.
/// To create a role ARN, use the CreateRole
/// API action in Identity and Access Management (IAM).
///
///
[AWSProperty(Max=255)]
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 ShippingOption.
///
/// The updated shipping option value of this cluster's ShippingDetails object.
///
///
public ShippingOption ShippingOption
{
get { return this._shippingOption; }
set { this._shippingOption = value; }
}
// Check to see if ShippingOption property is set
internal bool IsSetShippingOption()
{
return this._shippingOption != null;
}
}
}