/** * 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 #include #include namespace Aws { namespace Snowball { namespace Model { /** */ class AWS_SNOWBALL_API CreateClusterRequest : public SnowballRequest { public: CreateClusterRequest(); // 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 "CreateCluster"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The type of job for this cluster. Currently, the only job type supported for * clusters is LOCAL_USE.

*/ inline const JobType& GetJobType() const{ return m_jobType; } /** *

The type of job for this cluster. Currently, the only job type supported for * clusters is LOCAL_USE.

*/ inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; } /** *

The type of job for this cluster. Currently, the only job type supported for * clusters is LOCAL_USE.

*/ inline void SetJobType(const JobType& value) { m_jobTypeHasBeenSet = true; m_jobType = value; } /** *

The type of job for this cluster. Currently, the only job type supported for * clusters is LOCAL_USE.

*/ inline void SetJobType(JobType&& value) { m_jobTypeHasBeenSet = true; m_jobType = std::move(value); } /** *

The type of job for this cluster. Currently, the only job type supported for * clusters is LOCAL_USE.

*/ inline CreateClusterRequest& WithJobType(const JobType& value) { SetJobType(value); return *this;} /** *

The type of job for this cluster. Currently, the only job type supported for * clusters is LOCAL_USE.

*/ inline CreateClusterRequest& WithJobType(JobType&& value) { SetJobType(std::move(value)); return *this;} /** *

The resources associated with the cluster job. These resources include Amazon * S3 buckets and optional AWS Lambda functions written in the Python language. *

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

The resources associated with the cluster job. These resources include Amazon * S3 buckets and optional AWS Lambda functions written in the Python language. *

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

The resources associated with the cluster job. These resources include Amazon * S3 buckets and optional AWS Lambda functions written in the Python language. *

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

The resources associated with the cluster job. These resources include Amazon * S3 buckets and optional AWS Lambda functions written in the Python language. *

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

The resources associated with the cluster job. These resources include Amazon * S3 buckets and optional AWS Lambda functions written in the Python language. *

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

The resources associated with the cluster job. These resources include Amazon * S3 buckets and optional AWS Lambda functions written in the Python language. *

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

An optional description of this specific cluster, for example * Environmental Data Cluster-01.

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

An optional description of this specific cluster, for example * Environmental Data Cluster-01.

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

An optional description of this specific cluster, for example * Environmental Data Cluster-01.

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

An optional description of this specific cluster, for example * Environmental Data Cluster-01.

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

An optional description of this specific cluster, for example * Environmental Data Cluster-01.

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

An optional description of this specific cluster, for example * Environmental Data Cluster-01.

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

An optional description of this specific cluster, for example * Environmental Data Cluster-01.

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

An optional description of this specific cluster, for example * Environmental Data Cluster-01.

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

The ID for the address that you want the cluster shipped to.

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

The ID for the address that you want the cluster shipped to.

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

The ID for the address that you want the cluster shipped to.

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

The ID for the address that you want the cluster shipped to.

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

The ID for the address that you want the cluster shipped to.

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

The ID for the address that you want the cluster shipped to.

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

The ID for the address that you want the cluster shipped to.

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

The ID for the address that you want the cluster shipped to.

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

The KmsKeyARN value that you want to associate with this * cluster. KmsKeyARN values are created by using the CreateKey * API action in AWS Key Management Service (AWS KMS).

*/ inline const Aws::String& GetKmsKeyARN() const{ return m_kmsKeyARN; } /** *

The KmsKeyARN value that you want to associate with this * cluster. KmsKeyARN values are created by using the CreateKey * API action in AWS Key Management Service (AWS KMS).

*/ inline bool KmsKeyARNHasBeenSet() const { return m_kmsKeyARNHasBeenSet; } /** *

The KmsKeyARN value that you want to associate with this * cluster. KmsKeyARN values are created by using the CreateKey * API action in AWS Key Management Service (AWS KMS).

*/ inline void SetKmsKeyARN(const Aws::String& value) { m_kmsKeyARNHasBeenSet = true; m_kmsKeyARN = value; } /** *

The KmsKeyARN value that you want to associate with this * cluster. KmsKeyARN values are created by using the CreateKey * API action in AWS Key Management Service (AWS KMS).

*/ inline void SetKmsKeyARN(Aws::String&& value) { m_kmsKeyARNHasBeenSet = true; m_kmsKeyARN = std::move(value); } /** *

The KmsKeyARN value that you want to associate with this * cluster. KmsKeyARN values are created by using the CreateKey * API action in AWS Key Management Service (AWS KMS).

*/ inline void SetKmsKeyARN(const char* value) { m_kmsKeyARNHasBeenSet = true; m_kmsKeyARN.assign(value); } /** *

The KmsKeyARN value that you want to associate with this * cluster. KmsKeyARN values are created by using the CreateKey * API action in AWS Key Management Service (AWS KMS).

*/ inline CreateClusterRequest& WithKmsKeyARN(const Aws::String& value) { SetKmsKeyARN(value); return *this;} /** *

The KmsKeyARN value that you want to associate with this * cluster. KmsKeyARN values are created by using the CreateKey * API action in AWS Key Management Service (AWS KMS).

*/ inline CreateClusterRequest& WithKmsKeyARN(Aws::String&& value) { SetKmsKeyARN(std::move(value)); return *this;} /** *

The KmsKeyARN value that you want to associate with this * cluster. KmsKeyARN values are created by using the CreateKey * API action in AWS Key Management Service (AWS KMS).

*/ inline CreateClusterRequest& WithKmsKeyARN(const char* value) { SetKmsKeyARN(value); return *this;} /** *

The RoleARN that you want to associate with this cluster. * RoleArn values are created by using the CreateRole * API action in AWS Identity and Access Management (IAM).

*/ inline const Aws::String& GetRoleARN() const{ return m_roleARN; } /** *

The RoleARN that you want to associate with this cluster. * RoleArn values are created by using the CreateRole * API action in AWS Identity and Access Management (IAM).

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

The RoleARN that you want to associate with this cluster. * RoleArn values are created by using the CreateRole * API action in AWS Identity and Access Management (IAM).

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

The RoleARN that you want to associate with this cluster. * RoleArn values are created by using the CreateRole * API action in AWS Identity and Access Management (IAM).

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

The RoleARN that you want to associate with this cluster. * RoleArn values are created by using the CreateRole * API action in AWS Identity and Access Management (IAM).

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

The RoleARN that you want to associate with this cluster. * RoleArn values are created by using the CreateRole * API action in AWS Identity and Access Management (IAM).

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

The RoleARN that you want to associate with this cluster. * RoleArn values are created by using the CreateRole * API action in AWS Identity and Access Management (IAM).

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

The RoleARN that you want to associate with this cluster. * RoleArn values are created by using the CreateRole * API action in AWS Identity and Access Management (IAM).

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

The type of AWS Snowball device to use for this cluster.

For * cluster jobs, AWS Snowball currently supports only the EDGE device * type.

*/ inline const SnowballType& GetSnowballType() const{ return m_snowballType; } /** *

The type of AWS Snowball device to use for this cluster.

For * cluster jobs, AWS Snowball currently supports only the EDGE device * type.

*/ inline bool SnowballTypeHasBeenSet() const { return m_snowballTypeHasBeenSet; } /** *

The type of AWS Snowball device to use for this cluster.

For * cluster jobs, AWS Snowball currently supports only the EDGE device * type.

*/ inline void SetSnowballType(const SnowballType& value) { m_snowballTypeHasBeenSet = true; m_snowballType = value; } /** *

The type of AWS Snowball device to use for this cluster.

For * cluster jobs, AWS Snowball currently supports only the EDGE device * type.

*/ inline void SetSnowballType(SnowballType&& value) { m_snowballTypeHasBeenSet = true; m_snowballType = std::move(value); } /** *

The type of AWS Snowball device to use for this cluster.

For * cluster jobs, AWS Snowball currently supports only the EDGE device * type.

*/ inline CreateClusterRequest& WithSnowballType(const SnowballType& value) { SetSnowballType(value); return *this;} /** *

The type of AWS Snowball device to use for this cluster.

For * cluster jobs, AWS Snowball currently supports only the EDGE device * type.

*/ inline CreateClusterRequest& WithSnowballType(SnowballType&& value) { SetSnowballType(std::move(value)); return *this;} /** *

The shipping speed for each node in this cluster. This speed doesn't dictate * how soon you'll get each Snowball Edge device, rather it represents how quickly * each device moves to its destination while in transit. Regional shipping speeds * are as follows:

  • In Australia, you have access to express * shipping. Typically, Snowballs shipped express are delivered in about a day.

    *
  • In the European Union (EU), you have access to express shipping. * Typically, Snowballs shipped express are delivered in about a day. In addition, * most countries in the EU have access to standard shipping, which typically takes * less than a week, one way.

  • In India, Snowballs are delivered * in one to seven days.

  • In the United States of America (US), * you have access to one-day shipping and two-day shipping.

    *
  • In Australia, you have access to express shipping. Typically, devices * shipped express are delivered in about a day.

  • In the European * Union (EU), you have access to express shipping. Typically, Snowball Edges * shipped express are delivered in about a day. In addition, most countries in the * EU have access to standard shipping, which typically takes less than a week, one * way.

  • In India, Snowball Edges are delivered in one to seven * days.

  • In the US, you have access to one-day shipping and * two-day shipping.

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

The shipping speed for each node in this cluster. This speed doesn't dictate * how soon you'll get each Snowball Edge device, rather it represents how quickly * each device moves to its destination while in transit. Regional shipping speeds * are as follows:

  • In Australia, you have access to express * shipping. Typically, Snowballs shipped express are delivered in about a day.

    *
  • In the European Union (EU), you have access to express shipping. * Typically, Snowballs shipped express are delivered in about a day. In addition, * most countries in the EU have access to standard shipping, which typically takes * less than a week, one way.

  • In India, Snowballs are delivered * in one to seven days.

  • In the United States of America (US), * you have access to one-day shipping and two-day shipping.

    *
  • In Australia, you have access to express shipping. Typically, devices * shipped express are delivered in about a day.

  • In the European * Union (EU), you have access to express shipping. Typically, Snowball Edges * shipped express are delivered in about a day. In addition, most countries in the * EU have access to standard shipping, which typically takes less than a week, one * way.

  • In India, Snowball Edges are delivered in one to seven * days.

  • In the US, you have access to one-day shipping and * two-day shipping.

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

The shipping speed for each node in this cluster. This speed doesn't dictate * how soon you'll get each Snowball Edge device, rather it represents how quickly * each device moves to its destination while in transit. Regional shipping speeds * are as follows:

  • In Australia, you have access to express * shipping. Typically, Snowballs shipped express are delivered in about a day.

    *
  • In the European Union (EU), you have access to express shipping. * Typically, Snowballs shipped express are delivered in about a day. In addition, * most countries in the EU have access to standard shipping, which typically takes * less than a week, one way.

  • In India, Snowballs are delivered * in one to seven days.

  • In the United States of America (US), * you have access to one-day shipping and two-day shipping.

    *
  • In Australia, you have access to express shipping. Typically, devices * shipped express are delivered in about a day.

  • In the European * Union (EU), you have access to express shipping. Typically, Snowball Edges * shipped express are delivered in about a day. In addition, most countries in the * EU have access to standard shipping, which typically takes less than a week, one * way.

  • In India, Snowball Edges are delivered in one to seven * days.

  • In the US, you have access to one-day shipping and * two-day shipping.

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

The shipping speed for each node in this cluster. This speed doesn't dictate * how soon you'll get each Snowball Edge device, rather it represents how quickly * each device moves to its destination while in transit. Regional shipping speeds * are as follows:

  • In Australia, you have access to express * shipping. Typically, Snowballs shipped express are delivered in about a day.

    *
  • In the European Union (EU), you have access to express shipping. * Typically, Snowballs shipped express are delivered in about a day. In addition, * most countries in the EU have access to standard shipping, which typically takes * less than a week, one way.

  • In India, Snowballs are delivered * in one to seven days.

  • In the United States of America (US), * you have access to one-day shipping and two-day shipping.

    *
  • In Australia, you have access to express shipping. Typically, devices * shipped express are delivered in about a day.

  • In the European * Union (EU), you have access to express shipping. Typically, Snowball Edges * shipped express are delivered in about a day. In addition, most countries in the * EU have access to standard shipping, which typically takes less than a week, one * way.

  • In India, Snowball Edges are delivered in one to seven * days.

  • In the US, you have access to one-day shipping and * two-day shipping.

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

The shipping speed for each node in this cluster. This speed doesn't dictate * how soon you'll get each Snowball Edge device, rather it represents how quickly * each device moves to its destination while in transit. Regional shipping speeds * are as follows:

  • In Australia, you have access to express * shipping. Typically, Snowballs shipped express are delivered in about a day.

    *
  • In the European Union (EU), you have access to express shipping. * Typically, Snowballs shipped express are delivered in about a day. In addition, * most countries in the EU have access to standard shipping, which typically takes * less than a week, one way.

  • In India, Snowballs are delivered * in one to seven days.

  • In the United States of America (US), * you have access to one-day shipping and two-day shipping.

    *
  • In Australia, you have access to express shipping. Typically, devices * shipped express are delivered in about a day.

  • In the European * Union (EU), you have access to express shipping. Typically, Snowball Edges * shipped express are delivered in about a day. In addition, most countries in the * EU have access to standard shipping, which typically takes less than a week, one * way.

  • In India, Snowball Edges are delivered in one to seven * days.

  • In the US, you have access to one-day shipping and * two-day shipping.

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

The shipping speed for each node in this cluster. This speed doesn't dictate * how soon you'll get each Snowball Edge device, rather it represents how quickly * each device moves to its destination while in transit. Regional shipping speeds * are as follows:

  • In Australia, you have access to express * shipping. Typically, Snowballs shipped express are delivered in about a day.

    *
  • In the European Union (EU), you have access to express shipping. * Typically, Snowballs shipped express are delivered in about a day. In addition, * most countries in the EU have access to standard shipping, which typically takes * less than a week, one way.

  • In India, Snowballs are delivered * in one to seven days.

  • In the United States of America (US), * you have access to one-day shipping and two-day shipping.

    *
  • In Australia, you have access to express shipping. Typically, devices * shipped express are delivered in about a day.

  • In the European * Union (EU), you have access to express shipping. Typically, Snowball Edges * shipped express are delivered in about a day. In addition, most countries in the * EU have access to standard shipping, which typically takes less than a week, one * way.

  • In India, Snowball Edges are delivered in one to seven * days.

  • In the US, you have access to one-day shipping and * two-day shipping.

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

The Amazon Simple Notification Service (Amazon SNS) notification settings for * this cluster.

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

The Amazon Simple Notification Service (Amazon SNS) notification settings for * this cluster.

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

The Amazon Simple Notification Service (Amazon SNS) notification settings for * this cluster.

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

The Amazon Simple Notification Service (Amazon SNS) notification settings for * this cluster.

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

The Amazon Simple Notification Service (Amazon SNS) notification settings for * this cluster.

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

The Amazon Simple Notification Service (Amazon SNS) notification settings for * this cluster.

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

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

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

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

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

The forwarding address ID 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 forwarding address ID 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 forwarding address ID 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 forwarding address ID for a cluster. This field is not supported in most * regions.

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

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

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

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

*/ inline CreateClusterRequest& WithForwardingAddressId(const char* value) { SetForwardingAddressId(value); return *this;} /** *

The tax documents required in your AWS Region.

*/ inline const TaxDocuments& GetTaxDocuments() const{ return m_taxDocuments; } /** *

The tax documents required in your AWS Region.

*/ inline bool TaxDocumentsHasBeenSet() const { return m_taxDocumentsHasBeenSet; } /** *

The tax documents required in your AWS Region.

*/ inline void SetTaxDocuments(const TaxDocuments& value) { m_taxDocumentsHasBeenSet = true; m_taxDocuments = value; } /** *

The tax documents required in your AWS Region.

*/ inline void SetTaxDocuments(TaxDocuments&& value) { m_taxDocumentsHasBeenSet = true; m_taxDocuments = std::move(value); } /** *

The tax documents required in your AWS Region.

*/ inline CreateClusterRequest& WithTaxDocuments(const TaxDocuments& value) { SetTaxDocuments(value); return *this;} /** *

The tax documents required in your AWS Region.

*/ inline CreateClusterRequest& WithTaxDocuments(TaxDocuments&& value) { SetTaxDocuments(std::move(value)); return *this;} private: JobType m_jobType; bool m_jobTypeHasBeenSet; JobResource m_resources; bool m_resourcesHasBeenSet; Aws::String m_description; bool m_descriptionHasBeenSet; Aws::String m_addressId; bool m_addressIdHasBeenSet; Aws::String m_kmsKeyARN; bool m_kmsKeyARNHasBeenSet; Aws::String m_roleARN; bool m_roleARNHasBeenSet; SnowballType m_snowballType; bool m_snowballTypeHasBeenSet; ShippingOption m_shippingOption; bool m_shippingOptionHasBeenSet; Notification m_notification; bool m_notificationHasBeenSet; Aws::String m_forwardingAddressId; bool m_forwardingAddressIdHasBeenSet; TaxDocuments m_taxDocuments; bool m_taxDocumentsHasBeenSet; }; } // namespace Model } // namespace Snowball } // namespace Aws