/** * 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 namespace Aws { namespace DataSync { namespace Model { /** */ class StartDiscoveryJobRequest : public DataSyncRequest { public: AWS_DATASYNC_API StartDiscoveryJobRequest(); // 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 "StartDiscoveryJob"; } AWS_DATASYNC_API Aws::String SerializePayload() const override; AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Specifies the Amazon Resource Name (ARN) of the on-premises storage system * that you want to run the discovery job on.

*/ inline const Aws::String& GetStorageSystemArn() const{ return m_storageSystemArn; } /** *

Specifies the Amazon Resource Name (ARN) of the on-premises storage system * that you want to run the discovery job on.

*/ inline bool StorageSystemArnHasBeenSet() const { return m_storageSystemArnHasBeenSet; } /** *

Specifies the Amazon Resource Name (ARN) of the on-premises storage system * that you want to run the discovery job on.

*/ inline void SetStorageSystemArn(const Aws::String& value) { m_storageSystemArnHasBeenSet = true; m_storageSystemArn = value; } /** *

Specifies the Amazon Resource Name (ARN) of the on-premises storage system * that you want to run the discovery job on.

*/ inline void SetStorageSystemArn(Aws::String&& value) { m_storageSystemArnHasBeenSet = true; m_storageSystemArn = std::move(value); } /** *

Specifies the Amazon Resource Name (ARN) of the on-premises storage system * that you want to run the discovery job on.

*/ inline void SetStorageSystemArn(const char* value) { m_storageSystemArnHasBeenSet = true; m_storageSystemArn.assign(value); } /** *

Specifies the Amazon Resource Name (ARN) of the on-premises storage system * that you want to run the discovery job on.

*/ inline StartDiscoveryJobRequest& WithStorageSystemArn(const Aws::String& value) { SetStorageSystemArn(value); return *this;} /** *

Specifies the Amazon Resource Name (ARN) of the on-premises storage system * that you want to run the discovery job on.

*/ inline StartDiscoveryJobRequest& WithStorageSystemArn(Aws::String&& value) { SetStorageSystemArn(std::move(value)); return *this;} /** *

Specifies the Amazon Resource Name (ARN) of the on-premises storage system * that you want to run the discovery job on.

*/ inline StartDiscoveryJobRequest& WithStorageSystemArn(const char* value) { SetStorageSystemArn(value); return *this;} /** *

Specifies in minutes how long you want the discovery job to run.

*

For more accurate recommendations, we recommend a duration of at least 14 * days. Longer durations allow time to collect a sufficient number of data points * and provide a realistic representation of storage performance and * utilization.

*/ inline int GetCollectionDurationMinutes() const{ return m_collectionDurationMinutes; } /** *

Specifies in minutes how long you want the discovery job to run.

*

For more accurate recommendations, we recommend a duration of at least 14 * days. Longer durations allow time to collect a sufficient number of data points * and provide a realistic representation of storage performance and * utilization.

*/ inline bool CollectionDurationMinutesHasBeenSet() const { return m_collectionDurationMinutesHasBeenSet; } /** *

Specifies in minutes how long you want the discovery job to run.

*

For more accurate recommendations, we recommend a duration of at least 14 * days. Longer durations allow time to collect a sufficient number of data points * and provide a realistic representation of storage performance and * utilization.

*/ inline void SetCollectionDurationMinutes(int value) { m_collectionDurationMinutesHasBeenSet = true; m_collectionDurationMinutes = value; } /** *

Specifies in minutes how long you want the discovery job to run.

*

For more accurate recommendations, we recommend a duration of at least 14 * days. Longer durations allow time to collect a sufficient number of data points * and provide a realistic representation of storage performance and * utilization.

*/ inline StartDiscoveryJobRequest& WithCollectionDurationMinutes(int value) { SetCollectionDurationMinutes(value); return *this;} /** *

Specifies a client token to make sure requests with this API operation are * idempotent. If you don't specify a client token, DataSync generates one for you * automatically.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

Specifies a client token to make sure requests with this API operation are * idempotent. If you don't specify a client token, DataSync generates one for you * automatically.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

Specifies a client token to make sure requests with this API operation are * idempotent. If you don't specify a client token, DataSync generates one for you * automatically.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

Specifies a client token to make sure requests with this API operation are * idempotent. If you don't specify a client token, DataSync generates one for you * automatically.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

Specifies a client token to make sure requests with this API operation are * idempotent. If you don't specify a client token, DataSync generates one for you * automatically.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

Specifies a client token to make sure requests with this API operation are * idempotent. If you don't specify a client token, DataSync generates one for you * automatically.

*/ inline StartDiscoveryJobRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

Specifies a client token to make sure requests with this API operation are * idempotent. If you don't specify a client token, DataSync generates one for you * automatically.

*/ inline StartDiscoveryJobRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

Specifies a client token to make sure requests with this API operation are * idempotent. If you don't specify a client token, DataSync generates one for you * automatically.

*/ inline StartDiscoveryJobRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

Specifies labels that help you categorize, filter, and search for your Amazon * Web Services resources.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

Specifies labels that help you categorize, filter, and search for your Amazon * Web Services resources.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Specifies labels that help you categorize, filter, and search for your Amazon * Web Services resources.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Specifies labels that help you categorize, filter, and search for your Amazon * Web Services resources.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Specifies labels that help you categorize, filter, and search for your Amazon * Web Services resources.

*/ inline StartDiscoveryJobRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

Specifies labels that help you categorize, filter, and search for your Amazon * Web Services resources.

*/ inline StartDiscoveryJobRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

Specifies labels that help you categorize, filter, and search for your Amazon * Web Services resources.

*/ inline StartDiscoveryJobRequest& AddTags(const TagListEntry& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

Specifies labels that help you categorize, filter, and search for your Amazon * Web Services resources.

*/ inline StartDiscoveryJobRequest& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_storageSystemArn; bool m_storageSystemArnHasBeenSet = false; int m_collectionDurationMinutes; bool m_collectionDurationMinutesHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace DataSync } // namespace Aws