/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace Snowball { namespace Model { /** */ class UpdateClusterRequest : public SnowballRequest { public: AWS_SNOWBALL_API UpdateClusterRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateCluster"; } AWS_SNOWBALL_API Aws::String SerializePayload() const override; AWS_SNOWBALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The cluster ID of the cluster that you want to update, for example * CID123e4567-e89b-12d3-a456-426655440000.

*/ inline const Aws::String& GetClusterId() const{ return m_clusterId; } /** *

The cluster ID of the cluster that you want to update, for example * CID123e4567-e89b-12d3-a456-426655440000.

*/ inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; } /** *

The cluster ID of the cluster that you want to update, for example * CID123e4567-e89b-12d3-a456-426655440000.

*/ inline void SetClusterId(const Aws::String& value) { m_clusterIdHasBeenSet = true; m_clusterId = value; } /** *

The cluster ID of the cluster that you want to update, for example * CID123e4567-e89b-12d3-a456-426655440000.

*/ inline void SetClusterId(Aws::String&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::move(value); } /** *

The cluster ID of the cluster that you want to update, for example * CID123e4567-e89b-12d3-a456-426655440000.

*/ inline void SetClusterId(const char* value) { m_clusterIdHasBeenSet = true; m_clusterId.assign(value); } /** *

The cluster ID of the cluster that you want to update, for example * CID123e4567-e89b-12d3-a456-426655440000.

*/ inline UpdateClusterRequest& WithClusterId(const Aws::String& value) { SetClusterId(value); return *this;} /** *

The cluster ID of the cluster that you want to update, for example * CID123e4567-e89b-12d3-a456-426655440000.

*/ inline UpdateClusterRequest& WithClusterId(Aws::String&& value) { SetClusterId(std::move(value)); return *this;} /** *

The cluster ID of the cluster that you want to update, for example * CID123e4567-e89b-12d3-a456-426655440000.

*/ inline UpdateClusterRequest& WithClusterId(const char* value) { SetClusterId(value); return *this;} /** *

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).

*/ inline const Aws::String& GetRoleARN() const{ return m_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).

*/ inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; } /** *

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).

*/ inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; } /** *

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).

*/ inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::move(value); } /** *

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).

*/ inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); } /** *

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).

*/ inline UpdateClusterRequest& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;} /** *

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).

*/ inline UpdateClusterRequest& WithRoleARN(Aws::String&& value) { SetRoleARN(std::move(value)); return *this;} /** *

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).

*/ inline UpdateClusterRequest& WithRoleARN(const char* value) { SetRoleARN(value); return *this;} /** *

The updated description of this cluster.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The updated description of this cluster.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The updated description of this cluster.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The updated description of this cluster.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The updated description of this cluster.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The updated description of this cluster.

*/ inline UpdateClusterRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The updated description of this cluster.

*/ inline UpdateClusterRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The updated description of this cluster.

*/ inline UpdateClusterRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The updated arrays of JobResource objects that can include updated * S3Resource objects or LambdaResource objects.

*/ inline const JobResource& GetResources() const{ return m_resources; } /** *

The updated arrays of JobResource objects that can include updated * S3Resource objects or LambdaResource objects.

*/ inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; } /** *

The updated arrays of JobResource objects that can include updated * S3Resource objects or LambdaResource objects.

*/ inline void SetResources(const JobResource& value) { m_resourcesHasBeenSet = true; m_resources = value; } /** *

The updated arrays of JobResource objects that can include updated * S3Resource objects or LambdaResource objects.

*/ inline void SetResources(JobResource&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); } /** *

The updated arrays of JobResource objects that can include updated * S3Resource objects or LambdaResource objects.

*/ inline UpdateClusterRequest& WithResources(const JobResource& value) { SetResources(value); return *this;} /** *

The updated arrays of JobResource objects that can include updated * S3Resource objects or LambdaResource objects.

*/ inline UpdateClusterRequest& WithResources(JobResource&& value) { SetResources(std::move(value)); return *this;} /** *

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).

*/ inline const OnDeviceServiceConfiguration& GetOnDeviceServiceConfiguration() const{ return m_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).

*/ inline bool OnDeviceServiceConfigurationHasBeenSet() const { return m_onDeviceServiceConfigurationHasBeenSet; } /** *

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).

*/ inline void SetOnDeviceServiceConfiguration(const OnDeviceServiceConfiguration& value) { m_onDeviceServiceConfigurationHasBeenSet = true; m_onDeviceServiceConfiguration = value; } /** *

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).

*/ inline void SetOnDeviceServiceConfiguration(OnDeviceServiceConfiguration&& value) { m_onDeviceServiceConfigurationHasBeenSet = true; m_onDeviceServiceConfiguration = std::move(value); } /** *

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).

*/ inline UpdateClusterRequest& WithOnDeviceServiceConfiguration(const OnDeviceServiceConfiguration& value) { SetOnDeviceServiceConfiguration(value); return *this;} /** *

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).

*/ inline UpdateClusterRequest& WithOnDeviceServiceConfiguration(OnDeviceServiceConfiguration&& value) { SetOnDeviceServiceConfiguration(std::move(value)); return *this;} /** *

The ID of the updated Address object.

*/ inline const Aws::String& GetAddressId() const{ return m_addressId; } /** *

The ID of the updated Address object.

*/ inline bool AddressIdHasBeenSet() const { return m_addressIdHasBeenSet; } /** *

The ID of the updated Address object.

*/ inline void SetAddressId(const Aws::String& value) { m_addressIdHasBeenSet = true; m_addressId = value; } /** *

The ID of the updated Address object.

*/ inline void SetAddressId(Aws::String&& value) { m_addressIdHasBeenSet = true; m_addressId = std::move(value); } /** *

The ID of the updated Address object.

*/ inline void SetAddressId(const char* value) { m_addressIdHasBeenSet = true; m_addressId.assign(value); } /** *

The ID of the updated Address object.

*/ inline UpdateClusterRequest& WithAddressId(const Aws::String& value) { SetAddressId(value); return *this;} /** *

The ID of the updated Address object.

*/ inline UpdateClusterRequest& WithAddressId(Aws::String&& value) { SetAddressId(std::move(value)); return *this;} /** *

The ID of the updated Address object.

*/ inline UpdateClusterRequest& WithAddressId(const char* value) { SetAddressId(value); return *this;} /** *

The updated shipping option value of this cluster's ShippingDetails * object.

*/ inline const ShippingOption& GetShippingOption() const{ return m_shippingOption; } /** *

The updated shipping option value of this cluster's ShippingDetails * object.

*/ inline bool ShippingOptionHasBeenSet() const { return m_shippingOptionHasBeenSet; } /** *

The updated shipping option value of this cluster's ShippingDetails * object.

*/ inline void SetShippingOption(const ShippingOption& value) { m_shippingOptionHasBeenSet = true; m_shippingOption = value; } /** *

The updated shipping option value of this cluster's ShippingDetails * object.

*/ inline void SetShippingOption(ShippingOption&& value) { m_shippingOptionHasBeenSet = true; m_shippingOption = std::move(value); } /** *

The updated shipping option value of this cluster's ShippingDetails * object.

*/ inline UpdateClusterRequest& WithShippingOption(const ShippingOption& value) { SetShippingOption(value); return *this;} /** *

The updated shipping option value of this cluster's ShippingDetails * object.

*/ inline UpdateClusterRequest& WithShippingOption(ShippingOption&& value) { SetShippingOption(std::move(value)); return *this;} /** *

The new or updated Notification object.

*/ inline const Notification& GetNotification() const{ return m_notification; } /** *

The new or updated Notification object.

*/ inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; } /** *

The new or updated Notification object.

*/ inline void SetNotification(const Notification& value) { m_notificationHasBeenSet = true; m_notification = value; } /** *

The new or updated Notification object.

*/ inline void SetNotification(Notification&& value) { m_notificationHasBeenSet = true; m_notification = std::move(value); } /** *

The new or updated Notification object.

*/ inline UpdateClusterRequest& WithNotification(const Notification& value) { SetNotification(value); return *this;} /** *

The new or updated Notification object.

*/ inline UpdateClusterRequest& WithNotification(Notification&& value) { SetNotification(std::move(value)); return *this;} /** *

The updated ID for the forwarding address for a cluster. This field is not * supported in most regions.

*/ inline const Aws::String& GetForwardingAddressId() const{ return m_forwardingAddressId; } /** *

The updated ID for the forwarding address for a cluster. This field is not * supported in most regions.

*/ inline bool ForwardingAddressIdHasBeenSet() const { return m_forwardingAddressIdHasBeenSet; } /** *

The updated ID for the forwarding address for a cluster. This field is not * supported in most regions.

*/ inline void SetForwardingAddressId(const Aws::String& value) { m_forwardingAddressIdHasBeenSet = true; m_forwardingAddressId = value; } /** *

The updated ID for the forwarding address for a cluster. This field is not * supported in most regions.

*/ inline void SetForwardingAddressId(Aws::String&& value) { m_forwardingAddressIdHasBeenSet = true; m_forwardingAddressId = std::move(value); } /** *

The updated ID for the forwarding address for a cluster. This field is not * supported in most regions.

*/ inline void SetForwardingAddressId(const char* value) { m_forwardingAddressIdHasBeenSet = true; m_forwardingAddressId.assign(value); } /** *

The updated ID for the forwarding address for a cluster. This field is not * supported in most regions.

*/ inline UpdateClusterRequest& WithForwardingAddressId(const Aws::String& value) { SetForwardingAddressId(value); return *this;} /** *

The updated ID for the forwarding address for a cluster. This field is not * supported in most regions.

*/ inline UpdateClusterRequest& WithForwardingAddressId(Aws::String&& value) { SetForwardingAddressId(std::move(value)); return *this;} /** *

The updated ID for the forwarding address for a cluster. This field is not * supported in most regions.

*/ inline UpdateClusterRequest& WithForwardingAddressId(const char* value) { SetForwardingAddressId(value); return *this;} private: Aws::String m_clusterId; bool m_clusterIdHasBeenSet = false; Aws::String m_roleARN; bool m_roleARNHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; JobResource m_resources; bool m_resourcesHasBeenSet = false; OnDeviceServiceConfiguration m_onDeviceServiceConfiguration; bool m_onDeviceServiceConfigurationHasBeenSet = false; Aws::String m_addressId; bool m_addressIdHasBeenSet = false; ShippingOption m_shippingOption; bool m_shippingOptionHasBeenSet = false; Notification m_notification; bool m_notificationHasBeenSet = false; Aws::String m_forwardingAddressId; bool m_forwardingAddressIdHasBeenSet = false; }; } // namespace Model } // namespace Snowball } // namespace Aws