/** * 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 namespace Aws { namespace AppIntegrationsService { namespace Model { /** */ class CreateDataIntegrationRequest : public AppIntegrationsServiceRequest { public: AWS_APPINTEGRATIONSSERVICE_API CreateDataIntegrationRequest(); // 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 "CreateDataIntegration"; } AWS_APPINTEGRATIONSSERVICE_API Aws::String SerializePayload() const override; /** *

The name of the DataIntegration.

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

The name of the DataIntegration.

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

The name of the DataIntegration.

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

The name of the DataIntegration.

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

The name of the DataIntegration.

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

The name of the DataIntegration.

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

The name of the DataIntegration.

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

The name of the DataIntegration.

*/ inline CreateDataIntegrationRequest& WithName(const char* value) { SetName(value); return *this;} /** *

A description of the DataIntegration.

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

A description of the DataIntegration.

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

A description of the DataIntegration.

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

A description of the DataIntegration.

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

A description of the DataIntegration.

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

A description of the DataIntegration.

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

A description of the DataIntegration.

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

A description of the DataIntegration.

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

The KMS key for the DataIntegration.

*/ inline const Aws::String& GetKmsKey() const{ return m_kmsKey; } /** *

The KMS key for the DataIntegration.

*/ inline bool KmsKeyHasBeenSet() const { return m_kmsKeyHasBeenSet; } /** *

The KMS key for the DataIntegration.

*/ inline void SetKmsKey(const Aws::String& value) { m_kmsKeyHasBeenSet = true; m_kmsKey = value; } /** *

The KMS key for the DataIntegration.

*/ inline void SetKmsKey(Aws::String&& value) { m_kmsKeyHasBeenSet = true; m_kmsKey = std::move(value); } /** *

The KMS key for the DataIntegration.

*/ inline void SetKmsKey(const char* value) { m_kmsKeyHasBeenSet = true; m_kmsKey.assign(value); } /** *

The KMS key for the DataIntegration.

*/ inline CreateDataIntegrationRequest& WithKmsKey(const Aws::String& value) { SetKmsKey(value); return *this;} /** *

The KMS key for the DataIntegration.

*/ inline CreateDataIntegrationRequest& WithKmsKey(Aws::String&& value) { SetKmsKey(std::move(value)); return *this;} /** *

The KMS key for the DataIntegration.

*/ inline CreateDataIntegrationRequest& WithKmsKey(const char* value) { SetKmsKey(value); return *this;} /** *

The URI of the data source.

*/ inline const Aws::String& GetSourceURI() const{ return m_sourceURI; } /** *

The URI of the data source.

*/ inline bool SourceURIHasBeenSet() const { return m_sourceURIHasBeenSet; } /** *

The URI of the data source.

*/ inline void SetSourceURI(const Aws::String& value) { m_sourceURIHasBeenSet = true; m_sourceURI = value; } /** *

The URI of the data source.

*/ inline void SetSourceURI(Aws::String&& value) { m_sourceURIHasBeenSet = true; m_sourceURI = std::move(value); } /** *

The URI of the data source.

*/ inline void SetSourceURI(const char* value) { m_sourceURIHasBeenSet = true; m_sourceURI.assign(value); } /** *

The URI of the data source.

*/ inline CreateDataIntegrationRequest& WithSourceURI(const Aws::String& value) { SetSourceURI(value); return *this;} /** *

The URI of the data source.

*/ inline CreateDataIntegrationRequest& WithSourceURI(Aws::String&& value) { SetSourceURI(std::move(value)); return *this;} /** *

The URI of the data source.

*/ inline CreateDataIntegrationRequest& WithSourceURI(const char* value) { SetSourceURI(value); return *this;} /** *

The name of the data and how often it should be pulled from the source.

*/ inline const ScheduleConfiguration& GetScheduleConfig() const{ return m_scheduleConfig; } /** *

The name of the data and how often it should be pulled from the source.

*/ inline bool ScheduleConfigHasBeenSet() const { return m_scheduleConfigHasBeenSet; } /** *

The name of the data and how often it should be pulled from the source.

*/ inline void SetScheduleConfig(const ScheduleConfiguration& value) { m_scheduleConfigHasBeenSet = true; m_scheduleConfig = value; } /** *

The name of the data and how often it should be pulled from the source.

*/ inline void SetScheduleConfig(ScheduleConfiguration&& value) { m_scheduleConfigHasBeenSet = true; m_scheduleConfig = std::move(value); } /** *

The name of the data and how often it should be pulled from the source.

*/ inline CreateDataIntegrationRequest& WithScheduleConfig(const ScheduleConfiguration& value) { SetScheduleConfig(value); return *this;} /** *

The name of the data and how often it should be pulled from the source.

*/ inline CreateDataIntegrationRequest& WithScheduleConfig(ScheduleConfiguration&& value) { SetScheduleConfig(std::move(value)); return *this;} /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

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

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

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

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

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

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

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

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

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

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

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

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline CreateDataIntegrationRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline CreateDataIntegrationRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline CreateDataIntegrationRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline CreateDataIntegrationRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline CreateDataIntegrationRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline CreateDataIntegrationRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline CreateDataIntegrationRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

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

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

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

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

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

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

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

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

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

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

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

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

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

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

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

The configuration for what files should be pulled from the source.

*/ inline const FileConfiguration& GetFileConfiguration() const{ return m_fileConfiguration; } /** *

The configuration for what files should be pulled from the source.

*/ inline bool FileConfigurationHasBeenSet() const { return m_fileConfigurationHasBeenSet; } /** *

The configuration for what files should be pulled from the source.

*/ inline void SetFileConfiguration(const FileConfiguration& value) { m_fileConfigurationHasBeenSet = true; m_fileConfiguration = value; } /** *

The configuration for what files should be pulled from the source.

*/ inline void SetFileConfiguration(FileConfiguration&& value) { m_fileConfigurationHasBeenSet = true; m_fileConfiguration = std::move(value); } /** *

The configuration for what files should be pulled from the source.

*/ inline CreateDataIntegrationRequest& WithFileConfiguration(const FileConfiguration& value) { SetFileConfiguration(value); return *this;} /** *

The configuration for what files should be pulled from the source.

*/ inline CreateDataIntegrationRequest& WithFileConfiguration(FileConfiguration&& value) { SetFileConfiguration(std::move(value)); return *this;} /** *

The configuration for what data should be pulled from the source.

*/ inline const Aws::Map>>& GetObjectConfiguration() const{ return m_objectConfiguration; } /** *

The configuration for what data should be pulled from the source.

*/ inline bool ObjectConfigurationHasBeenSet() const { return m_objectConfigurationHasBeenSet; } /** *

The configuration for what data should be pulled from the source.

*/ inline void SetObjectConfiguration(const Aws::Map>>& value) { m_objectConfigurationHasBeenSet = true; m_objectConfiguration = value; } /** *

The configuration for what data should be pulled from the source.

*/ inline void SetObjectConfiguration(Aws::Map>>&& value) { m_objectConfigurationHasBeenSet = true; m_objectConfiguration = std::move(value); } /** *

The configuration for what data should be pulled from the source.

*/ inline CreateDataIntegrationRequest& WithObjectConfiguration(const Aws::Map>>& value) { SetObjectConfiguration(value); return *this;} /** *

The configuration for what data should be pulled from the source.

*/ inline CreateDataIntegrationRequest& WithObjectConfiguration(Aws::Map>>&& value) { SetObjectConfiguration(std::move(value)); return *this;} /** *

The configuration for what data should be pulled from the source.

*/ inline CreateDataIntegrationRequest& AddObjectConfiguration(const Aws::String& key, const Aws::Map>& value) { m_objectConfigurationHasBeenSet = true; m_objectConfiguration.emplace(key, value); return *this; } /** *

The configuration for what data should be pulled from the source.

*/ inline CreateDataIntegrationRequest& AddObjectConfiguration(Aws::String&& key, const Aws::Map>& value) { m_objectConfigurationHasBeenSet = true; m_objectConfiguration.emplace(std::move(key), value); return *this; } /** *

The configuration for what data should be pulled from the source.

*/ inline CreateDataIntegrationRequest& AddObjectConfiguration(const Aws::String& key, Aws::Map>&& value) { m_objectConfigurationHasBeenSet = true; m_objectConfiguration.emplace(key, std::move(value)); return *this; } /** *

The configuration for what data should be pulled from the source.

*/ inline CreateDataIntegrationRequest& AddObjectConfiguration(Aws::String&& key, Aws::Map>&& value) { m_objectConfigurationHasBeenSet = true; m_objectConfiguration.emplace(std::move(key), std::move(value)); return *this; } /** *

The configuration for what data should be pulled from the source.

*/ inline CreateDataIntegrationRequest& AddObjectConfiguration(const char* key, Aws::Map>&& value) { m_objectConfigurationHasBeenSet = true; m_objectConfiguration.emplace(key, std::move(value)); return *this; } /** *

The configuration for what data should be pulled from the source.

*/ inline CreateDataIntegrationRequest& AddObjectConfiguration(const char* key, const Aws::Map>& value) { m_objectConfigurationHasBeenSet = true; m_objectConfiguration.emplace(key, value); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_kmsKey; bool m_kmsKeyHasBeenSet = false; Aws::String m_sourceURI; bool m_sourceURIHasBeenSet = false; ScheduleConfiguration m_scheduleConfig; bool m_scheduleConfigHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; FileConfiguration m_fileConfiguration; bool m_fileConfigurationHasBeenSet = false; Aws::Map>> m_objectConfiguration; bool m_objectConfigurationHasBeenSet = false; }; } // namespace Model } // namespace AppIntegrationsService } // namespace Aws