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

Specifies the server name and network port required to connect with the * management interface of your on-premises storage system.

*/ inline const DiscoveryServerConfiguration& GetServerConfiguration() const{ return m_serverConfiguration; } /** *

Specifies the server name and network port required to connect with the * management interface of your on-premises storage system.

*/ inline bool ServerConfigurationHasBeenSet() const { return m_serverConfigurationHasBeenSet; } /** *

Specifies the server name and network port required to connect with the * management interface of your on-premises storage system.

*/ inline void SetServerConfiguration(const DiscoveryServerConfiguration& value) { m_serverConfigurationHasBeenSet = true; m_serverConfiguration = value; } /** *

Specifies the server name and network port required to connect with the * management interface of your on-premises storage system.

*/ inline void SetServerConfiguration(DiscoveryServerConfiguration&& value) { m_serverConfigurationHasBeenSet = true; m_serverConfiguration = std::move(value); } /** *

Specifies the server name and network port required to connect with the * management interface of your on-premises storage system.

*/ inline AddStorageSystemRequest& WithServerConfiguration(const DiscoveryServerConfiguration& value) { SetServerConfiguration(value); return *this;} /** *

Specifies the server name and network port required to connect with the * management interface of your on-premises storage system.

*/ inline AddStorageSystemRequest& WithServerConfiguration(DiscoveryServerConfiguration&& value) { SetServerConfiguration(std::move(value)); return *this;} /** *

Specifies the type of on-premises storage system that you want DataSync * Discovery to collect information about.

DataSync Discovery * currently supports NetApp Fabric-Attached Storage (FAS) and All Flash FAS (AFF) * systems running ONTAP 9.7 or later.

*/ inline const DiscoverySystemType& GetSystemType() const{ return m_systemType; } /** *

Specifies the type of on-premises storage system that you want DataSync * Discovery to collect information about.

DataSync Discovery * currently supports NetApp Fabric-Attached Storage (FAS) and All Flash FAS (AFF) * systems running ONTAP 9.7 or later.

*/ inline bool SystemTypeHasBeenSet() const { return m_systemTypeHasBeenSet; } /** *

Specifies the type of on-premises storage system that you want DataSync * Discovery to collect information about.

DataSync Discovery * currently supports NetApp Fabric-Attached Storage (FAS) and All Flash FAS (AFF) * systems running ONTAP 9.7 or later.

*/ inline void SetSystemType(const DiscoverySystemType& value) { m_systemTypeHasBeenSet = true; m_systemType = value; } /** *

Specifies the type of on-premises storage system that you want DataSync * Discovery to collect information about.

DataSync Discovery * currently supports NetApp Fabric-Attached Storage (FAS) and All Flash FAS (AFF) * systems running ONTAP 9.7 or later.

*/ inline void SetSystemType(DiscoverySystemType&& value) { m_systemTypeHasBeenSet = true; m_systemType = std::move(value); } /** *

Specifies the type of on-premises storage system that you want DataSync * Discovery to collect information about.

DataSync Discovery * currently supports NetApp Fabric-Attached Storage (FAS) and All Flash FAS (AFF) * systems running ONTAP 9.7 or later.

*/ inline AddStorageSystemRequest& WithSystemType(const DiscoverySystemType& value) { SetSystemType(value); return *this;} /** *

Specifies the type of on-premises storage system that you want DataSync * Discovery to collect information about.

DataSync Discovery * currently supports NetApp Fabric-Attached Storage (FAS) and All Flash FAS (AFF) * systems running ONTAP 9.7 or later.

*/ inline AddStorageSystemRequest& WithSystemType(DiscoverySystemType&& value) { SetSystemType(std::move(value)); return *this;} /** *

Specifies the Amazon Resource Name (ARN) of the DataSync agent that connects * to and reads from your on-premises storage system's management interface. You * can only specify one ARN.

*/ inline const Aws::Vector& GetAgentArns() const{ return m_agentArns; } /** *

Specifies the Amazon Resource Name (ARN) of the DataSync agent that connects * to and reads from your on-premises storage system's management interface. You * can only specify one ARN.

*/ inline bool AgentArnsHasBeenSet() const { return m_agentArnsHasBeenSet; } /** *

Specifies the Amazon Resource Name (ARN) of the DataSync agent that connects * to and reads from your on-premises storage system's management interface. You * can only specify one ARN.

*/ inline void SetAgentArns(const Aws::Vector& value) { m_agentArnsHasBeenSet = true; m_agentArns = value; } /** *

Specifies the Amazon Resource Name (ARN) of the DataSync agent that connects * to and reads from your on-premises storage system's management interface. You * can only specify one ARN.

*/ inline void SetAgentArns(Aws::Vector&& value) { m_agentArnsHasBeenSet = true; m_agentArns = std::move(value); } /** *

Specifies the Amazon Resource Name (ARN) of the DataSync agent that connects * to and reads from your on-premises storage system's management interface. You * can only specify one ARN.

*/ inline AddStorageSystemRequest& WithAgentArns(const Aws::Vector& value) { SetAgentArns(value); return *this;} /** *

Specifies the Amazon Resource Name (ARN) of the DataSync agent that connects * to and reads from your on-premises storage system's management interface. You * can only specify one ARN.

*/ inline AddStorageSystemRequest& WithAgentArns(Aws::Vector&& value) { SetAgentArns(std::move(value)); return *this;} /** *

Specifies the Amazon Resource Name (ARN) of the DataSync agent that connects * to and reads from your on-premises storage system's management interface. You * can only specify one ARN.

*/ inline AddStorageSystemRequest& AddAgentArns(const Aws::String& value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(value); return *this; } /** *

Specifies the Amazon Resource Name (ARN) of the DataSync agent that connects * to and reads from your on-premises storage system's management interface. You * can only specify one ARN.

*/ inline AddStorageSystemRequest& AddAgentArns(Aws::String&& value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(std::move(value)); return *this; } /** *

Specifies the Amazon Resource Name (ARN) of the DataSync agent that connects * to and reads from your on-premises storage system's management interface. You * can only specify one ARN.

*/ inline AddStorageSystemRequest& AddAgentArns(const char* value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(value); return *this; } /** *

Specifies the ARN of the Amazon CloudWatch log group for monitoring and * logging discovery job events.

*/ inline const Aws::String& GetCloudWatchLogGroupArn() const{ return m_cloudWatchLogGroupArn; } /** *

Specifies the ARN of the Amazon CloudWatch log group for monitoring and * logging discovery job events.

*/ inline bool CloudWatchLogGroupArnHasBeenSet() const { return m_cloudWatchLogGroupArnHasBeenSet; } /** *

Specifies the ARN of the Amazon CloudWatch log group for monitoring and * logging discovery job events.

*/ inline void SetCloudWatchLogGroupArn(const Aws::String& value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn = value; } /** *

Specifies the ARN of the Amazon CloudWatch log group for monitoring and * logging discovery job events.

*/ inline void SetCloudWatchLogGroupArn(Aws::String&& value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn = std::move(value); } /** *

Specifies the ARN of the Amazon CloudWatch log group for monitoring and * logging discovery job events.

*/ inline void SetCloudWatchLogGroupArn(const char* value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn.assign(value); } /** *

Specifies the ARN of the Amazon CloudWatch log group for monitoring and * logging discovery job events.

*/ inline AddStorageSystemRequest& WithCloudWatchLogGroupArn(const Aws::String& value) { SetCloudWatchLogGroupArn(value); return *this;} /** *

Specifies the ARN of the Amazon CloudWatch log group for monitoring and * logging discovery job events.

*/ inline AddStorageSystemRequest& WithCloudWatchLogGroupArn(Aws::String&& value) { SetCloudWatchLogGroupArn(std::move(value)); return *this;} /** *

Specifies the ARN of the Amazon CloudWatch log group for monitoring and * logging discovery job events.

*/ inline AddStorageSystemRequest& WithCloudWatchLogGroupArn(const char* value) { SetCloudWatchLogGroupArn(value); return *this;} /** *

Specifies labels that help you categorize, filter, and search for your Amazon * Web Services resources. We recommend creating at least a name tag for your * on-premises storage system.

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

Specifies labels that help you categorize, filter, and search for your Amazon * Web Services resources. We recommend creating at least a name tag for your * on-premises storage system.

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

Specifies labels that help you categorize, filter, and search for your Amazon * Web Services resources. We recommend creating at least a name tag for your * on-premises storage system.

*/ 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. We recommend creating at least a name tag for your * on-premises storage system.

*/ 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. We recommend creating at least a name tag for your * on-premises storage system.

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

Specifies labels that help you categorize, filter, and search for your Amazon * Web Services resources. We recommend creating at least a name tag for your * on-premises storage system.

*/ inline AddStorageSystemRequest& 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. We recommend creating at least a name tag for your * on-premises storage system.

*/ inline AddStorageSystemRequest& 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. We recommend creating at least a name tag for your * on-premises storage system.

*/ inline AddStorageSystemRequest& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

Specifies a familiar name for your on-premises storage system.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

Specifies a familiar name for your on-premises storage system.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

Specifies a familiar name for your on-premises storage system.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

Specifies a familiar name for your on-premises storage system.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

Specifies a familiar name for your on-premises storage system.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

Specifies a familiar name for your on-premises storage system.

*/ inline AddStorageSystemRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

Specifies a familiar name for your on-premises storage system.

*/ inline AddStorageSystemRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

Specifies a familiar name for your on-premises storage system.

*/ inline AddStorageSystemRequest& WithName(const char* value) { SetName(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 AddStorageSystemRequest& 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 AddStorageSystemRequest& 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 AddStorageSystemRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

Specifies the user name and password for accessing your on-premises storage * system's management interface.

*/ inline const Credentials& GetCredentials() const{ return m_credentials; } /** *

Specifies the user name and password for accessing your on-premises storage * system's management interface.

*/ inline bool CredentialsHasBeenSet() const { return m_credentialsHasBeenSet; } /** *

Specifies the user name and password for accessing your on-premises storage * system's management interface.

*/ inline void SetCredentials(const Credentials& value) { m_credentialsHasBeenSet = true; m_credentials = value; } /** *

Specifies the user name and password for accessing your on-premises storage * system's management interface.

*/ inline void SetCredentials(Credentials&& value) { m_credentialsHasBeenSet = true; m_credentials = std::move(value); } /** *

Specifies the user name and password for accessing your on-premises storage * system's management interface.

*/ inline AddStorageSystemRequest& WithCredentials(const Credentials& value) { SetCredentials(value); return *this;} /** *

Specifies the user name and password for accessing your on-premises storage * system's management interface.

*/ inline AddStorageSystemRequest& WithCredentials(Credentials&& value) { SetCredentials(std::move(value)); return *this;} private: DiscoveryServerConfiguration m_serverConfiguration; bool m_serverConfigurationHasBeenSet = false; DiscoverySystemType m_systemType; bool m_systemTypeHasBeenSet = false; Aws::Vector m_agentArns; bool m_agentArnsHasBeenSet = false; Aws::String m_cloudWatchLogGroupArn; bool m_cloudWatchLogGroupArnHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Credentials m_credentials; bool m_credentialsHasBeenSet = false; }; } // namespace Model } // namespace DataSync } // namespace Aws