diff --git a/VERSION b/VERSION index 17d44f454e6..c71aef4fe7f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.11.259 \ No newline at end of file +1.11.260 \ No newline at end of file diff --git a/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/DataSyncClient.h b/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/DataSyncClient.h index cb2a5df5acc..cb87fdf8b28 100644 --- a/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/DataSyncClient.h +++ b/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/DataSyncClient.h @@ -177,9 +177,9 @@ namespace DataSync } /** - *

Creates an endpoint for a Microsoft Azure Blob Storage container that - * DataSync can use as a transfer source or destination.

Before you begin, - * make sure you know Creates a transfer location for a Microsoft Azure Blob Storage + * container. DataSync can use this location as a transfer source or + * destination.

Before you begin, make sure you know how * DataSync accesses Azure Blob Storage and works with access @@ -212,10 +212,11 @@ namespace DataSync } /** - *

Creates an endpoint for an Amazon EFS file system that DataSync can access - * for a transfer. For more information, see Creating - * a location for Amazon EFS.

See Also:

Creates a transfer location for an Amazon EFS file system. DataSync + * can use this location as a source or destination for transferring data.

+ *

Before you begin, make sure that you understand how DataSync accesses + * Amazon EFS file systems.

See Also:

AWS * API Reference

*/ @@ -240,8 +241,11 @@ namespace DataSync } /** - *

Creates an endpoint for an Amazon FSx for Lustre file system.

See - * Also:

Creates a transfer location for an Amazon FSx for Lustre file system. + * DataSync can use this location as a source or destination for transferring + * data.

Before you begin, make sure that you understand how DataSync accesses + * FSx for Lustre file systems.

See Also:

AWS * API Reference

*/ @@ -266,11 +270,12 @@ namespace DataSync } /** - *

Creates an endpoint for an Amazon FSx for NetApp ONTAP file system that - * DataSync can use for a data transfer.

Before you begin, make sure that - * you understand how DataSync Creates a transfer location for an Amazon FSx for NetApp ONTAP file + * system. DataSync can use this location as a source or destination for + * transferring data.

Before you begin, make sure that you understand how + * DataSync accesses - * an FSx for ONTAP file system.

See Also:

.

See Also:

AWS * API Reference

*/ @@ -295,10 +300,11 @@ namespace DataSync } /** - *

Creates an endpoint for an Amazon FSx for OpenZFS file system that DataSync - * can access for a transfer. For more information, see Creating - * a location for FSx for OpenZFS.

Request parameters related to + *

Creates a transfer location for an Amazon FSx for OpenZFS file system. + * DataSync can use this location as a source or destination for transferring + * data.

Before you begin, make sure that you understand how DataSync accesses + * FSx for OpenZFS file systems.

Request parameters related to * SMB aren't supported with the CreateLocationFsxOpenZfs * operation.

See Also:

AWS @@ -325,11 +331,12 @@ namespace DataSync } /** - *

Creates an endpoint for an Amazon FSx for Windows File Server file system - * that DataSync can use for a data transfer.

Before you begin, make sure - * that you understand how DataSync Creates a transfer location for an Amazon FSx for Windows File Server + * file system. DataSync can use this location as a source or destination for + * transferring data.

Before you begin, make sure that you understand how + * DataSync accesses - * an FSx for Windows File Server.

See Also:

.

See Also:

AWS * API Reference

*/ @@ -354,8 +361,12 @@ namespace DataSync } /** - *

Creates an endpoint for a Hadoop Distributed File System (HDFS). - *

See Also:

Creates a transfer location for a Hadoop Distributed File System + * (HDFS). DataSync can use this location as a source or destination for + * transferring data.

Before you begin, make sure that you understand how + * DataSync accesses + * HDFS clusters.

See Also:

AWS * API Reference

*/ @@ -380,13 +391,14 @@ namespace DataSync } /** - *

Creates an endpoint for a Network File System (NFS) file server that DataSync - * can use for a data transfer.

For more information, see Configuring - * transfers to or from an NFS file server.

If you're copying - * data to or from an Snowcone device, you can also use - * CreateLocationNfs to create your transfer location. For more - * information, see Creates a transfer location for a Network File System (NFS) file + * server. DataSync can use this location as a source or destination for + * transferring data.

Before you begin, make sure that you understand how + * DataSync accesses + * NFS file servers.

If you're copying data to or from an + * Snowcone device, you can also use CreateLocationNfs to create your + * transfer location. For more information, see Configuring * transfers with Snowcone.

See Also:

AWS @@ -413,10 +425,11 @@ namespace DataSync } /** - *

Creates an endpoint for an object storage system that DataSync can access for - * a transfer. For more information, see Creating - * a location for object storage.

See Also:

Creates a transfer location for an object storage system. DataSync can + * use this location as a source or destination for transferring data.

+ *

Before you begin, make sure that you understand the prerequisites + * for DataSync to work with object storage systems.

See Also:

AWS * API Reference

*/ @@ -441,17 +454,17 @@ namespace DataSync } /** - *

A location is an endpoint for an Amazon S3 bucket. DataSync can use - * the location as a source or destination for copying data.

- *

Before you create your location, make sure that you read the following - * sections:

@@ -178,7 +178,7 @@ namespace Model * EQ.

  • LocaleIdEQ.

    *
  • ModalityEQ.

  • * ChannelEQ.

  • - * SessionIdEQ.

  • + * SessionId �� EQ.

  • * OriginatingRequestIdEQ.

  • * UtteranceStateEQ.

  • * UtteranceTextEQ, CO.

  • @@ -195,7 +195,7 @@ namespace Model * EQ.

  • LocaleIdEQ.

    *
  • ModalityEQ.

  • * ChannelEQ.

  • - * SessionIdEQ.

  • + * SessionId �� EQ.

  • * OriginatingRequestIdEQ.

  • * UtteranceStateEQ.

  • * UtteranceTextEQ, CO.

  • @@ -212,7 +212,7 @@ namespace Model * EQ.

  • LocaleIdEQ.

    *
  • ModalityEQ.

  • * ChannelEQ.

  • - * SessionIdEQ.

  • + * SessionId �� EQ.

  • * OriginatingRequestIdEQ.

  • * UtteranceStateEQ.

  • * UtteranceTextEQ, CO.

  • @@ -229,7 +229,7 @@ namespace Model * EQ.

  • LocaleIdEQ.

    *
  • ModalityEQ.

  • * ChannelEQ.

  • - * SessionIdEQ.

  • + * SessionId �� EQ.

  • * OriginatingRequestIdEQ.

  • * UtteranceStateEQ.

  • * UtteranceTextEQ, CO.

  • @@ -246,7 +246,7 @@ namespace Model * EQ.

  • LocaleIdEQ.

    *
  • ModalityEQ.

  • * ChannelEQ.

  • - * SessionIdEQ.

  • + * SessionId �� EQ.

  • * OriginatingRequestIdEQ.

  • * UtteranceStateEQ.

  • * UtteranceTextEQ, CO.

  • diff --git a/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/BotAliasReplicaSummary.h b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/BotAliasReplicaSummary.h new file mode 100644 index 00000000000..b79a1eef103 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/BotAliasReplicaSummary.h @@ -0,0 +1,287 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace LexModelsV2 +{ +namespace Model +{ + + /** + *

    Contains information about all the aliases replication statuses applicable + * for global resiliency.

    See Also:

    AWS + * API Reference

    + */ + class BotAliasReplicaSummary + { + public: + AWS_LEXMODELSV2_API BotAliasReplicaSummary(); + AWS_LEXMODELSV2_API BotAliasReplicaSummary(Aws::Utils::Json::JsonView jsonValue); + AWS_LEXMODELSV2_API BotAliasReplicaSummary& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The bot alias ID for all the alias bot replications.

    + */ + inline const Aws::String& GetBotAliasId() const{ return m_botAliasId; } + + /** + *

    The bot alias ID for all the alias bot replications.

    + */ + inline bool BotAliasIdHasBeenSet() const { return m_botAliasIdHasBeenSet; } + + /** + *

    The bot alias ID for all the alias bot replications.

    + */ + inline void SetBotAliasId(const Aws::String& value) { m_botAliasIdHasBeenSet = true; m_botAliasId = value; } + + /** + *

    The bot alias ID for all the alias bot replications.

    + */ + inline void SetBotAliasId(Aws::String&& value) { m_botAliasIdHasBeenSet = true; m_botAliasId = std::move(value); } + + /** + *

    The bot alias ID for all the alias bot replications.

    + */ + inline void SetBotAliasId(const char* value) { m_botAliasIdHasBeenSet = true; m_botAliasId.assign(value); } + + /** + *

    The bot alias ID for all the alias bot replications.

    + */ + inline BotAliasReplicaSummary& WithBotAliasId(const Aws::String& value) { SetBotAliasId(value); return *this;} + + /** + *

    The bot alias ID for all the alias bot replications.

    + */ + inline BotAliasReplicaSummary& WithBotAliasId(Aws::String&& value) { SetBotAliasId(std::move(value)); return *this;} + + /** + *

    The bot alias ID for all the alias bot replications.

    + */ + inline BotAliasReplicaSummary& WithBotAliasId(const char* value) { SetBotAliasId(value); return *this;} + + + /** + *

    The replication statuses for all the alias bot replications.

    + */ + inline const BotAliasReplicationStatus& GetBotAliasReplicationStatus() const{ return m_botAliasReplicationStatus; } + + /** + *

    The replication statuses for all the alias bot replications.

    + */ + inline bool BotAliasReplicationStatusHasBeenSet() const { return m_botAliasReplicationStatusHasBeenSet; } + + /** + *

    The replication statuses for all the alias bot replications.

    + */ + inline void SetBotAliasReplicationStatus(const BotAliasReplicationStatus& value) { m_botAliasReplicationStatusHasBeenSet = true; m_botAliasReplicationStatus = value; } + + /** + *

    The replication statuses for all the alias bot replications.

    + */ + inline void SetBotAliasReplicationStatus(BotAliasReplicationStatus&& value) { m_botAliasReplicationStatusHasBeenSet = true; m_botAliasReplicationStatus = std::move(value); } + + /** + *

    The replication statuses for all the alias bot replications.

    + */ + inline BotAliasReplicaSummary& WithBotAliasReplicationStatus(const BotAliasReplicationStatus& value) { SetBotAliasReplicationStatus(value); return *this;} + + /** + *

    The replication statuses for all the alias bot replications.

    + */ + inline BotAliasReplicaSummary& WithBotAliasReplicationStatus(BotAliasReplicationStatus&& value) { SetBotAliasReplicationStatus(std::move(value)); return *this;} + + + /** + *

    The bot version for all the alias bot replications.

    + */ + inline const Aws::String& GetBotVersion() const{ return m_botVersion; } + + /** + *

    The bot version for all the alias bot replications.

    + */ + inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; } + + /** + *

    The bot version for all the alias bot replications.

    + */ + inline void SetBotVersion(const Aws::String& value) { m_botVersionHasBeenSet = true; m_botVersion = value; } + + /** + *

    The bot version for all the alias bot replications.

    + */ + inline void SetBotVersion(Aws::String&& value) { m_botVersionHasBeenSet = true; m_botVersion = std::move(value); } + + /** + *

    The bot version for all the alias bot replications.

    + */ + inline void SetBotVersion(const char* value) { m_botVersionHasBeenSet = true; m_botVersion.assign(value); } + + /** + *

    The bot version for all the alias bot replications.

    + */ + inline BotAliasReplicaSummary& WithBotVersion(const Aws::String& value) { SetBotVersion(value); return *this;} + + /** + *

    The bot version for all the alias bot replications.

    + */ + inline BotAliasReplicaSummary& WithBotVersion(Aws::String&& value) { SetBotVersion(std::move(value)); return *this;} + + /** + *

    The bot version for all the alias bot replications.

    + */ + inline BotAliasReplicaSummary& WithBotVersion(const char* value) { SetBotVersion(value); return *this;} + + + /** + *

    The creation time and date for all the alias bot replications.

    + */ + inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; } + + /** + *

    The creation time and date for all the alias bot replications.

    + */ + inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; } + + /** + *

    The creation time and date for all the alias bot replications.

    + */ + inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; } + + /** + *

    The creation time and date for all the alias bot replications.

    + */ + inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); } + + /** + *

    The creation time and date for all the alias bot replications.

    + */ + inline BotAliasReplicaSummary& WithCreationDateTime(const Aws::Utils::DateTime& value) { SetCreationDateTime(value); return *this;} + + /** + *

    The creation time and date for all the alias bot replications.

    + */ + inline BotAliasReplicaSummary& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;} + + + /** + *

    The last time and date updated for all the alias bot replications.

    + */ + inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const{ return m_lastUpdatedDateTime; } + + /** + *

    The last time and date updated for all the alias bot replications.

    + */ + inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; } + + /** + *

    The last time and date updated for all the alias bot replications.

    + */ + inline void SetLastUpdatedDateTime(const Aws::Utils::DateTime& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = value; } + + /** + *

    The last time and date updated for all the alias bot replications.

    + */ + inline void SetLastUpdatedDateTime(Aws::Utils::DateTime&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::move(value); } + + /** + *

    The last time and date updated for all the alias bot replications.

    + */ + inline BotAliasReplicaSummary& WithLastUpdatedDateTime(const Aws::Utils::DateTime& value) { SetLastUpdatedDateTime(value); return *this;} + + /** + *

    The last time and date updated for all the alias bot replications.

    + */ + inline BotAliasReplicaSummary& WithLastUpdatedDateTime(Aws::Utils::DateTime&& value) { SetLastUpdatedDateTime(std::move(value)); return *this;} + + + /** + *

    The reasons for failure for the aliases bot replications.

    + */ + inline const Aws::Vector& GetFailureReasons() const{ return m_failureReasons; } + + /** + *

    The reasons for failure for the aliases bot replications.

    + */ + inline bool FailureReasonsHasBeenSet() const { return m_failureReasonsHasBeenSet; } + + /** + *

    The reasons for failure for the aliases bot replications.

    + */ + inline void SetFailureReasons(const Aws::Vector& value) { m_failureReasonsHasBeenSet = true; m_failureReasons = value; } + + /** + *

    The reasons for failure for the aliases bot replications.

    + */ + inline void SetFailureReasons(Aws::Vector&& value) { m_failureReasonsHasBeenSet = true; m_failureReasons = std::move(value); } + + /** + *

    The reasons for failure for the aliases bot replications.

    + */ + inline BotAliasReplicaSummary& WithFailureReasons(const Aws::Vector& value) { SetFailureReasons(value); return *this;} + + /** + *

    The reasons for failure for the aliases bot replications.

    + */ + inline BotAliasReplicaSummary& WithFailureReasons(Aws::Vector&& value) { SetFailureReasons(std::move(value)); return *this;} + + /** + *

    The reasons for failure for the aliases bot replications.

    + */ + inline BotAliasReplicaSummary& AddFailureReasons(const Aws::String& value) { m_failureReasonsHasBeenSet = true; m_failureReasons.push_back(value); return *this; } + + /** + *

    The reasons for failure for the aliases bot replications.

    + */ + inline BotAliasReplicaSummary& AddFailureReasons(Aws::String&& value) { m_failureReasonsHasBeenSet = true; m_failureReasons.push_back(std::move(value)); return *this; } + + /** + *

    The reasons for failure for the aliases bot replications.

    + */ + inline BotAliasReplicaSummary& AddFailureReasons(const char* value) { m_failureReasonsHasBeenSet = true; m_failureReasons.push_back(value); return *this; } + + private: + + Aws::String m_botAliasId; + bool m_botAliasIdHasBeenSet = false; + + BotAliasReplicationStatus m_botAliasReplicationStatus; + bool m_botAliasReplicationStatusHasBeenSet = false; + + Aws::String m_botVersion; + bool m_botVersionHasBeenSet = false; + + Aws::Utils::DateTime m_creationDateTime; + bool m_creationDateTimeHasBeenSet = false; + + Aws::Utils::DateTime m_lastUpdatedDateTime; + bool m_lastUpdatedDateTimeHasBeenSet = false; + + Aws::Vector m_failureReasons; + bool m_failureReasonsHasBeenSet = false; + }; + +} // namespace Model +} // namespace LexModelsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/BotAliasReplicationStatus.h b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/BotAliasReplicationStatus.h new file mode 100644 index 00000000000..8a308995005 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/BotAliasReplicationStatus.h @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace LexModelsV2 +{ +namespace Model +{ + enum class BotAliasReplicationStatus + { + NOT_SET, + Creating, + Updating, + Available, + Deleting, + Failed + }; + +namespace BotAliasReplicationStatusMapper +{ +AWS_LEXMODELSV2_API BotAliasReplicationStatus GetBotAliasReplicationStatusForName(const Aws::String& name); + +AWS_LEXMODELSV2_API Aws::String GetNameForBotAliasReplicationStatus(BotAliasReplicationStatus value); +} // namespace BotAliasReplicationStatusMapper +} // namespace Model +} // namespace LexModelsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/BotReplicaStatus.h b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/BotReplicaStatus.h new file mode 100644 index 00000000000..03948ca074e --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/BotReplicaStatus.h @@ -0,0 +1,33 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace LexModelsV2 +{ +namespace Model +{ + enum class BotReplicaStatus + { + NOT_SET, + Enabling, + Enabled, + Deleting, + Failed + }; + +namespace BotReplicaStatusMapper +{ +AWS_LEXMODELSV2_API BotReplicaStatus GetBotReplicaStatusForName(const Aws::String& name); + +AWS_LEXMODELSV2_API Aws::String GetNameForBotReplicaStatus(BotReplicaStatus value); +} // namespace BotReplicaStatusMapper +} // namespace Model +} // namespace LexModelsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/BotReplicaSummary.h b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/BotReplicaSummary.h new file mode 100644 index 00000000000..710a774a2bf --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/BotReplicaSummary.h @@ -0,0 +1,209 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace LexModelsV2 +{ +namespace Model +{ + + /** + *

    Contains summary information about all the replication statuses applicable + * for global resiliency.

    See Also:

    AWS + * API Reference

    + */ + class BotReplicaSummary + { + public: + AWS_LEXMODELSV2_API BotReplicaSummary(); + AWS_LEXMODELSV2_API BotReplicaSummary(Aws::Utils::Json::JsonView jsonValue); + AWS_LEXMODELSV2_API BotReplicaSummary& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The replica region used in the replication statuses summary.

    + */ + inline const Aws::String& GetReplicaRegion() const{ return m_replicaRegion; } + + /** + *

    The replica region used in the replication statuses summary.

    + */ + inline bool ReplicaRegionHasBeenSet() const { return m_replicaRegionHasBeenSet; } + + /** + *

    The replica region used in the replication statuses summary.

    + */ + inline void SetReplicaRegion(const Aws::String& value) { m_replicaRegionHasBeenSet = true; m_replicaRegion = value; } + + /** + *

    The replica region used in the replication statuses summary.

    + */ + inline void SetReplicaRegion(Aws::String&& value) { m_replicaRegionHasBeenSet = true; m_replicaRegion = std::move(value); } + + /** + *

    The replica region used in the replication statuses summary.

    + */ + inline void SetReplicaRegion(const char* value) { m_replicaRegionHasBeenSet = true; m_replicaRegion.assign(value); } + + /** + *

    The replica region used in the replication statuses summary.

    + */ + inline BotReplicaSummary& WithReplicaRegion(const Aws::String& value) { SetReplicaRegion(value); return *this;} + + /** + *

    The replica region used in the replication statuses summary.

    + */ + inline BotReplicaSummary& WithReplicaRegion(Aws::String&& value) { SetReplicaRegion(std::move(value)); return *this;} + + /** + *

    The replica region used in the replication statuses summary.

    + */ + inline BotReplicaSummary& WithReplicaRegion(const char* value) { SetReplicaRegion(value); return *this;} + + + /** + *

    The creation time and date for the replicated bots.

    + */ + inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; } + + /** + *

    The creation time and date for the replicated bots.

    + */ + inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; } + + /** + *

    The creation time and date for the replicated bots.

    + */ + inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; } + + /** + *

    The creation time and date for the replicated bots.

    + */ + inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); } + + /** + *

    The creation time and date for the replicated bots.

    + */ + inline BotReplicaSummary& WithCreationDateTime(const Aws::Utils::DateTime& value) { SetCreationDateTime(value); return *this;} + + /** + *

    The creation time and date for the replicated bots.

    + */ + inline BotReplicaSummary& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;} + + + /** + *

    The operation status for the replicated bot applicable.

    + */ + inline const BotReplicaStatus& GetBotReplicaStatus() const{ return m_botReplicaStatus; } + + /** + *

    The operation status for the replicated bot applicable.

    + */ + inline bool BotReplicaStatusHasBeenSet() const { return m_botReplicaStatusHasBeenSet; } + + /** + *

    The operation status for the replicated bot applicable.

    + */ + inline void SetBotReplicaStatus(const BotReplicaStatus& value) { m_botReplicaStatusHasBeenSet = true; m_botReplicaStatus = value; } + + /** + *

    The operation status for the replicated bot applicable.

    + */ + inline void SetBotReplicaStatus(BotReplicaStatus&& value) { m_botReplicaStatusHasBeenSet = true; m_botReplicaStatus = std::move(value); } + + /** + *

    The operation status for the replicated bot applicable.

    + */ + inline BotReplicaSummary& WithBotReplicaStatus(const BotReplicaStatus& value) { SetBotReplicaStatus(value); return *this;} + + /** + *

    The operation status for the replicated bot applicable.

    + */ + inline BotReplicaSummary& WithBotReplicaStatus(BotReplicaStatus&& value) { SetBotReplicaStatus(std::move(value)); return *this;} + + + /** + *

    The reasons for the failure for the replicated bot.

    + */ + inline const Aws::Vector& GetFailureReasons() const{ return m_failureReasons; } + + /** + *

    The reasons for the failure for the replicated bot.

    + */ + inline bool FailureReasonsHasBeenSet() const { return m_failureReasonsHasBeenSet; } + + /** + *

    The reasons for the failure for the replicated bot.

    + */ + inline void SetFailureReasons(const Aws::Vector& value) { m_failureReasonsHasBeenSet = true; m_failureReasons = value; } + + /** + *

    The reasons for the failure for the replicated bot.

    + */ + inline void SetFailureReasons(Aws::Vector&& value) { m_failureReasonsHasBeenSet = true; m_failureReasons = std::move(value); } + + /** + *

    The reasons for the failure for the replicated bot.

    + */ + inline BotReplicaSummary& WithFailureReasons(const Aws::Vector& value) { SetFailureReasons(value); return *this;} + + /** + *

    The reasons for the failure for the replicated bot.

    + */ + inline BotReplicaSummary& WithFailureReasons(Aws::Vector&& value) { SetFailureReasons(std::move(value)); return *this;} + + /** + *

    The reasons for the failure for the replicated bot.

    + */ + inline BotReplicaSummary& AddFailureReasons(const Aws::String& value) { m_failureReasonsHasBeenSet = true; m_failureReasons.push_back(value); return *this; } + + /** + *

    The reasons for the failure for the replicated bot.

    + */ + inline BotReplicaSummary& AddFailureReasons(Aws::String&& value) { m_failureReasonsHasBeenSet = true; m_failureReasons.push_back(std::move(value)); return *this; } + + /** + *

    The reasons for the failure for the replicated bot.

    + */ + inline BotReplicaSummary& AddFailureReasons(const char* value) { m_failureReasonsHasBeenSet = true; m_failureReasons.push_back(value); return *this; } + + private: + + Aws::String m_replicaRegion; + bool m_replicaRegionHasBeenSet = false; + + Aws::Utils::DateTime m_creationDateTime; + bool m_creationDateTimeHasBeenSet = false; + + BotReplicaStatus m_botReplicaStatus; + bool m_botReplicaStatusHasBeenSet = false; + + Aws::Vector m_failureReasons; + bool m_failureReasonsHasBeenSet = false; + }; + +} // namespace Model +} // namespace LexModelsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/BotVersionReplicaSortAttribute.h b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/BotVersionReplicaSortAttribute.h new file mode 100644 index 00000000000..d4e4369150e --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/BotVersionReplicaSortAttribute.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace LexModelsV2 +{ +namespace Model +{ + enum class BotVersionReplicaSortAttribute + { + NOT_SET, + BotVersion + }; + +namespace BotVersionReplicaSortAttributeMapper +{ +AWS_LEXMODELSV2_API BotVersionReplicaSortAttribute GetBotVersionReplicaSortAttributeForName(const Aws::String& name); + +AWS_LEXMODELSV2_API Aws::String GetNameForBotVersionReplicaSortAttribute(BotVersionReplicaSortAttribute value); +} // namespace BotVersionReplicaSortAttributeMapper +} // namespace Model +} // namespace LexModelsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/BotVersionReplicaSortBy.h b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/BotVersionReplicaSortBy.h new file mode 100644 index 00000000000..ce0d9713803 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/BotVersionReplicaSortBy.h @@ -0,0 +1,114 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace LexModelsV2 +{ +namespace Model +{ + + /** + *

    The sort category for the version replicated bots.

    See Also:

    + * AWS + * API Reference

    + */ + class BotVersionReplicaSortBy + { + public: + AWS_LEXMODELSV2_API BotVersionReplicaSortBy(); + AWS_LEXMODELSV2_API BotVersionReplicaSortBy(Aws::Utils::Json::JsonView jsonValue); + AWS_LEXMODELSV2_API BotVersionReplicaSortBy& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The attribute of the sort category for the version replicated bots.

    + */ + inline const BotVersionReplicaSortAttribute& GetAttribute() const{ return m_attribute; } + + /** + *

    The attribute of the sort category for the version replicated bots.

    + */ + inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; } + + /** + *

    The attribute of the sort category for the version replicated bots.

    + */ + inline void SetAttribute(const BotVersionReplicaSortAttribute& value) { m_attributeHasBeenSet = true; m_attribute = value; } + + /** + *

    The attribute of the sort category for the version replicated bots.

    + */ + inline void SetAttribute(BotVersionReplicaSortAttribute&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); } + + /** + *

    The attribute of the sort category for the version replicated bots.

    + */ + inline BotVersionReplicaSortBy& WithAttribute(const BotVersionReplicaSortAttribute& value) { SetAttribute(value); return *this;} + + /** + *

    The attribute of the sort category for the version replicated bots.

    + */ + inline BotVersionReplicaSortBy& WithAttribute(BotVersionReplicaSortAttribute&& value) { SetAttribute(std::move(value)); return *this;} + + + /** + *

    The order of the sort category for the version replicated bots.

    + */ + inline const SortOrder& GetOrder() const{ return m_order; } + + /** + *

    The order of the sort category for the version replicated bots.

    + */ + inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; } + + /** + *

    The order of the sort category for the version replicated bots.

    + */ + inline void SetOrder(const SortOrder& value) { m_orderHasBeenSet = true; m_order = value; } + + /** + *

    The order of the sort category for the version replicated bots.

    + */ + inline void SetOrder(SortOrder&& value) { m_orderHasBeenSet = true; m_order = std::move(value); } + + /** + *

    The order of the sort category for the version replicated bots.

    + */ + inline BotVersionReplicaSortBy& WithOrder(const SortOrder& value) { SetOrder(value); return *this;} + + /** + *

    The order of the sort category for the version replicated bots.

    + */ + inline BotVersionReplicaSortBy& WithOrder(SortOrder&& value) { SetOrder(std::move(value)); return *this;} + + private: + + BotVersionReplicaSortAttribute m_attribute; + bool m_attributeHasBeenSet = false; + + SortOrder m_order; + bool m_orderHasBeenSet = false; + }; + +} // namespace Model +} // namespace LexModelsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/BotVersionReplicaSummary.h b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/BotVersionReplicaSummary.h new file mode 100644 index 00000000000..4b36b1135f4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/BotVersionReplicaSummary.h @@ -0,0 +1,223 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace LexModelsV2 +{ +namespace Model +{ + + /** + *

    Contains summary information for all the version replication statuses + * applicable for Global resiliency.

    See Also:

    AWS + * API Reference

    + */ + class BotVersionReplicaSummary + { + public: + AWS_LEXMODELSV2_API BotVersionReplicaSummary(); + AWS_LEXMODELSV2_API BotVersionReplicaSummary(Aws::Utils::Json::JsonView jsonValue); + AWS_LEXMODELSV2_API BotVersionReplicaSummary& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The bot version for the summary information for all the version replication + * statuses.

    + */ + inline const Aws::String& GetBotVersion() const{ return m_botVersion; } + + /** + *

    The bot version for the summary information for all the version replication + * statuses.

    + */ + inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; } + + /** + *

    The bot version for the summary information for all the version replication + * statuses.

    + */ + inline void SetBotVersion(const Aws::String& value) { m_botVersionHasBeenSet = true; m_botVersion = value; } + + /** + *

    The bot version for the summary information for all the version replication + * statuses.

    + */ + inline void SetBotVersion(Aws::String&& value) { m_botVersionHasBeenSet = true; m_botVersion = std::move(value); } + + /** + *

    The bot version for the summary information for all the version replication + * statuses.

    + */ + inline void SetBotVersion(const char* value) { m_botVersionHasBeenSet = true; m_botVersion.assign(value); } + + /** + *

    The bot version for the summary information for all the version replication + * statuses.

    + */ + inline BotVersionReplicaSummary& WithBotVersion(const Aws::String& value) { SetBotVersion(value); return *this;} + + /** + *

    The bot version for the summary information for all the version replication + * statuses.

    + */ + inline BotVersionReplicaSummary& WithBotVersion(Aws::String&& value) { SetBotVersion(std::move(value)); return *this;} + + /** + *

    The bot version for the summary information for all the version replication + * statuses.

    + */ + inline BotVersionReplicaSummary& WithBotVersion(const char* value) { SetBotVersion(value); return *this;} + + + /** + *

    The version replication status for all the replicated bots.

    + */ + inline const BotVersionReplicationStatus& GetBotVersionReplicationStatus() const{ return m_botVersionReplicationStatus; } + + /** + *

    The version replication status for all the replicated bots.

    + */ + inline bool BotVersionReplicationStatusHasBeenSet() const { return m_botVersionReplicationStatusHasBeenSet; } + + /** + *

    The version replication status for all the replicated bots.

    + */ + inline void SetBotVersionReplicationStatus(const BotVersionReplicationStatus& value) { m_botVersionReplicationStatusHasBeenSet = true; m_botVersionReplicationStatus = value; } + + /** + *

    The version replication status for all the replicated bots.

    + */ + inline void SetBotVersionReplicationStatus(BotVersionReplicationStatus&& value) { m_botVersionReplicationStatusHasBeenSet = true; m_botVersionReplicationStatus = std::move(value); } + + /** + *

    The version replication status for all the replicated bots.

    + */ + inline BotVersionReplicaSummary& WithBotVersionReplicationStatus(const BotVersionReplicationStatus& value) { SetBotVersionReplicationStatus(value); return *this;} + + /** + *

    The version replication status for all the replicated bots.

    + */ + inline BotVersionReplicaSummary& WithBotVersionReplicationStatus(BotVersionReplicationStatus&& value) { SetBotVersionReplicationStatus(std::move(value)); return *this;} + + + /** + *

    The creation date and time of the replication status for all the replicated + * bots.

    + */ + inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; } + + /** + *

    The creation date and time of the replication status for all the replicated + * bots.

    + */ + inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; } + + /** + *

    The creation date and time of the replication status for all the replicated + * bots.

    + */ + inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; } + + /** + *

    The creation date and time of the replication status for all the replicated + * bots.

    + */ + inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); } + + /** + *

    The creation date and time of the replication status for all the replicated + * bots.

    + */ + inline BotVersionReplicaSummary& WithCreationDateTime(const Aws::Utils::DateTime& value) { SetCreationDateTime(value); return *this;} + + /** + *

    The creation date and time of the replication status for all the replicated + * bots.

    + */ + inline BotVersionReplicaSummary& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;} + + + /** + *

    The reasons for replication failure for all the replicated bots.

    + */ + inline const Aws::Vector& GetFailureReasons() const{ return m_failureReasons; } + + /** + *

    The reasons for replication failure for all the replicated bots.

    + */ + inline bool FailureReasonsHasBeenSet() const { return m_failureReasonsHasBeenSet; } + + /** + *

    The reasons for replication failure for all the replicated bots.

    + */ + inline void SetFailureReasons(const Aws::Vector& value) { m_failureReasonsHasBeenSet = true; m_failureReasons = value; } + + /** + *

    The reasons for replication failure for all the replicated bots.

    + */ + inline void SetFailureReasons(Aws::Vector&& value) { m_failureReasonsHasBeenSet = true; m_failureReasons = std::move(value); } + + /** + *

    The reasons for replication failure for all the replicated bots.

    + */ + inline BotVersionReplicaSummary& WithFailureReasons(const Aws::Vector& value) { SetFailureReasons(value); return *this;} + + /** + *

    The reasons for replication failure for all the replicated bots.

    + */ + inline BotVersionReplicaSummary& WithFailureReasons(Aws::Vector&& value) { SetFailureReasons(std::move(value)); return *this;} + + /** + *

    The reasons for replication failure for all the replicated bots.

    + */ + inline BotVersionReplicaSummary& AddFailureReasons(const Aws::String& value) { m_failureReasonsHasBeenSet = true; m_failureReasons.push_back(value); return *this; } + + /** + *

    The reasons for replication failure for all the replicated bots.

    + */ + inline BotVersionReplicaSummary& AddFailureReasons(Aws::String&& value) { m_failureReasonsHasBeenSet = true; m_failureReasons.push_back(std::move(value)); return *this; } + + /** + *

    The reasons for replication failure for all the replicated bots.

    + */ + inline BotVersionReplicaSummary& AddFailureReasons(const char* value) { m_failureReasonsHasBeenSet = true; m_failureReasons.push_back(value); return *this; } + + private: + + Aws::String m_botVersion; + bool m_botVersionHasBeenSet = false; + + BotVersionReplicationStatus m_botVersionReplicationStatus; + bool m_botVersionReplicationStatusHasBeenSet = false; + + Aws::Utils::DateTime m_creationDateTime; + bool m_creationDateTimeHasBeenSet = false; + + Aws::Vector m_failureReasons; + bool m_failureReasonsHasBeenSet = false; + }; + +} // namespace Model +} // namespace LexModelsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/BotVersionReplicationStatus.h b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/BotVersionReplicationStatus.h new file mode 100644 index 00000000000..15148a9e657 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/BotVersionReplicationStatus.h @@ -0,0 +1,33 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace LexModelsV2 +{ +namespace Model +{ + enum class BotVersionReplicationStatus + { + NOT_SET, + Creating, + Available, + Deleting, + Failed + }; + +namespace BotVersionReplicationStatusMapper +{ +AWS_LEXMODELSV2_API BotVersionReplicationStatus GetBotVersionReplicationStatusForName(const Aws::String& name); + +AWS_LEXMODELSV2_API Aws::String GetNameForBotVersionReplicationStatus(BotVersionReplicationStatus value); +} // namespace BotVersionReplicationStatusMapper +} // namespace Model +} // namespace LexModelsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/CreateBotReplicaRequest.h b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/CreateBotReplicaRequest.h new file mode 100644 index 00000000000..3211dfe0d25 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/CreateBotReplicaRequest.h @@ -0,0 +1,143 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace LexModelsV2 +{ +namespace Model +{ + + /** + */ + class CreateBotReplicaRequest : public LexModelsV2Request + { + public: + AWS_LEXMODELSV2_API CreateBotReplicaRequest(); + + // 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 "CreateBotReplica"; } + + AWS_LEXMODELSV2_API Aws::String SerializePayload() const override; + + + /** + *

    The request for the unique bot ID of the source bot to be replicated in the + * secondary region.

    + */ + inline const Aws::String& GetBotId() const{ return m_botId; } + + /** + *

    The request for the unique bot ID of the source bot to be replicated in the + * secondary region.

    + */ + inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; } + + /** + *

    The request for the unique bot ID of the source bot to be replicated in the + * secondary region.

    + */ + inline void SetBotId(const Aws::String& value) { m_botIdHasBeenSet = true; m_botId = value; } + + /** + *

    The request for the unique bot ID of the source bot to be replicated in the + * secondary region.

    + */ + inline void SetBotId(Aws::String&& value) { m_botIdHasBeenSet = true; m_botId = std::move(value); } + + /** + *

    The request for the unique bot ID of the source bot to be replicated in the + * secondary region.

    + */ + inline void SetBotId(const char* value) { m_botIdHasBeenSet = true; m_botId.assign(value); } + + /** + *

    The request for the unique bot ID of the source bot to be replicated in the + * secondary region.

    + */ + inline CreateBotReplicaRequest& WithBotId(const Aws::String& value) { SetBotId(value); return *this;} + + /** + *

    The request for the unique bot ID of the source bot to be replicated in the + * secondary region.

    + */ + inline CreateBotReplicaRequest& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;} + + /** + *

    The request for the unique bot ID of the source bot to be replicated in the + * secondary region.

    + */ + inline CreateBotReplicaRequest& WithBotId(const char* value) { SetBotId(value); return *this;} + + + /** + *

    The request for the secondary region that will be used in the replication of + * the source bot.

    + */ + inline const Aws::String& GetReplicaRegion() const{ return m_replicaRegion; } + + /** + *

    The request for the secondary region that will be used in the replication of + * the source bot.

    + */ + inline bool ReplicaRegionHasBeenSet() const { return m_replicaRegionHasBeenSet; } + + /** + *

    The request for the secondary region that will be used in the replication of + * the source bot.

    + */ + inline void SetReplicaRegion(const Aws::String& value) { m_replicaRegionHasBeenSet = true; m_replicaRegion = value; } + + /** + *

    The request for the secondary region that will be used in the replication of + * the source bot.

    + */ + inline void SetReplicaRegion(Aws::String&& value) { m_replicaRegionHasBeenSet = true; m_replicaRegion = std::move(value); } + + /** + *

    The request for the secondary region that will be used in the replication of + * the source bot.

    + */ + inline void SetReplicaRegion(const char* value) { m_replicaRegionHasBeenSet = true; m_replicaRegion.assign(value); } + + /** + *

    The request for the secondary region that will be used in the replication of + * the source bot.

    + */ + inline CreateBotReplicaRequest& WithReplicaRegion(const Aws::String& value) { SetReplicaRegion(value); return *this;} + + /** + *

    The request for the secondary region that will be used in the replication of + * the source bot.

    + */ + inline CreateBotReplicaRequest& WithReplicaRegion(Aws::String&& value) { SetReplicaRegion(std::move(value)); return *this;} + + /** + *

    The request for the secondary region that will be used in the replication of + * the source bot.

    + */ + inline CreateBotReplicaRequest& WithReplicaRegion(const char* value) { SetReplicaRegion(value); return *this;} + + private: + + Aws::String m_botId; + bool m_botIdHasBeenSet = false; + + Aws::String m_replicaRegion; + bool m_replicaRegionHasBeenSet = false; + }; + +} // namespace Model +} // namespace LexModelsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/CreateBotReplicaResult.h b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/CreateBotReplicaResult.h new file mode 100644 index 00000000000..8399722004b --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/CreateBotReplicaResult.h @@ -0,0 +1,242 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace LexModelsV2 +{ +namespace Model +{ + class CreateBotReplicaResult + { + public: + AWS_LEXMODELSV2_API CreateBotReplicaResult(); + AWS_LEXMODELSV2_API CreateBotReplicaResult(const Aws::AmazonWebServiceResult& result); + AWS_LEXMODELSV2_API CreateBotReplicaResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The unique bot ID of the replicated bot generated.

    + */ + inline const Aws::String& GetBotId() const{ return m_botId; } + + /** + *

    The unique bot ID of the replicated bot generated.

    + */ + inline void SetBotId(const Aws::String& value) { m_botId = value; } + + /** + *

    The unique bot ID of the replicated bot generated.

    + */ + inline void SetBotId(Aws::String&& value) { m_botId = std::move(value); } + + /** + *

    The unique bot ID of the replicated bot generated.

    + */ + inline void SetBotId(const char* value) { m_botId.assign(value); } + + /** + *

    The unique bot ID of the replicated bot generated.

    + */ + inline CreateBotReplicaResult& WithBotId(const Aws::String& value) { SetBotId(value); return *this;} + + /** + *

    The unique bot ID of the replicated bot generated.

    + */ + inline CreateBotReplicaResult& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;} + + /** + *

    The unique bot ID of the replicated bot generated.

    + */ + inline CreateBotReplicaResult& WithBotId(const char* value) { SetBotId(value); return *this;} + + + /** + *

    The region of the replicated bot generated.

    + */ + inline const Aws::String& GetReplicaRegion() const{ return m_replicaRegion; } + + /** + *

    The region of the replicated bot generated.

    + */ + inline void SetReplicaRegion(const Aws::String& value) { m_replicaRegion = value; } + + /** + *

    The region of the replicated bot generated.

    + */ + inline void SetReplicaRegion(Aws::String&& value) { m_replicaRegion = std::move(value); } + + /** + *

    The region of the replicated bot generated.

    + */ + inline void SetReplicaRegion(const char* value) { m_replicaRegion.assign(value); } + + /** + *

    The region of the replicated bot generated.

    + */ + inline CreateBotReplicaResult& WithReplicaRegion(const Aws::String& value) { SetReplicaRegion(value); return *this;} + + /** + *

    The region of the replicated bot generated.

    + */ + inline CreateBotReplicaResult& WithReplicaRegion(Aws::String&& value) { SetReplicaRegion(std::move(value)); return *this;} + + /** + *

    The region of the replicated bot generated.

    + */ + inline CreateBotReplicaResult& WithReplicaRegion(const char* value) { SetReplicaRegion(value); return *this;} + + + /** + *

    The source region for the source bot used for the replicated bot + * generated.

    + */ + inline const Aws::String& GetSourceRegion() const{ return m_sourceRegion; } + + /** + *

    The source region for the source bot used for the replicated bot + * generated.

    + */ + inline void SetSourceRegion(const Aws::String& value) { m_sourceRegion = value; } + + /** + *

    The source region for the source bot used for the replicated bot + * generated.

    + */ + inline void SetSourceRegion(Aws::String&& value) { m_sourceRegion = std::move(value); } + + /** + *

    The source region for the source bot used for the replicated bot + * generated.

    + */ + inline void SetSourceRegion(const char* value) { m_sourceRegion.assign(value); } + + /** + *

    The source region for the source bot used for the replicated bot + * generated.

    + */ + inline CreateBotReplicaResult& WithSourceRegion(const Aws::String& value) { SetSourceRegion(value); return *this;} + + /** + *

    The source region for the source bot used for the replicated bot + * generated.

    + */ + inline CreateBotReplicaResult& WithSourceRegion(Aws::String&& value) { SetSourceRegion(std::move(value)); return *this;} + + /** + *

    The source region for the source bot used for the replicated bot + * generated.

    + */ + inline CreateBotReplicaResult& WithSourceRegion(const char* value) { SetSourceRegion(value); return *this;} + + + /** + *

    The creation date and time of the replicated bot generated.

    + */ + inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; } + + /** + *

    The creation date and time of the replicated bot generated.

    + */ + inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTime = value; } + + /** + *

    The creation date and time of the replicated bot generated.

    + */ + inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTime = std::move(value); } + + /** + *

    The creation date and time of the replicated bot generated.

    + */ + inline CreateBotReplicaResult& WithCreationDateTime(const Aws::Utils::DateTime& value) { SetCreationDateTime(value); return *this;} + + /** + *

    The creation date and time of the replicated bot generated.

    + */ + inline CreateBotReplicaResult& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;} + + + /** + *

    The operational status of the replicated bot generated.

    + */ + inline const BotReplicaStatus& GetBotReplicaStatus() const{ return m_botReplicaStatus; } + + /** + *

    The operational status of the replicated bot generated.

    + */ + inline void SetBotReplicaStatus(const BotReplicaStatus& value) { m_botReplicaStatus = value; } + + /** + *

    The operational status of the replicated bot generated.

    + */ + inline void SetBotReplicaStatus(BotReplicaStatus&& value) { m_botReplicaStatus = std::move(value); } + + /** + *

    The operational status of the replicated bot generated.

    + */ + inline CreateBotReplicaResult& WithBotReplicaStatus(const BotReplicaStatus& value) { SetBotReplicaStatus(value); return *this;} + + /** + *

    The operational status of the replicated bot generated.

    + */ + inline CreateBotReplicaResult& WithBotReplicaStatus(BotReplicaStatus&& value) { SetBotReplicaStatus(std::move(value)); return *this;} + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline CreateBotReplicaResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline CreateBotReplicaResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline CreateBotReplicaResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_botId; + + Aws::String m_replicaRegion; + + Aws::String m_sourceRegion; + + Aws::Utils::DateTime m_creationDateTime; + + BotReplicaStatus m_botReplicaStatus; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace LexModelsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/DeleteBotReplicaRequest.h b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/DeleteBotReplicaRequest.h new file mode 100644 index 00000000000..f339a02c634 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/DeleteBotReplicaRequest.h @@ -0,0 +1,135 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace LexModelsV2 +{ +namespace Model +{ + + /** + */ + class DeleteBotReplicaRequest : public LexModelsV2Request + { + public: + AWS_LEXMODELSV2_API DeleteBotReplicaRequest(); + + // 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 "DeleteBotReplica"; } + + AWS_LEXMODELSV2_API Aws::String SerializePayload() const override; + + + /** + *

    The unique ID of the replicated bot to be deleted from the secondary + * region

    + */ + inline const Aws::String& GetBotId() const{ return m_botId; } + + /** + *

    The unique ID of the replicated bot to be deleted from the secondary + * region

    + */ + inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; } + + /** + *

    The unique ID of the replicated bot to be deleted from the secondary + * region

    + */ + inline void SetBotId(const Aws::String& value) { m_botIdHasBeenSet = true; m_botId = value; } + + /** + *

    The unique ID of the replicated bot to be deleted from the secondary + * region

    + */ + inline void SetBotId(Aws::String&& value) { m_botIdHasBeenSet = true; m_botId = std::move(value); } + + /** + *

    The unique ID of the replicated bot to be deleted from the secondary + * region

    + */ + inline void SetBotId(const char* value) { m_botIdHasBeenSet = true; m_botId.assign(value); } + + /** + *

    The unique ID of the replicated bot to be deleted from the secondary + * region

    + */ + inline DeleteBotReplicaRequest& WithBotId(const Aws::String& value) { SetBotId(value); return *this;} + + /** + *

    The unique ID of the replicated bot to be deleted from the secondary + * region

    + */ + inline DeleteBotReplicaRequest& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;} + + /** + *

    The unique ID of the replicated bot to be deleted from the secondary + * region

    + */ + inline DeleteBotReplicaRequest& WithBotId(const char* value) { SetBotId(value); return *this;} + + + /** + *

    The secondary region of the replicated bot that will be deleted.

    + */ + inline const Aws::String& GetReplicaRegion() const{ return m_replicaRegion; } + + /** + *

    The secondary region of the replicated bot that will be deleted.

    + */ + inline bool ReplicaRegionHasBeenSet() const { return m_replicaRegionHasBeenSet; } + + /** + *

    The secondary region of the replicated bot that will be deleted.

    + */ + inline void SetReplicaRegion(const Aws::String& value) { m_replicaRegionHasBeenSet = true; m_replicaRegion = value; } + + /** + *

    The secondary region of the replicated bot that will be deleted.

    + */ + inline void SetReplicaRegion(Aws::String&& value) { m_replicaRegionHasBeenSet = true; m_replicaRegion = std::move(value); } + + /** + *

    The secondary region of the replicated bot that will be deleted.

    + */ + inline void SetReplicaRegion(const char* value) { m_replicaRegionHasBeenSet = true; m_replicaRegion.assign(value); } + + /** + *

    The secondary region of the replicated bot that will be deleted.

    + */ + inline DeleteBotReplicaRequest& WithReplicaRegion(const Aws::String& value) { SetReplicaRegion(value); return *this;} + + /** + *

    The secondary region of the replicated bot that will be deleted.

    + */ + inline DeleteBotReplicaRequest& WithReplicaRegion(Aws::String&& value) { SetReplicaRegion(std::move(value)); return *this;} + + /** + *

    The secondary region of the replicated bot that will be deleted.

    + */ + inline DeleteBotReplicaRequest& WithReplicaRegion(const char* value) { SetReplicaRegion(value); return *this;} + + private: + + Aws::String m_botId; + bool m_botIdHasBeenSet = false; + + Aws::String m_replicaRegion; + bool m_replicaRegionHasBeenSet = false; + }; + +} // namespace Model +} // namespace LexModelsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/DeleteBotReplicaResult.h b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/DeleteBotReplicaResult.h new file mode 100644 index 00000000000..58d4a0235c0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/DeleteBotReplicaResult.h @@ -0,0 +1,168 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace LexModelsV2 +{ +namespace Model +{ + class DeleteBotReplicaResult + { + public: + AWS_LEXMODELSV2_API DeleteBotReplicaResult(); + AWS_LEXMODELSV2_API DeleteBotReplicaResult(const Aws::AmazonWebServiceResult& result); + AWS_LEXMODELSV2_API DeleteBotReplicaResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The unique bot ID of the replicated bot generated.

    + */ + inline const Aws::String& GetBotId() const{ return m_botId; } + + /** + *

    The unique bot ID of the replicated bot generated.

    + */ + inline void SetBotId(const Aws::String& value) { m_botId = value; } + + /** + *

    The unique bot ID of the replicated bot generated.

    + */ + inline void SetBotId(Aws::String&& value) { m_botId = std::move(value); } + + /** + *

    The unique bot ID of the replicated bot generated.

    + */ + inline void SetBotId(const char* value) { m_botId.assign(value); } + + /** + *

    The unique bot ID of the replicated bot generated.

    + */ + inline DeleteBotReplicaResult& WithBotId(const Aws::String& value) { SetBotId(value); return *this;} + + /** + *

    The unique bot ID of the replicated bot generated.

    + */ + inline DeleteBotReplicaResult& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;} + + /** + *

    The unique bot ID of the replicated bot generated.

    + */ + inline DeleteBotReplicaResult& WithBotId(const char* value) { SetBotId(value); return *this;} + + + /** + *

    The region of the replicated bot generated.

    + */ + inline const Aws::String& GetReplicaRegion() const{ return m_replicaRegion; } + + /** + *

    The region of the replicated bot generated.

    + */ + inline void SetReplicaRegion(const Aws::String& value) { m_replicaRegion = value; } + + /** + *

    The region of the replicated bot generated.

    + */ + inline void SetReplicaRegion(Aws::String&& value) { m_replicaRegion = std::move(value); } + + /** + *

    The region of the replicated bot generated.

    + */ + inline void SetReplicaRegion(const char* value) { m_replicaRegion.assign(value); } + + /** + *

    The region of the replicated bot generated.

    + */ + inline DeleteBotReplicaResult& WithReplicaRegion(const Aws::String& value) { SetReplicaRegion(value); return *this;} + + /** + *

    The region of the replicated bot generated.

    + */ + inline DeleteBotReplicaResult& WithReplicaRegion(Aws::String&& value) { SetReplicaRegion(std::move(value)); return *this;} + + /** + *

    The region of the replicated bot generated.

    + */ + inline DeleteBotReplicaResult& WithReplicaRegion(const char* value) { SetReplicaRegion(value); return *this;} + + + /** + *

    The operational status of the replicated bot generated.

    + */ + inline const BotReplicaStatus& GetBotReplicaStatus() const{ return m_botReplicaStatus; } + + /** + *

    The operational status of the replicated bot generated.

    + */ + inline void SetBotReplicaStatus(const BotReplicaStatus& value) { m_botReplicaStatus = value; } + + /** + *

    The operational status of the replicated bot generated.

    + */ + inline void SetBotReplicaStatus(BotReplicaStatus&& value) { m_botReplicaStatus = std::move(value); } + + /** + *

    The operational status of the replicated bot generated.

    + */ + inline DeleteBotReplicaResult& WithBotReplicaStatus(const BotReplicaStatus& value) { SetBotReplicaStatus(value); return *this;} + + /** + *

    The operational status of the replicated bot generated.

    + */ + inline DeleteBotReplicaResult& WithBotReplicaStatus(BotReplicaStatus&& value) { SetBotReplicaStatus(std::move(value)); return *this;} + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline DeleteBotReplicaResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline DeleteBotReplicaResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline DeleteBotReplicaResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_botId; + + Aws::String m_replicaRegion; + + BotReplicaStatus m_botReplicaStatus; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace LexModelsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/DescribeBotReplicaRequest.h b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/DescribeBotReplicaRequest.h new file mode 100644 index 00000000000..b6dfec274ec --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/DescribeBotReplicaRequest.h @@ -0,0 +1,127 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace LexModelsV2 +{ +namespace Model +{ + + /** + */ + class DescribeBotReplicaRequest : public LexModelsV2Request + { + public: + AWS_LEXMODELSV2_API DescribeBotReplicaRequest(); + + // 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 "DescribeBotReplica"; } + + AWS_LEXMODELSV2_API Aws::String SerializePayload() const override; + + + /** + *

    The request for the unique bot ID of the replicated bot being monitored.

    + */ + inline const Aws::String& GetBotId() const{ return m_botId; } + + /** + *

    The request for the unique bot ID of the replicated bot being monitored.

    + */ + inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; } + + /** + *

    The request for the unique bot ID of the replicated bot being monitored.

    + */ + inline void SetBotId(const Aws::String& value) { m_botIdHasBeenSet = true; m_botId = value; } + + /** + *

    The request for the unique bot ID of the replicated bot being monitored.

    + */ + inline void SetBotId(Aws::String&& value) { m_botIdHasBeenSet = true; m_botId = std::move(value); } + + /** + *

    The request for the unique bot ID of the replicated bot being monitored.

    + */ + inline void SetBotId(const char* value) { m_botIdHasBeenSet = true; m_botId.assign(value); } + + /** + *

    The request for the unique bot ID of the replicated bot being monitored.

    + */ + inline DescribeBotReplicaRequest& WithBotId(const Aws::String& value) { SetBotId(value); return *this;} + + /** + *

    The request for the unique bot ID of the replicated bot being monitored.

    + */ + inline DescribeBotReplicaRequest& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;} + + /** + *

    The request for the unique bot ID of the replicated bot being monitored.

    + */ + inline DescribeBotReplicaRequest& WithBotId(const char* value) { SetBotId(value); return *this;} + + + /** + *

    The request for the region of the replicated bot being monitored.

    + */ + inline const Aws::String& GetReplicaRegion() const{ return m_replicaRegion; } + + /** + *

    The request for the region of the replicated bot being monitored.

    + */ + inline bool ReplicaRegionHasBeenSet() const { return m_replicaRegionHasBeenSet; } + + /** + *

    The request for the region of the replicated bot being monitored.

    + */ + inline void SetReplicaRegion(const Aws::String& value) { m_replicaRegionHasBeenSet = true; m_replicaRegion = value; } + + /** + *

    The request for the region of the replicated bot being monitored.

    + */ + inline void SetReplicaRegion(Aws::String&& value) { m_replicaRegionHasBeenSet = true; m_replicaRegion = std::move(value); } + + /** + *

    The request for the region of the replicated bot being monitored.

    + */ + inline void SetReplicaRegion(const char* value) { m_replicaRegionHasBeenSet = true; m_replicaRegion.assign(value); } + + /** + *

    The request for the region of the replicated bot being monitored.

    + */ + inline DescribeBotReplicaRequest& WithReplicaRegion(const Aws::String& value) { SetReplicaRegion(value); return *this;} + + /** + *

    The request for the region of the replicated bot being monitored.

    + */ + inline DescribeBotReplicaRequest& WithReplicaRegion(Aws::String&& value) { SetReplicaRegion(std::move(value)); return *this;} + + /** + *

    The request for the region of the replicated bot being monitored.

    + */ + inline DescribeBotReplicaRequest& WithReplicaRegion(const char* value) { SetReplicaRegion(value); return *this;} + + private: + + Aws::String m_botId; + bool m_botIdHasBeenSet = false; + + Aws::String m_replicaRegion; + bool m_replicaRegionHasBeenSet = false; + }; + +} // namespace Model +} // namespace LexModelsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/DescribeBotReplicaResult.h b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/DescribeBotReplicaResult.h new file mode 100644 index 00000000000..4bb33461725 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/DescribeBotReplicaResult.h @@ -0,0 +1,279 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace LexModelsV2 +{ +namespace Model +{ + class DescribeBotReplicaResult + { + public: + AWS_LEXMODELSV2_API DescribeBotReplicaResult(); + AWS_LEXMODELSV2_API DescribeBotReplicaResult(const Aws::AmazonWebServiceResult& result); + AWS_LEXMODELSV2_API DescribeBotReplicaResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The unique bot ID of the replicated bot being monitored.

    + */ + inline const Aws::String& GetBotId() const{ return m_botId; } + + /** + *

    The unique bot ID of the replicated bot being monitored.

    + */ + inline void SetBotId(const Aws::String& value) { m_botId = value; } + + /** + *

    The unique bot ID of the replicated bot being monitored.

    + */ + inline void SetBotId(Aws::String&& value) { m_botId = std::move(value); } + + /** + *

    The unique bot ID of the replicated bot being monitored.

    + */ + inline void SetBotId(const char* value) { m_botId.assign(value); } + + /** + *

    The unique bot ID of the replicated bot being monitored.

    + */ + inline DescribeBotReplicaResult& WithBotId(const Aws::String& value) { SetBotId(value); return *this;} + + /** + *

    The unique bot ID of the replicated bot being monitored.

    + */ + inline DescribeBotReplicaResult& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;} + + /** + *

    The unique bot ID of the replicated bot being monitored.

    + */ + inline DescribeBotReplicaResult& WithBotId(const char* value) { SetBotId(value); return *this;} + + + /** + *

    The region of the replicated bot being monitored.

    + */ + inline const Aws::String& GetReplicaRegion() const{ return m_replicaRegion; } + + /** + *

    The region of the replicated bot being monitored.

    + */ + inline void SetReplicaRegion(const Aws::String& value) { m_replicaRegion = value; } + + /** + *

    The region of the replicated bot being monitored.

    + */ + inline void SetReplicaRegion(Aws::String&& value) { m_replicaRegion = std::move(value); } + + /** + *

    The region of the replicated bot being monitored.

    + */ + inline void SetReplicaRegion(const char* value) { m_replicaRegion.assign(value); } + + /** + *

    The region of the replicated bot being monitored.

    + */ + inline DescribeBotReplicaResult& WithReplicaRegion(const Aws::String& value) { SetReplicaRegion(value); return *this;} + + /** + *

    The region of the replicated bot being monitored.

    + */ + inline DescribeBotReplicaResult& WithReplicaRegion(Aws::String&& value) { SetReplicaRegion(std::move(value)); return *this;} + + /** + *

    The region of the replicated bot being monitored.

    + */ + inline DescribeBotReplicaResult& WithReplicaRegion(const char* value) { SetReplicaRegion(value); return *this;} + + + /** + *

    The source region of the replicated bot being monitored.

    + */ + inline const Aws::String& GetSourceRegion() const{ return m_sourceRegion; } + + /** + *

    The source region of the replicated bot being monitored.

    + */ + inline void SetSourceRegion(const Aws::String& value) { m_sourceRegion = value; } + + /** + *

    The source region of the replicated bot being monitored.

    + */ + inline void SetSourceRegion(Aws::String&& value) { m_sourceRegion = std::move(value); } + + /** + *

    The source region of the replicated bot being monitored.

    + */ + inline void SetSourceRegion(const char* value) { m_sourceRegion.assign(value); } + + /** + *

    The source region of the replicated bot being monitored.

    + */ + inline DescribeBotReplicaResult& WithSourceRegion(const Aws::String& value) { SetSourceRegion(value); return *this;} + + /** + *

    The source region of the replicated bot being monitored.

    + */ + inline DescribeBotReplicaResult& WithSourceRegion(Aws::String&& value) { SetSourceRegion(std::move(value)); return *this;} + + /** + *

    The source region of the replicated bot being monitored.

    + */ + inline DescribeBotReplicaResult& WithSourceRegion(const char* value) { SetSourceRegion(value); return *this;} + + + /** + *

    The creation date and time of the replicated bot being monitored.

    + */ + inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; } + + /** + *

    The creation date and time of the replicated bot being monitored.

    + */ + inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTime = value; } + + /** + *

    The creation date and time of the replicated bot being monitored.

    + */ + inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTime = std::move(value); } + + /** + *

    The creation date and time of the replicated bot being monitored.

    + */ + inline DescribeBotReplicaResult& WithCreationDateTime(const Aws::Utils::DateTime& value) { SetCreationDateTime(value); return *this;} + + /** + *

    The creation date and time of the replicated bot being monitored.

    + */ + inline DescribeBotReplicaResult& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;} + + + /** + *

    The operational status of the replicated bot being monitored.

    + */ + inline const BotReplicaStatus& GetBotReplicaStatus() const{ return m_botReplicaStatus; } + + /** + *

    The operational status of the replicated bot being monitored.

    + */ + inline void SetBotReplicaStatus(const BotReplicaStatus& value) { m_botReplicaStatus = value; } + + /** + *

    The operational status of the replicated bot being monitored.

    + */ + inline void SetBotReplicaStatus(BotReplicaStatus&& value) { m_botReplicaStatus = std::move(value); } + + /** + *

    The operational status of the replicated bot being monitored.

    + */ + inline DescribeBotReplicaResult& WithBotReplicaStatus(const BotReplicaStatus& value) { SetBotReplicaStatus(value); return *this;} + + /** + *

    The operational status of the replicated bot being monitored.

    + */ + inline DescribeBotReplicaResult& WithBotReplicaStatus(BotReplicaStatus&& value) { SetBotReplicaStatus(std::move(value)); return *this;} + + + /** + *

    The failure reasons the bot being monitored failed to replicate.

    + */ + inline const Aws::Vector& GetFailureReasons() const{ return m_failureReasons; } + + /** + *

    The failure reasons the bot being monitored failed to replicate.

    + */ + inline void SetFailureReasons(const Aws::Vector& value) { m_failureReasons = value; } + + /** + *

    The failure reasons the bot being monitored failed to replicate.

    + */ + inline void SetFailureReasons(Aws::Vector&& value) { m_failureReasons = std::move(value); } + + /** + *

    The failure reasons the bot being monitored failed to replicate.

    + */ + inline DescribeBotReplicaResult& WithFailureReasons(const Aws::Vector& value) { SetFailureReasons(value); return *this;} + + /** + *

    The failure reasons the bot being monitored failed to replicate.

    + */ + inline DescribeBotReplicaResult& WithFailureReasons(Aws::Vector&& value) { SetFailureReasons(std::move(value)); return *this;} + + /** + *

    The failure reasons the bot being monitored failed to replicate.

    + */ + inline DescribeBotReplicaResult& AddFailureReasons(const Aws::String& value) { m_failureReasons.push_back(value); return *this; } + + /** + *

    The failure reasons the bot being monitored failed to replicate.

    + */ + inline DescribeBotReplicaResult& AddFailureReasons(Aws::String&& value) { m_failureReasons.push_back(std::move(value)); return *this; } + + /** + *

    The failure reasons the bot being monitored failed to replicate.

    + */ + inline DescribeBotReplicaResult& AddFailureReasons(const char* value) { m_failureReasons.push_back(value); return *this; } + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline DescribeBotReplicaResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline DescribeBotReplicaResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline DescribeBotReplicaResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_botId; + + Aws::String m_replicaRegion; + + Aws::String m_sourceRegion; + + Aws::Utils::DateTime m_creationDateTime; + + BotReplicaStatus m_botReplicaStatus; + + Aws::Vector m_failureReasons; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace LexModelsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/ListBotAliasReplicasRequest.h b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/ListBotAliasReplicasRequest.h new file mode 100644 index 00000000000..cbf6140b99b --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/ListBotAliasReplicasRequest.h @@ -0,0 +1,223 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace LexModelsV2 +{ +namespace Model +{ + + /** + */ + class ListBotAliasReplicasRequest : public LexModelsV2Request + { + public: + AWS_LEXMODELSV2_API ListBotAliasReplicasRequest(); + + // 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 "ListBotAliasReplicas"; } + + AWS_LEXMODELSV2_API Aws::String SerializePayload() const override; + + + /** + *

    The request for the unique bot ID of the replicated bot created from the + * source bot alias.

    + */ + inline const Aws::String& GetBotId() const{ return m_botId; } + + /** + *

    The request for the unique bot ID of the replicated bot created from the + * source bot alias.

    + */ + inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; } + + /** + *

    The request for the unique bot ID of the replicated bot created from the + * source bot alias.

    + */ + inline void SetBotId(const Aws::String& value) { m_botIdHasBeenSet = true; m_botId = value; } + + /** + *

    The request for the unique bot ID of the replicated bot created from the + * source bot alias.

    + */ + inline void SetBotId(Aws::String&& value) { m_botIdHasBeenSet = true; m_botId = std::move(value); } + + /** + *

    The request for the unique bot ID of the replicated bot created from the + * source bot alias.

    + */ + inline void SetBotId(const char* value) { m_botIdHasBeenSet = true; m_botId.assign(value); } + + /** + *

    The request for the unique bot ID of the replicated bot created from the + * source bot alias.

    + */ + inline ListBotAliasReplicasRequest& WithBotId(const Aws::String& value) { SetBotId(value); return *this;} + + /** + *

    The request for the unique bot ID of the replicated bot created from the + * source bot alias.

    + */ + inline ListBotAliasReplicasRequest& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;} + + /** + *

    The request for the unique bot ID of the replicated bot created from the + * source bot alias.

    + */ + inline ListBotAliasReplicasRequest& WithBotId(const char* value) { SetBotId(value); return *this;} + + + /** + *

    The request for the secondary region of the replicated bot created from the + * source bot alias.

    + */ + inline const Aws::String& GetReplicaRegion() const{ return m_replicaRegion; } + + /** + *

    The request for the secondary region of the replicated bot created from the + * source bot alias.

    + */ + inline bool ReplicaRegionHasBeenSet() const { return m_replicaRegionHasBeenSet; } + + /** + *

    The request for the secondary region of the replicated bot created from the + * source bot alias.

    + */ + inline void SetReplicaRegion(const Aws::String& value) { m_replicaRegionHasBeenSet = true; m_replicaRegion = value; } + + /** + *

    The request for the secondary region of the replicated bot created from the + * source bot alias.

    + */ + inline void SetReplicaRegion(Aws::String&& value) { m_replicaRegionHasBeenSet = true; m_replicaRegion = std::move(value); } + + /** + *

    The request for the secondary region of the replicated bot created from the + * source bot alias.

    + */ + inline void SetReplicaRegion(const char* value) { m_replicaRegionHasBeenSet = true; m_replicaRegion.assign(value); } + + /** + *

    The request for the secondary region of the replicated bot created from the + * source bot alias.

    + */ + inline ListBotAliasReplicasRequest& WithReplicaRegion(const Aws::String& value) { SetReplicaRegion(value); return *this;} + + /** + *

    The request for the secondary region of the replicated bot created from the + * source bot alias.

    + */ + inline ListBotAliasReplicasRequest& WithReplicaRegion(Aws::String&& value) { SetReplicaRegion(std::move(value)); return *this;} + + /** + *

    The request for the secondary region of the replicated bot created from the + * source bot alias.

    + */ + inline ListBotAliasReplicasRequest& WithReplicaRegion(const char* value) { SetReplicaRegion(value); return *this;} + + + /** + *

    The request for maximum results to list the replicated bots created from the + * source bot alias.

    + */ + inline int GetMaxResults() const{ return m_maxResults; } + + /** + *

    The request for maximum results to list the replicated bots created from the + * source bot alias.

    + */ + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + + /** + *

    The request for maximum results to list the replicated bots created from the + * source bot alias.

    + */ + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + + /** + *

    The request for maximum results to list the replicated bots created from the + * source bot alias.

    + */ + inline ListBotAliasReplicasRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + + /** + *

    The request for the next token for the replicated bot created from the source + * bot alias.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

    The request for the next token for the replicated bot created from the source + * bot alias.

    + */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

    The request for the next token for the replicated bot created from the source + * bot alias.

    + */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

    The request for the next token for the replicated bot created from the source + * bot alias.

    + */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

    The request for the next token for the replicated bot created from the source + * bot alias.

    + */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

    The request for the next token for the replicated bot created from the source + * bot alias.

    + */ + inline ListBotAliasReplicasRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

    The request for the next token for the replicated bot created from the source + * bot alias.

    + */ + inline ListBotAliasReplicasRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

    The request for the next token for the replicated bot created from the source + * bot alias.

    + */ + inline ListBotAliasReplicasRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + Aws::String m_botId; + bool m_botIdHasBeenSet = false; + + Aws::String m_replicaRegion; + bool m_replicaRegionHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + }; + +} // namespace Model +} // namespace LexModelsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/ListBotAliasReplicasResult.h b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/ListBotAliasReplicasResult.h new file mode 100644 index 00000000000..eeadd47470e --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/ListBotAliasReplicasResult.h @@ -0,0 +1,283 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace LexModelsV2 +{ +namespace Model +{ + class ListBotAliasReplicasResult + { + public: + AWS_LEXMODELSV2_API ListBotAliasReplicasResult(); + AWS_LEXMODELSV2_API ListBotAliasReplicasResult(const Aws::AmazonWebServiceResult& result); + AWS_LEXMODELSV2_API ListBotAliasReplicasResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The unique bot ID of the replicated bot created from the source bot + * alias.

    + */ + inline const Aws::String& GetBotId() const{ return m_botId; } + + /** + *

    The unique bot ID of the replicated bot created from the source bot + * alias.

    + */ + inline void SetBotId(const Aws::String& value) { m_botId = value; } + + /** + *

    The unique bot ID of the replicated bot created from the source bot + * alias.

    + */ + inline void SetBotId(Aws::String&& value) { m_botId = std::move(value); } + + /** + *

    The unique bot ID of the replicated bot created from the source bot + * alias.

    + */ + inline void SetBotId(const char* value) { m_botId.assign(value); } + + /** + *

    The unique bot ID of the replicated bot created from the source bot + * alias.

    + */ + inline ListBotAliasReplicasResult& WithBotId(const Aws::String& value) { SetBotId(value); return *this;} + + /** + *

    The unique bot ID of the replicated bot created from the source bot + * alias.

    + */ + inline ListBotAliasReplicasResult& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;} + + /** + *

    The unique bot ID of the replicated bot created from the source bot + * alias.

    + */ + inline ListBotAliasReplicasResult& WithBotId(const char* value) { SetBotId(value); return *this;} + + + /** + *

    The source region of the replicated bot created from the source bot + * alias.

    + */ + inline const Aws::String& GetSourceRegion() const{ return m_sourceRegion; } + + /** + *

    The source region of the replicated bot created from the source bot + * alias.

    + */ + inline void SetSourceRegion(const Aws::String& value) { m_sourceRegion = value; } + + /** + *

    The source region of the replicated bot created from the source bot + * alias.

    + */ + inline void SetSourceRegion(Aws::String&& value) { m_sourceRegion = std::move(value); } + + /** + *

    The source region of the replicated bot created from the source bot + * alias.

    + */ + inline void SetSourceRegion(const char* value) { m_sourceRegion.assign(value); } + + /** + *

    The source region of the replicated bot created from the source bot + * alias.

    + */ + inline ListBotAliasReplicasResult& WithSourceRegion(const Aws::String& value) { SetSourceRegion(value); return *this;} + + /** + *

    The source region of the replicated bot created from the source bot + * alias.

    + */ + inline ListBotAliasReplicasResult& WithSourceRegion(Aws::String&& value) { SetSourceRegion(std::move(value)); return *this;} + + /** + *

    The source region of the replicated bot created from the source bot + * alias.

    + */ + inline ListBotAliasReplicasResult& WithSourceRegion(const char* value) { SetSourceRegion(value); return *this;} + + + /** + *

    The secondary region of the replicated bot created from the source bot + * alias.

    + */ + inline const Aws::String& GetReplicaRegion() const{ return m_replicaRegion; } + + /** + *

    The secondary region of the replicated bot created from the source bot + * alias.

    + */ + inline void SetReplicaRegion(const Aws::String& value) { m_replicaRegion = value; } + + /** + *

    The secondary region of the replicated bot created from the source bot + * alias.

    + */ + inline void SetReplicaRegion(Aws::String&& value) { m_replicaRegion = std::move(value); } + + /** + *

    The secondary region of the replicated bot created from the source bot + * alias.

    + */ + inline void SetReplicaRegion(const char* value) { m_replicaRegion.assign(value); } + + /** + *

    The secondary region of the replicated bot created from the source bot + * alias.

    + */ + inline ListBotAliasReplicasResult& WithReplicaRegion(const Aws::String& value) { SetReplicaRegion(value); return *this;} + + /** + *

    The secondary region of the replicated bot created from the source bot + * alias.

    + */ + inline ListBotAliasReplicasResult& WithReplicaRegion(Aws::String&& value) { SetReplicaRegion(std::move(value)); return *this;} + + /** + *

    The secondary region of the replicated bot created from the source bot + * alias.

    + */ + inline ListBotAliasReplicasResult& WithReplicaRegion(const char* value) { SetReplicaRegion(value); return *this;} + + + /** + *

    The summary information of the replicated bot created from the source bot + * alias.

    + */ + inline const Aws::Vector& GetBotAliasReplicaSummaries() const{ return m_botAliasReplicaSummaries; } + + /** + *

    The summary information of the replicated bot created from the source bot + * alias.

    + */ + inline void SetBotAliasReplicaSummaries(const Aws::Vector& value) { m_botAliasReplicaSummaries = value; } + + /** + *

    The summary information of the replicated bot created from the source bot + * alias.

    + */ + inline void SetBotAliasReplicaSummaries(Aws::Vector&& value) { m_botAliasReplicaSummaries = std::move(value); } + + /** + *

    The summary information of the replicated bot created from the source bot + * alias.

    + */ + inline ListBotAliasReplicasResult& WithBotAliasReplicaSummaries(const Aws::Vector& value) { SetBotAliasReplicaSummaries(value); return *this;} + + /** + *

    The summary information of the replicated bot created from the source bot + * alias.

    + */ + inline ListBotAliasReplicasResult& WithBotAliasReplicaSummaries(Aws::Vector&& value) { SetBotAliasReplicaSummaries(std::move(value)); return *this;} + + /** + *

    The summary information of the replicated bot created from the source bot + * alias.

    + */ + inline ListBotAliasReplicasResult& AddBotAliasReplicaSummaries(const BotAliasReplicaSummary& value) { m_botAliasReplicaSummaries.push_back(value); return *this; } + + /** + *

    The summary information of the replicated bot created from the source bot + * alias.

    + */ + inline ListBotAliasReplicasResult& AddBotAliasReplicaSummaries(BotAliasReplicaSummary&& value) { m_botAliasReplicaSummaries.push_back(std::move(value)); return *this; } + + + /** + *

    The next token for the replicated bots created from the source bot alias.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

    The next token for the replicated bots created from the source bot alias.

    + */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

    The next token for the replicated bots created from the source bot alias.

    + */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

    The next token for the replicated bots created from the source bot alias.

    + */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

    The next token for the replicated bots created from the source bot alias.

    + */ + inline ListBotAliasReplicasResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

    The next token for the replicated bots created from the source bot alias.

    + */ + inline ListBotAliasReplicasResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

    The next token for the replicated bots created from the source bot alias.

    + */ + inline ListBotAliasReplicasResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline ListBotAliasReplicasResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline ListBotAliasReplicasResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline ListBotAliasReplicasResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_botId; + + Aws::String m_sourceRegion; + + Aws::String m_replicaRegion; + + Aws::Vector m_botAliasReplicaSummaries; + + Aws::String m_nextToken; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace LexModelsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/ListBotReplicasRequest.h b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/ListBotReplicasRequest.h new file mode 100644 index 00000000000..c72cc737c76 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/ListBotReplicasRequest.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace LexModelsV2 +{ +namespace Model +{ + + /** + */ + class ListBotReplicasRequest : public LexModelsV2Request + { + public: + AWS_LEXMODELSV2_API ListBotReplicasRequest(); + + // 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 "ListBotReplicas"; } + + AWS_LEXMODELSV2_API Aws::String SerializePayload() const override; + + + /** + *

    The request for the unique bot IDs in the list of replicated bots.

    + */ + inline const Aws::String& GetBotId() const{ return m_botId; } + + /** + *

    The request for the unique bot IDs in the list of replicated bots.

    + */ + inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; } + + /** + *

    The request for the unique bot IDs in the list of replicated bots.

    + */ + inline void SetBotId(const Aws::String& value) { m_botIdHasBeenSet = true; m_botId = value; } + + /** + *

    The request for the unique bot IDs in the list of replicated bots.

    + */ + inline void SetBotId(Aws::String&& value) { m_botIdHasBeenSet = true; m_botId = std::move(value); } + + /** + *

    The request for the unique bot IDs in the list of replicated bots.

    + */ + inline void SetBotId(const char* value) { m_botIdHasBeenSet = true; m_botId.assign(value); } + + /** + *

    The request for the unique bot IDs in the list of replicated bots.

    + */ + inline ListBotReplicasRequest& WithBotId(const Aws::String& value) { SetBotId(value); return *this;} + + /** + *

    The request for the unique bot IDs in the list of replicated bots.

    + */ + inline ListBotReplicasRequest& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;} + + /** + *

    The request for the unique bot IDs in the list of replicated bots.

    + */ + inline ListBotReplicasRequest& WithBotId(const char* value) { SetBotId(value); return *this;} + + private: + + Aws::String m_botId; + bool m_botIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace LexModelsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/ListBotReplicasResult.h b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/ListBotReplicasResult.h new file mode 100644 index 00000000000..d91ea63b9ee --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/ListBotReplicasResult.h @@ -0,0 +1,179 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace LexModelsV2 +{ +namespace Model +{ + class ListBotReplicasResult + { + public: + AWS_LEXMODELSV2_API ListBotReplicasResult(); + AWS_LEXMODELSV2_API ListBotReplicasResult(const Aws::AmazonWebServiceResult& result); + AWS_LEXMODELSV2_API ListBotReplicasResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    the unique bot IDs in the list of replicated bots.

    + */ + inline const Aws::String& GetBotId() const{ return m_botId; } + + /** + *

    the unique bot IDs in the list of replicated bots.

    + */ + inline void SetBotId(const Aws::String& value) { m_botId = value; } + + /** + *

    the unique bot IDs in the list of replicated bots.

    + */ + inline void SetBotId(Aws::String&& value) { m_botId = std::move(value); } + + /** + *

    the unique bot IDs in the list of replicated bots.

    + */ + inline void SetBotId(const char* value) { m_botId.assign(value); } + + /** + *

    the unique bot IDs in the list of replicated bots.

    + */ + inline ListBotReplicasResult& WithBotId(const Aws::String& value) { SetBotId(value); return *this;} + + /** + *

    the unique bot IDs in the list of replicated bots.

    + */ + inline ListBotReplicasResult& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;} + + /** + *

    the unique bot IDs in the list of replicated bots.

    + */ + inline ListBotReplicasResult& WithBotId(const char* value) { SetBotId(value); return *this;} + + + /** + *

    The source region of the source bots in the list of replicated bots.

    + */ + inline const Aws::String& GetSourceRegion() const{ return m_sourceRegion; } + + /** + *

    The source region of the source bots in the list of replicated bots.

    + */ + inline void SetSourceRegion(const Aws::String& value) { m_sourceRegion = value; } + + /** + *

    The source region of the source bots in the list of replicated bots.

    + */ + inline void SetSourceRegion(Aws::String&& value) { m_sourceRegion = std::move(value); } + + /** + *

    The source region of the source bots in the list of replicated bots.

    + */ + inline void SetSourceRegion(const char* value) { m_sourceRegion.assign(value); } + + /** + *

    The source region of the source bots in the list of replicated bots.

    + */ + inline ListBotReplicasResult& WithSourceRegion(const Aws::String& value) { SetSourceRegion(value); return *this;} + + /** + *

    The source region of the source bots in the list of replicated bots.

    + */ + inline ListBotReplicasResult& WithSourceRegion(Aws::String&& value) { SetSourceRegion(std::move(value)); return *this;} + + /** + *

    The source region of the source bots in the list of replicated bots.

    + */ + inline ListBotReplicasResult& WithSourceRegion(const char* value) { SetSourceRegion(value); return *this;} + + + /** + *

    The summary details for the replicated bots.

    + */ + inline const Aws::Vector& GetBotReplicaSummaries() const{ return m_botReplicaSummaries; } + + /** + *

    The summary details for the replicated bots.

    + */ + inline void SetBotReplicaSummaries(const Aws::Vector& value) { m_botReplicaSummaries = value; } + + /** + *

    The summary details for the replicated bots.

    + */ + inline void SetBotReplicaSummaries(Aws::Vector&& value) { m_botReplicaSummaries = std::move(value); } + + /** + *

    The summary details for the replicated bots.

    + */ + inline ListBotReplicasResult& WithBotReplicaSummaries(const Aws::Vector& value) { SetBotReplicaSummaries(value); return *this;} + + /** + *

    The summary details for the replicated bots.

    + */ + inline ListBotReplicasResult& WithBotReplicaSummaries(Aws::Vector&& value) { SetBotReplicaSummaries(std::move(value)); return *this;} + + /** + *

    The summary details for the replicated bots.

    + */ + inline ListBotReplicasResult& AddBotReplicaSummaries(const BotReplicaSummary& value) { m_botReplicaSummaries.push_back(value); return *this; } + + /** + *

    The summary details for the replicated bots.

    + */ + inline ListBotReplicasResult& AddBotReplicaSummaries(BotReplicaSummary&& value) { m_botReplicaSummaries.push_back(std::move(value)); return *this; } + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline ListBotReplicasResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline ListBotReplicasResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline ListBotReplicasResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_botId; + + Aws::String m_sourceRegion; + + Aws::Vector m_botReplicaSummaries; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace LexModelsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/ListBotVersionReplicasRequest.h b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/ListBotVersionReplicasRequest.h new file mode 100644 index 00000000000..4a1357f9f68 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/ListBotVersionReplicasRequest.h @@ -0,0 +1,230 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace LexModelsV2 +{ +namespace Model +{ + + /** + */ + class ListBotVersionReplicasRequest : public LexModelsV2Request + { + public: + AWS_LEXMODELSV2_API ListBotVersionReplicasRequest(); + + // 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 "ListBotVersionReplicas"; } + + AWS_LEXMODELSV2_API Aws::String SerializePayload() const override; + + + /** + *

    The request for the unique ID in the list of replicated bots.

    + */ + inline const Aws::String& GetBotId() const{ return m_botId; } + + /** + *

    The request for the unique ID in the list of replicated bots.

    + */ + inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; } + + /** + *

    The request for the unique ID in the list of replicated bots.

    + */ + inline void SetBotId(const Aws::String& value) { m_botIdHasBeenSet = true; m_botId = value; } + + /** + *

    The request for the unique ID in the list of replicated bots.

    + */ + inline void SetBotId(Aws::String&& value) { m_botIdHasBeenSet = true; m_botId = std::move(value); } + + /** + *

    The request for the unique ID in the list of replicated bots.

    + */ + inline void SetBotId(const char* value) { m_botIdHasBeenSet = true; m_botId.assign(value); } + + /** + *

    The request for the unique ID in the list of replicated bots.

    + */ + inline ListBotVersionReplicasRequest& WithBotId(const Aws::String& value) { SetBotId(value); return *this;} + + /** + *

    The request for the unique ID in the list of replicated bots.

    + */ + inline ListBotVersionReplicasRequest& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;} + + /** + *

    The request for the unique ID in the list of replicated bots.

    + */ + inline ListBotVersionReplicasRequest& WithBotId(const char* value) { SetBotId(value); return *this;} + + + /** + *

    The request for the region used in the list of replicated bots.

    + */ + inline const Aws::String& GetReplicaRegion() const{ return m_replicaRegion; } + + /** + *

    The request for the region used in the list of replicated bots.

    + */ + inline bool ReplicaRegionHasBeenSet() const { return m_replicaRegionHasBeenSet; } + + /** + *

    The request for the region used in the list of replicated bots.

    + */ + inline void SetReplicaRegion(const Aws::String& value) { m_replicaRegionHasBeenSet = true; m_replicaRegion = value; } + + /** + *

    The request for the region used in the list of replicated bots.

    + */ + inline void SetReplicaRegion(Aws::String&& value) { m_replicaRegionHasBeenSet = true; m_replicaRegion = std::move(value); } + + /** + *

    The request for the region used in the list of replicated bots.

    + */ + inline void SetReplicaRegion(const char* value) { m_replicaRegionHasBeenSet = true; m_replicaRegion.assign(value); } + + /** + *

    The request for the region used in the list of replicated bots.

    + */ + inline ListBotVersionReplicasRequest& WithReplicaRegion(const Aws::String& value) { SetReplicaRegion(value); return *this;} + + /** + *

    The request for the region used in the list of replicated bots.

    + */ + inline ListBotVersionReplicasRequest& WithReplicaRegion(Aws::String&& value) { SetReplicaRegion(std::move(value)); return *this;} + + /** + *

    The request for the region used in the list of replicated bots.

    + */ + inline ListBotVersionReplicasRequest& WithReplicaRegion(const char* value) { SetReplicaRegion(value); return *this;} + + + /** + *

    The maximum results given in the list of replicated bots.

    + */ + inline int GetMaxResults() const{ return m_maxResults; } + + /** + *

    The maximum results given in the list of replicated bots.

    + */ + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + + /** + *

    The maximum results given in the list of replicated bots.

    + */ + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + + /** + *

    The maximum results given in the list of replicated bots.

    + */ + inline ListBotVersionReplicasRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + + /** + *

    The next token given in the list of replicated bots.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

    The next token given in the list of replicated bots.

    + */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

    The next token given in the list of replicated bots.

    + */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

    The next token given in the list of replicated bots.

    + */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

    The next token given in the list of replicated bots.

    + */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

    The next token given in the list of replicated bots.

    + */ + inline ListBotVersionReplicasRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

    The next token given in the list of replicated bots.

    + */ + inline ListBotVersionReplicasRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

    The next token given in the list of replicated bots.

    + */ + inline ListBotVersionReplicasRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

    The requested sort category for the list of replicated bots.

    + */ + inline const BotVersionReplicaSortBy& GetSortBy() const{ return m_sortBy; } + + /** + *

    The requested sort category for the list of replicated bots.

    + */ + inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; } + + /** + *

    The requested sort category for the list of replicated bots.

    + */ + inline void SetSortBy(const BotVersionReplicaSortBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; } + + /** + *

    The requested sort category for the list of replicated bots.

    + */ + inline void SetSortBy(BotVersionReplicaSortBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); } + + /** + *

    The requested sort category for the list of replicated bots.

    + */ + inline ListBotVersionReplicasRequest& WithSortBy(const BotVersionReplicaSortBy& value) { SetSortBy(value); return *this;} + + /** + *

    The requested sort category for the list of replicated bots.

    + */ + inline ListBotVersionReplicasRequest& WithSortBy(BotVersionReplicaSortBy&& value) { SetSortBy(std::move(value)); return *this;} + + private: + + Aws::String m_botId; + bool m_botIdHasBeenSet = false; + + Aws::String m_replicaRegion; + bool m_replicaRegionHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + BotVersionReplicaSortBy m_sortBy; + bool m_sortByHasBeenSet = false; + }; + +} // namespace Model +} // namespace LexModelsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/ListBotVersionReplicasResult.h b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/ListBotVersionReplicasResult.h new file mode 100644 index 00000000000..c7aa68ef899 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/ListBotVersionReplicasResult.h @@ -0,0 +1,269 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace LexModelsV2 +{ +namespace Model +{ + class ListBotVersionReplicasResult + { + public: + AWS_LEXMODELSV2_API ListBotVersionReplicasResult(); + AWS_LEXMODELSV2_API ListBotVersionReplicasResult(const Aws::AmazonWebServiceResult& result); + AWS_LEXMODELSV2_API ListBotVersionReplicasResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The unique ID of the bots in the list of replicated bots.

    + */ + inline const Aws::String& GetBotId() const{ return m_botId; } + + /** + *

    The unique ID of the bots in the list of replicated bots.

    + */ + inline void SetBotId(const Aws::String& value) { m_botId = value; } + + /** + *

    The unique ID of the bots in the list of replicated bots.

    + */ + inline void SetBotId(Aws::String&& value) { m_botId = std::move(value); } + + /** + *

    The unique ID of the bots in the list of replicated bots.

    + */ + inline void SetBotId(const char* value) { m_botId.assign(value); } + + /** + *

    The unique ID of the bots in the list of replicated bots.

    + */ + inline ListBotVersionReplicasResult& WithBotId(const Aws::String& value) { SetBotId(value); return *this;} + + /** + *

    The unique ID of the bots in the list of replicated bots.

    + */ + inline ListBotVersionReplicasResult& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;} + + /** + *

    The unique ID of the bots in the list of replicated bots.

    + */ + inline ListBotVersionReplicasResult& WithBotId(const char* value) { SetBotId(value); return *this;} + + + /** + *

    The source region used for the bots in the list of replicated bots.

    + */ + inline const Aws::String& GetSourceRegion() const{ return m_sourceRegion; } + + /** + *

    The source region used for the bots in the list of replicated bots.

    + */ + inline void SetSourceRegion(const Aws::String& value) { m_sourceRegion = value; } + + /** + *

    The source region used for the bots in the list of replicated bots.

    + */ + inline void SetSourceRegion(Aws::String&& value) { m_sourceRegion = std::move(value); } + + /** + *

    The source region used for the bots in the list of replicated bots.

    + */ + inline void SetSourceRegion(const char* value) { m_sourceRegion.assign(value); } + + /** + *

    The source region used for the bots in the list of replicated bots.

    + */ + inline ListBotVersionReplicasResult& WithSourceRegion(const Aws::String& value) { SetSourceRegion(value); return *this;} + + /** + *

    The source region used for the bots in the list of replicated bots.

    + */ + inline ListBotVersionReplicasResult& WithSourceRegion(Aws::String&& value) { SetSourceRegion(std::move(value)); return *this;} + + /** + *

    The source region used for the bots in the list of replicated bots.

    + */ + inline ListBotVersionReplicasResult& WithSourceRegion(const char* value) { SetSourceRegion(value); return *this;} + + + /** + *

    The region used for the replicated bots in the list of replicated bots.

    + */ + inline const Aws::String& GetReplicaRegion() const{ return m_replicaRegion; } + + /** + *

    The region used for the replicated bots in the list of replicated bots.

    + */ + inline void SetReplicaRegion(const Aws::String& value) { m_replicaRegion = value; } + + /** + *

    The region used for the replicated bots in the list of replicated bots.

    + */ + inline void SetReplicaRegion(Aws::String&& value) { m_replicaRegion = std::move(value); } + + /** + *

    The region used for the replicated bots in the list of replicated bots.

    + */ + inline void SetReplicaRegion(const char* value) { m_replicaRegion.assign(value); } + + /** + *

    The region used for the replicated bots in the list of replicated bots.

    + */ + inline ListBotVersionReplicasResult& WithReplicaRegion(const Aws::String& value) { SetReplicaRegion(value); return *this;} + + /** + *

    The region used for the replicated bots in the list of replicated bots.

    + */ + inline ListBotVersionReplicasResult& WithReplicaRegion(Aws::String&& value) { SetReplicaRegion(std::move(value)); return *this;} + + /** + *

    The region used for the replicated bots in the list of replicated bots.

    + */ + inline ListBotVersionReplicasResult& WithReplicaRegion(const char* value) { SetReplicaRegion(value); return *this;} + + + /** + *

    The information summary used for the replicated bots in the list of + * replicated bots.

    + */ + inline const Aws::Vector& GetBotVersionReplicaSummaries() const{ return m_botVersionReplicaSummaries; } + + /** + *

    The information summary used for the replicated bots in the list of + * replicated bots.

    + */ + inline void SetBotVersionReplicaSummaries(const Aws::Vector& value) { m_botVersionReplicaSummaries = value; } + + /** + *

    The information summary used for the replicated bots in the list of + * replicated bots.

    + */ + inline void SetBotVersionReplicaSummaries(Aws::Vector&& value) { m_botVersionReplicaSummaries = std::move(value); } + + /** + *

    The information summary used for the replicated bots in the list of + * replicated bots.

    + */ + inline ListBotVersionReplicasResult& WithBotVersionReplicaSummaries(const Aws::Vector& value) { SetBotVersionReplicaSummaries(value); return *this;} + + /** + *

    The information summary used for the replicated bots in the list of + * replicated bots.

    + */ + inline ListBotVersionReplicasResult& WithBotVersionReplicaSummaries(Aws::Vector&& value) { SetBotVersionReplicaSummaries(std::move(value)); return *this;} + + /** + *

    The information summary used for the replicated bots in the list of + * replicated bots.

    + */ + inline ListBotVersionReplicasResult& AddBotVersionReplicaSummaries(const BotVersionReplicaSummary& value) { m_botVersionReplicaSummaries.push_back(value); return *this; } + + /** + *

    The information summary used for the replicated bots in the list of + * replicated bots.

    + */ + inline ListBotVersionReplicasResult& AddBotVersionReplicaSummaries(BotVersionReplicaSummary&& value) { m_botVersionReplicaSummaries.push_back(std::move(value)); return *this; } + + + /** + *

    The next token used for the replicated bots in the list of replicated + * bots.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

    The next token used for the replicated bots in the list of replicated + * bots.

    + */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

    The next token used for the replicated bots in the list of replicated + * bots.

    + */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

    The next token used for the replicated bots in the list of replicated + * bots.

    + */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

    The next token used for the replicated bots in the list of replicated + * bots.

    + */ + inline ListBotVersionReplicasResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

    The next token used for the replicated bots in the list of replicated + * bots.

    + */ + inline ListBotVersionReplicasResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

    The next token used for the replicated bots in the list of replicated + * bots.

    + */ + inline ListBotVersionReplicasResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline ListBotVersionReplicasResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline ListBotVersionReplicasResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline ListBotVersionReplicasResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_botId; + + Aws::String m_sourceRegion; + + Aws::String m_replicaRegion; + + Aws::Vector m_botVersionReplicaSummaries; + + Aws::String m_nextToken; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace LexModelsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/LexModelsV2Client.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/LexModelsV2Client.cpp index 0876cc41f33..dbcf3e70309 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/LexModelsV2Client.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/LexModelsV2Client.cpp @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include @@ -40,6 +41,7 @@ #include #include #include +#include #include #include #include @@ -55,6 +57,7 @@ #include #include #include +#include #include #include #include @@ -71,10 +74,13 @@ #include #include #include +#include #include #include #include +#include #include +#include #include #include #include @@ -543,6 +549,40 @@ CreateBotLocaleOutcome LexModelsV2Client::CreateBotLocale(const CreateBotLocaleR {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +CreateBotReplicaOutcome LexModelsV2Client::CreateBotReplica(const CreateBotReplicaRequest& request) const +{ + AWS_OPERATION_GUARD(CreateBotReplica); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateBotReplica, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.BotIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("CreateBotReplica", "Required field: BotId, is not set"); + return CreateBotReplicaOutcome(Aws::Client::AWSError(LexModelsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [BotId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateBotReplica, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, CreateBotReplica, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateBotReplica", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateBotReplicaOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateBotReplica, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/bots/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetBotId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/replicas/"); + return CreateBotReplicaOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + CreateBotVersionOutcome LexModelsV2Client::CreateBotVersion(const CreateBotVersionRequest& request) const { AWS_OPERATION_GUARD(CreateBotVersion); @@ -1003,6 +1043,46 @@ DeleteBotLocaleOutcome LexModelsV2Client::DeleteBotLocale(const DeleteBotLocaleR {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DeleteBotReplicaOutcome LexModelsV2Client::DeleteBotReplica(const DeleteBotReplicaRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteBotReplica); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteBotReplica, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.BotIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteBotReplica", "Required field: BotId, is not set"); + return DeleteBotReplicaOutcome(Aws::Client::AWSError(LexModelsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [BotId]", false)); + } + if (!request.ReplicaRegionHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteBotReplica", "Required field: ReplicaRegion, is not set"); + return DeleteBotReplicaOutcome(Aws::Client::AWSError(LexModelsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ReplicaRegion]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteBotReplica, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteBotReplica, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteBotReplica", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteBotReplicaOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteBotReplica, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/bots/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetBotId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/replicas/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetReplicaRegion()); + return DeleteBotReplicaOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + DeleteBotVersionOutcome LexModelsV2Client::DeleteBotVersion(const DeleteBotVersionRequest& request) const { AWS_OPERATION_GUARD(DeleteBotVersion); @@ -1640,6 +1720,46 @@ DescribeBotRecommendationOutcome LexModelsV2Client::DescribeBotRecommendation(co {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DescribeBotReplicaOutcome LexModelsV2Client::DescribeBotReplica(const DescribeBotReplicaRequest& request) const +{ + AWS_OPERATION_GUARD(DescribeBotReplica); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeBotReplica, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.BotIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DescribeBotReplica", "Required field: BotId, is not set"); + return DescribeBotReplicaOutcome(Aws::Client::AWSError(LexModelsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [BotId]", false)); + } + if (!request.ReplicaRegionHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DescribeBotReplica", "Required field: ReplicaRegion, is not set"); + return DescribeBotReplicaOutcome(Aws::Client::AWSError(LexModelsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ReplicaRegion]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeBotReplica, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DescribeBotReplica, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeBotReplica", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeBotReplicaOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeBotReplica, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/bots/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetBotId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/replicas/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetReplicaRegion()); + return DescribeBotReplicaOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + DescribeBotResourceGenerationOutcome LexModelsV2Client::DescribeBotResourceGeneration(const DescribeBotResourceGenerationRequest& request) const { AWS_OPERATION_GUARD(DescribeBotResourceGeneration); @@ -2298,6 +2418,47 @@ ListAggregatedUtterancesOutcome LexModelsV2Client::ListAggregatedUtterances(cons {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListBotAliasReplicasOutcome LexModelsV2Client::ListBotAliasReplicas(const ListBotAliasReplicasRequest& request) const +{ + AWS_OPERATION_GUARD(ListBotAliasReplicas); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListBotAliasReplicas, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.BotIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListBotAliasReplicas", "Required field: BotId, is not set"); + return ListBotAliasReplicasOutcome(Aws::Client::AWSError(LexModelsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [BotId]", false)); + } + if (!request.ReplicaRegionHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListBotAliasReplicas", "Required field: ReplicaRegion, is not set"); + return ListBotAliasReplicasOutcome(Aws::Client::AWSError(LexModelsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ReplicaRegion]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListBotAliasReplicas, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListBotAliasReplicas, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListBotAliasReplicas", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListBotAliasReplicasOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListBotAliasReplicas, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/bots/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetBotId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/replicas/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetReplicaRegion()); + endpointResolutionOutcome.GetResult().AddPathSegments("/botaliases/"); + return ListBotAliasReplicasOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ListBotAliasesOutcome LexModelsV2Client::ListBotAliases(const ListBotAliasesRequest& request) const { AWS_OPERATION_GUARD(ListBotAliases); @@ -2421,6 +2582,40 @@ ListBotRecommendationsOutcome LexModelsV2Client::ListBotRecommendations(const Li {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListBotReplicasOutcome LexModelsV2Client::ListBotReplicas(const ListBotReplicasRequest& request) const +{ + AWS_OPERATION_GUARD(ListBotReplicas); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListBotReplicas, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.BotIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListBotReplicas", "Required field: BotId, is not set"); + return ListBotReplicasOutcome(Aws::Client::AWSError(LexModelsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [BotId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListBotReplicas, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListBotReplicas, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListBotReplicas", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListBotReplicasOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListBotReplicas, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/bots/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetBotId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/replicas/"); + return ListBotReplicasOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ListBotResourceGenerationsOutcome LexModelsV2Client::ListBotResourceGenerations(const ListBotResourceGenerationsRequest& request) const { AWS_OPERATION_GUARD(ListBotResourceGenerations); @@ -2469,6 +2664,47 @@ ListBotResourceGenerationsOutcome LexModelsV2Client::ListBotResourceGenerations( {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListBotVersionReplicasOutcome LexModelsV2Client::ListBotVersionReplicas(const ListBotVersionReplicasRequest& request) const +{ + AWS_OPERATION_GUARD(ListBotVersionReplicas); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListBotVersionReplicas, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.BotIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListBotVersionReplicas", "Required field: BotId, is not set"); + return ListBotVersionReplicasOutcome(Aws::Client::AWSError(LexModelsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [BotId]", false)); + } + if (!request.ReplicaRegionHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListBotVersionReplicas", "Required field: ReplicaRegion, is not set"); + return ListBotVersionReplicasOutcome(Aws::Client::AWSError(LexModelsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ReplicaRegion]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListBotVersionReplicas, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListBotVersionReplicas, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListBotVersionReplicas", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListBotVersionReplicasOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListBotVersionReplicas, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/bots/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetBotId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/replicas/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetReplicaRegion()); + endpointResolutionOutcome.GetResult().AddPathSegments("/botversions/"); + return ListBotVersionReplicasOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ListBotVersionsOutcome LexModelsV2Client::ListBotVersions(const ListBotVersionsRequest& request) const { AWS_OPERATION_GUARD(ListBotVersions); diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotAliasReplicaSummary.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotAliasReplicaSummary.cpp new file mode 100644 index 00000000000..262b44321ec --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotAliasReplicaSummary.cpp @@ -0,0 +1,141 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace LexModelsV2 +{ +namespace Model +{ + +BotAliasReplicaSummary::BotAliasReplicaSummary() : + m_botAliasIdHasBeenSet(false), + m_botAliasReplicationStatus(BotAliasReplicationStatus::NOT_SET), + m_botAliasReplicationStatusHasBeenSet(false), + m_botVersionHasBeenSet(false), + m_creationDateTimeHasBeenSet(false), + m_lastUpdatedDateTimeHasBeenSet(false), + m_failureReasonsHasBeenSet(false) +{ +} + +BotAliasReplicaSummary::BotAliasReplicaSummary(JsonView jsonValue) : + m_botAliasIdHasBeenSet(false), + m_botAliasReplicationStatus(BotAliasReplicationStatus::NOT_SET), + m_botAliasReplicationStatusHasBeenSet(false), + m_botVersionHasBeenSet(false), + m_creationDateTimeHasBeenSet(false), + m_lastUpdatedDateTimeHasBeenSet(false), + m_failureReasonsHasBeenSet(false) +{ + *this = jsonValue; +} + +BotAliasReplicaSummary& BotAliasReplicaSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("botAliasId")) + { + m_botAliasId = jsonValue.GetString("botAliasId"); + + m_botAliasIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("botAliasReplicationStatus")) + { + m_botAliasReplicationStatus = BotAliasReplicationStatusMapper::GetBotAliasReplicationStatusForName(jsonValue.GetString("botAliasReplicationStatus")); + + m_botAliasReplicationStatusHasBeenSet = true; + } + + if(jsonValue.ValueExists("botVersion")) + { + m_botVersion = jsonValue.GetString("botVersion"); + + m_botVersionHasBeenSet = true; + } + + if(jsonValue.ValueExists("creationDateTime")) + { + m_creationDateTime = jsonValue.GetDouble("creationDateTime"); + + m_creationDateTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("lastUpdatedDateTime")) + { + m_lastUpdatedDateTime = jsonValue.GetDouble("lastUpdatedDateTime"); + + m_lastUpdatedDateTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("failureReasons")) + { + Aws::Utils::Array failureReasonsJsonList = jsonValue.GetArray("failureReasons"); + for(unsigned failureReasonsIndex = 0; failureReasonsIndex < failureReasonsJsonList.GetLength(); ++failureReasonsIndex) + { + m_failureReasons.push_back(failureReasonsJsonList[failureReasonsIndex].AsString()); + } + m_failureReasonsHasBeenSet = true; + } + + return *this; +} + +JsonValue BotAliasReplicaSummary::Jsonize() const +{ + JsonValue payload; + + if(m_botAliasIdHasBeenSet) + { + payload.WithString("botAliasId", m_botAliasId); + + } + + if(m_botAliasReplicationStatusHasBeenSet) + { + payload.WithString("botAliasReplicationStatus", BotAliasReplicationStatusMapper::GetNameForBotAliasReplicationStatus(m_botAliasReplicationStatus)); + } + + if(m_botVersionHasBeenSet) + { + payload.WithString("botVersion", m_botVersion); + + } + + if(m_creationDateTimeHasBeenSet) + { + payload.WithDouble("creationDateTime", m_creationDateTime.SecondsWithMSPrecision()); + } + + if(m_lastUpdatedDateTimeHasBeenSet) + { + payload.WithDouble("lastUpdatedDateTime", m_lastUpdatedDateTime.SecondsWithMSPrecision()); + } + + if(m_failureReasonsHasBeenSet) + { + Aws::Utils::Array failureReasonsJsonList(m_failureReasons.size()); + for(unsigned failureReasonsIndex = 0; failureReasonsIndex < failureReasonsJsonList.GetLength(); ++failureReasonsIndex) + { + failureReasonsJsonList[failureReasonsIndex].AsString(m_failureReasons[failureReasonsIndex]); + } + payload.WithArray("failureReasons", std::move(failureReasonsJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace LexModelsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotAliasReplicationStatus.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotAliasReplicationStatus.cpp new file mode 100644 index 00000000000..581b4161fe9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotAliasReplicationStatus.cpp @@ -0,0 +1,93 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace LexModelsV2 + { + namespace Model + { + namespace BotAliasReplicationStatusMapper + { + + static const int Creating_HASH = HashingUtils::HashString("Creating"); + static const int Updating_HASH = HashingUtils::HashString("Updating"); + static const int Available_HASH = HashingUtils::HashString("Available"); + static const int Deleting_HASH = HashingUtils::HashString("Deleting"); + static const int Failed_HASH = HashingUtils::HashString("Failed"); + + + BotAliasReplicationStatus GetBotAliasReplicationStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == Creating_HASH) + { + return BotAliasReplicationStatus::Creating; + } + else if (hashCode == Updating_HASH) + { + return BotAliasReplicationStatus::Updating; + } + else if (hashCode == Available_HASH) + { + return BotAliasReplicationStatus::Available; + } + else if (hashCode == Deleting_HASH) + { + return BotAliasReplicationStatus::Deleting; + } + else if (hashCode == Failed_HASH) + { + return BotAliasReplicationStatus::Failed; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return BotAliasReplicationStatus::NOT_SET; + } + + Aws::String GetNameForBotAliasReplicationStatus(BotAliasReplicationStatus enumValue) + { + switch(enumValue) + { + case BotAliasReplicationStatus::NOT_SET: + return {}; + case BotAliasReplicationStatus::Creating: + return "Creating"; + case BotAliasReplicationStatus::Updating: + return "Updating"; + case BotAliasReplicationStatus::Available: + return "Available"; + case BotAliasReplicationStatus::Deleting: + return "Deleting"; + case BotAliasReplicationStatus::Failed: + return "Failed"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace BotAliasReplicationStatusMapper + } // namespace Model + } // namespace LexModelsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotReplicaStatus.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotReplicaStatus.cpp new file mode 100644 index 00000000000..85b5379993e --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotReplicaStatus.cpp @@ -0,0 +1,86 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace LexModelsV2 + { + namespace Model + { + namespace BotReplicaStatusMapper + { + + static const int Enabling_HASH = HashingUtils::HashString("Enabling"); + static const int Enabled_HASH = HashingUtils::HashString("Enabled"); + static const int Deleting_HASH = HashingUtils::HashString("Deleting"); + static const int Failed_HASH = HashingUtils::HashString("Failed"); + + + BotReplicaStatus GetBotReplicaStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == Enabling_HASH) + { + return BotReplicaStatus::Enabling; + } + else if (hashCode == Enabled_HASH) + { + return BotReplicaStatus::Enabled; + } + else if (hashCode == Deleting_HASH) + { + return BotReplicaStatus::Deleting; + } + else if (hashCode == Failed_HASH) + { + return BotReplicaStatus::Failed; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return BotReplicaStatus::NOT_SET; + } + + Aws::String GetNameForBotReplicaStatus(BotReplicaStatus enumValue) + { + switch(enumValue) + { + case BotReplicaStatus::NOT_SET: + return {}; + case BotReplicaStatus::Enabling: + return "Enabling"; + case BotReplicaStatus::Enabled: + return "Enabled"; + case BotReplicaStatus::Deleting: + return "Deleting"; + case BotReplicaStatus::Failed: + return "Failed"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace BotReplicaStatusMapper + } // namespace Model + } // namespace LexModelsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotReplicaSummary.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotReplicaSummary.cpp new file mode 100644 index 00000000000..e8f20cc618c --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotReplicaSummary.cpp @@ -0,0 +1,112 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace LexModelsV2 +{ +namespace Model +{ + +BotReplicaSummary::BotReplicaSummary() : + m_replicaRegionHasBeenSet(false), + m_creationDateTimeHasBeenSet(false), + m_botReplicaStatus(BotReplicaStatus::NOT_SET), + m_botReplicaStatusHasBeenSet(false), + m_failureReasonsHasBeenSet(false) +{ +} + +BotReplicaSummary::BotReplicaSummary(JsonView jsonValue) : + m_replicaRegionHasBeenSet(false), + m_creationDateTimeHasBeenSet(false), + m_botReplicaStatus(BotReplicaStatus::NOT_SET), + m_botReplicaStatusHasBeenSet(false), + m_failureReasonsHasBeenSet(false) +{ + *this = jsonValue; +} + +BotReplicaSummary& BotReplicaSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("replicaRegion")) + { + m_replicaRegion = jsonValue.GetString("replicaRegion"); + + m_replicaRegionHasBeenSet = true; + } + + if(jsonValue.ValueExists("creationDateTime")) + { + m_creationDateTime = jsonValue.GetDouble("creationDateTime"); + + m_creationDateTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("botReplicaStatus")) + { + m_botReplicaStatus = BotReplicaStatusMapper::GetBotReplicaStatusForName(jsonValue.GetString("botReplicaStatus")); + + m_botReplicaStatusHasBeenSet = true; + } + + if(jsonValue.ValueExists("failureReasons")) + { + Aws::Utils::Array failureReasonsJsonList = jsonValue.GetArray("failureReasons"); + for(unsigned failureReasonsIndex = 0; failureReasonsIndex < failureReasonsJsonList.GetLength(); ++failureReasonsIndex) + { + m_failureReasons.push_back(failureReasonsJsonList[failureReasonsIndex].AsString()); + } + m_failureReasonsHasBeenSet = true; + } + + return *this; +} + +JsonValue BotReplicaSummary::Jsonize() const +{ + JsonValue payload; + + if(m_replicaRegionHasBeenSet) + { + payload.WithString("replicaRegion", m_replicaRegion); + + } + + if(m_creationDateTimeHasBeenSet) + { + payload.WithDouble("creationDateTime", m_creationDateTime.SecondsWithMSPrecision()); + } + + if(m_botReplicaStatusHasBeenSet) + { + payload.WithString("botReplicaStatus", BotReplicaStatusMapper::GetNameForBotReplicaStatus(m_botReplicaStatus)); + } + + if(m_failureReasonsHasBeenSet) + { + Aws::Utils::Array failureReasonsJsonList(m_failureReasons.size()); + for(unsigned failureReasonsIndex = 0; failureReasonsIndex < failureReasonsJsonList.GetLength(); ++failureReasonsIndex) + { + failureReasonsJsonList[failureReasonsIndex].AsString(m_failureReasons[failureReasonsIndex]); + } + payload.WithArray("failureReasons", std::move(failureReasonsJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace LexModelsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotVersionReplicaSortAttribute.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotVersionReplicaSortAttribute.cpp new file mode 100644 index 00000000000..94e6d2869d8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotVersionReplicaSortAttribute.cpp @@ -0,0 +1,65 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace LexModelsV2 + { + namespace Model + { + namespace BotVersionReplicaSortAttributeMapper + { + + static const int BotVersion_HASH = HashingUtils::HashString("BotVersion"); + + + BotVersionReplicaSortAttribute GetBotVersionReplicaSortAttributeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == BotVersion_HASH) + { + return BotVersionReplicaSortAttribute::BotVersion; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return BotVersionReplicaSortAttribute::NOT_SET; + } + + Aws::String GetNameForBotVersionReplicaSortAttribute(BotVersionReplicaSortAttribute enumValue) + { + switch(enumValue) + { + case BotVersionReplicaSortAttribute::NOT_SET: + return {}; + case BotVersionReplicaSortAttribute::BotVersion: + return "BotVersion"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace BotVersionReplicaSortAttributeMapper + } // namespace Model + } // namespace LexModelsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotVersionReplicaSortBy.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotVersionReplicaSortBy.cpp new file mode 100644 index 00000000000..2a566075183 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotVersionReplicaSortBy.cpp @@ -0,0 +1,76 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace LexModelsV2 +{ +namespace Model +{ + +BotVersionReplicaSortBy::BotVersionReplicaSortBy() : + m_attribute(BotVersionReplicaSortAttribute::NOT_SET), + m_attributeHasBeenSet(false), + m_order(SortOrder::NOT_SET), + m_orderHasBeenSet(false) +{ +} + +BotVersionReplicaSortBy::BotVersionReplicaSortBy(JsonView jsonValue) : + m_attribute(BotVersionReplicaSortAttribute::NOT_SET), + m_attributeHasBeenSet(false), + m_order(SortOrder::NOT_SET), + m_orderHasBeenSet(false) +{ + *this = jsonValue; +} + +BotVersionReplicaSortBy& BotVersionReplicaSortBy::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("attribute")) + { + m_attribute = BotVersionReplicaSortAttributeMapper::GetBotVersionReplicaSortAttributeForName(jsonValue.GetString("attribute")); + + m_attributeHasBeenSet = true; + } + + if(jsonValue.ValueExists("order")) + { + m_order = SortOrderMapper::GetSortOrderForName(jsonValue.GetString("order")); + + m_orderHasBeenSet = true; + } + + return *this; +} + +JsonValue BotVersionReplicaSortBy::Jsonize() const +{ + JsonValue payload; + + if(m_attributeHasBeenSet) + { + payload.WithString("attribute", BotVersionReplicaSortAttributeMapper::GetNameForBotVersionReplicaSortAttribute(m_attribute)); + } + + if(m_orderHasBeenSet) + { + payload.WithString("order", SortOrderMapper::GetNameForSortOrder(m_order)); + } + + return payload; +} + +} // namespace Model +} // namespace LexModelsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotVersionReplicaSummary.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotVersionReplicaSummary.cpp new file mode 100644 index 00000000000..e08765eb3e6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotVersionReplicaSummary.cpp @@ -0,0 +1,112 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace LexModelsV2 +{ +namespace Model +{ + +BotVersionReplicaSummary::BotVersionReplicaSummary() : + m_botVersionHasBeenSet(false), + m_botVersionReplicationStatus(BotVersionReplicationStatus::NOT_SET), + m_botVersionReplicationStatusHasBeenSet(false), + m_creationDateTimeHasBeenSet(false), + m_failureReasonsHasBeenSet(false) +{ +} + +BotVersionReplicaSummary::BotVersionReplicaSummary(JsonView jsonValue) : + m_botVersionHasBeenSet(false), + m_botVersionReplicationStatus(BotVersionReplicationStatus::NOT_SET), + m_botVersionReplicationStatusHasBeenSet(false), + m_creationDateTimeHasBeenSet(false), + m_failureReasonsHasBeenSet(false) +{ + *this = jsonValue; +} + +BotVersionReplicaSummary& BotVersionReplicaSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("botVersion")) + { + m_botVersion = jsonValue.GetString("botVersion"); + + m_botVersionHasBeenSet = true; + } + + if(jsonValue.ValueExists("botVersionReplicationStatus")) + { + m_botVersionReplicationStatus = BotVersionReplicationStatusMapper::GetBotVersionReplicationStatusForName(jsonValue.GetString("botVersionReplicationStatus")); + + m_botVersionReplicationStatusHasBeenSet = true; + } + + if(jsonValue.ValueExists("creationDateTime")) + { + m_creationDateTime = jsonValue.GetDouble("creationDateTime"); + + m_creationDateTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("failureReasons")) + { + Aws::Utils::Array failureReasonsJsonList = jsonValue.GetArray("failureReasons"); + for(unsigned failureReasonsIndex = 0; failureReasonsIndex < failureReasonsJsonList.GetLength(); ++failureReasonsIndex) + { + m_failureReasons.push_back(failureReasonsJsonList[failureReasonsIndex].AsString()); + } + m_failureReasonsHasBeenSet = true; + } + + return *this; +} + +JsonValue BotVersionReplicaSummary::Jsonize() const +{ + JsonValue payload; + + if(m_botVersionHasBeenSet) + { + payload.WithString("botVersion", m_botVersion); + + } + + if(m_botVersionReplicationStatusHasBeenSet) + { + payload.WithString("botVersionReplicationStatus", BotVersionReplicationStatusMapper::GetNameForBotVersionReplicationStatus(m_botVersionReplicationStatus)); + } + + if(m_creationDateTimeHasBeenSet) + { + payload.WithDouble("creationDateTime", m_creationDateTime.SecondsWithMSPrecision()); + } + + if(m_failureReasonsHasBeenSet) + { + Aws::Utils::Array failureReasonsJsonList(m_failureReasons.size()); + for(unsigned failureReasonsIndex = 0; failureReasonsIndex < failureReasonsJsonList.GetLength(); ++failureReasonsIndex) + { + failureReasonsJsonList[failureReasonsIndex].AsString(m_failureReasons[failureReasonsIndex]); + } + payload.WithArray("failureReasons", std::move(failureReasonsJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace LexModelsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotVersionReplicationStatus.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotVersionReplicationStatus.cpp new file mode 100644 index 00000000000..8411f1a6532 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotVersionReplicationStatus.cpp @@ -0,0 +1,86 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace LexModelsV2 + { + namespace Model + { + namespace BotVersionReplicationStatusMapper + { + + static const int Creating_HASH = HashingUtils::HashString("Creating"); + static const int Available_HASH = HashingUtils::HashString("Available"); + static const int Deleting_HASH = HashingUtils::HashString("Deleting"); + static const int Failed_HASH = HashingUtils::HashString("Failed"); + + + BotVersionReplicationStatus GetBotVersionReplicationStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == Creating_HASH) + { + return BotVersionReplicationStatus::Creating; + } + else if (hashCode == Available_HASH) + { + return BotVersionReplicationStatus::Available; + } + else if (hashCode == Deleting_HASH) + { + return BotVersionReplicationStatus::Deleting; + } + else if (hashCode == Failed_HASH) + { + return BotVersionReplicationStatus::Failed; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return BotVersionReplicationStatus::NOT_SET; + } + + Aws::String GetNameForBotVersionReplicationStatus(BotVersionReplicationStatus enumValue) + { + switch(enumValue) + { + case BotVersionReplicationStatus::NOT_SET: + return {}; + case BotVersionReplicationStatus::Creating: + return "Creating"; + case BotVersionReplicationStatus::Available: + return "Available"; + case BotVersionReplicationStatus::Deleting: + return "Deleting"; + case BotVersionReplicationStatus::Failed: + return "Failed"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace BotVersionReplicationStatusMapper + } // namespace Model + } // namespace LexModelsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/CreateBotReplicaRequest.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/CreateBotReplicaRequest.cpp new file mode 100644 index 00000000000..0d62e8325c8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/CreateBotReplicaRequest.cpp @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::LexModelsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateBotReplicaRequest::CreateBotReplicaRequest() : + m_botIdHasBeenSet(false), + m_replicaRegionHasBeenSet(false) +{ +} + +Aws::String CreateBotReplicaRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_replicaRegionHasBeenSet) + { + payload.WithString("replicaRegion", m_replicaRegion); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/CreateBotReplicaResult.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/CreateBotReplicaResult.cpp new file mode 100644 index 00000000000..2f6fd2ce814 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/CreateBotReplicaResult.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::LexModelsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateBotReplicaResult::CreateBotReplicaResult() : + m_botReplicaStatus(BotReplicaStatus::NOT_SET) +{ +} + +CreateBotReplicaResult::CreateBotReplicaResult(const Aws::AmazonWebServiceResult& result) : + m_botReplicaStatus(BotReplicaStatus::NOT_SET) +{ + *this = result; +} + +CreateBotReplicaResult& CreateBotReplicaResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("botId")) + { + m_botId = jsonValue.GetString("botId"); + + } + + if(jsonValue.ValueExists("replicaRegion")) + { + m_replicaRegion = jsonValue.GetString("replicaRegion"); + + } + + if(jsonValue.ValueExists("sourceRegion")) + { + m_sourceRegion = jsonValue.GetString("sourceRegion"); + + } + + if(jsonValue.ValueExists("creationDateTime")) + { + m_creationDateTime = jsonValue.GetDouble("creationDateTime"); + + } + + if(jsonValue.ValueExists("botReplicaStatus")) + { + m_botReplicaStatus = BotReplicaStatusMapper::GetBotReplicaStatusForName(jsonValue.GetString("botReplicaStatus")); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/DeleteBotReplicaRequest.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/DeleteBotReplicaRequest.cpp new file mode 100644 index 00000000000..637c506907d --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/DeleteBotReplicaRequest.cpp @@ -0,0 +1,28 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::LexModelsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteBotReplicaRequest::DeleteBotReplicaRequest() : + m_botIdHasBeenSet(false), + m_replicaRegionHasBeenSet(false) +{ +} + +Aws::String DeleteBotReplicaRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/DeleteBotReplicaResult.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/DeleteBotReplicaResult.cpp new file mode 100644 index 00000000000..a224713ebfb --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/DeleteBotReplicaResult.cpp @@ -0,0 +1,62 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::LexModelsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DeleteBotReplicaResult::DeleteBotReplicaResult() : + m_botReplicaStatus(BotReplicaStatus::NOT_SET) +{ +} + +DeleteBotReplicaResult::DeleteBotReplicaResult(const Aws::AmazonWebServiceResult& result) : + m_botReplicaStatus(BotReplicaStatus::NOT_SET) +{ + *this = result; +} + +DeleteBotReplicaResult& DeleteBotReplicaResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("botId")) + { + m_botId = jsonValue.GetString("botId"); + + } + + if(jsonValue.ValueExists("replicaRegion")) + { + m_replicaRegion = jsonValue.GetString("replicaRegion"); + + } + + if(jsonValue.ValueExists("botReplicaStatus")) + { + m_botReplicaStatus = BotReplicaStatusMapper::GetBotReplicaStatusForName(jsonValue.GetString("botReplicaStatus")); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/DescribeBotReplicaRequest.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/DescribeBotReplicaRequest.cpp new file mode 100644 index 00000000000..0c33e8f0aa0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/DescribeBotReplicaRequest.cpp @@ -0,0 +1,28 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::LexModelsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DescribeBotReplicaRequest::DescribeBotReplicaRequest() : + m_botIdHasBeenSet(false), + m_replicaRegionHasBeenSet(false) +{ +} + +Aws::String DescribeBotReplicaRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/DescribeBotReplicaResult.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/DescribeBotReplicaResult.cpp new file mode 100644 index 00000000000..1e47d22685d --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/DescribeBotReplicaResult.cpp @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::LexModelsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DescribeBotReplicaResult::DescribeBotReplicaResult() : + m_botReplicaStatus(BotReplicaStatus::NOT_SET) +{ +} + +DescribeBotReplicaResult::DescribeBotReplicaResult(const Aws::AmazonWebServiceResult& result) : + m_botReplicaStatus(BotReplicaStatus::NOT_SET) +{ + *this = result; +} + +DescribeBotReplicaResult& DescribeBotReplicaResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("botId")) + { + m_botId = jsonValue.GetString("botId"); + + } + + if(jsonValue.ValueExists("replicaRegion")) + { + m_replicaRegion = jsonValue.GetString("replicaRegion"); + + } + + if(jsonValue.ValueExists("sourceRegion")) + { + m_sourceRegion = jsonValue.GetString("sourceRegion"); + + } + + if(jsonValue.ValueExists("creationDateTime")) + { + m_creationDateTime = jsonValue.GetDouble("creationDateTime"); + + } + + if(jsonValue.ValueExists("botReplicaStatus")) + { + m_botReplicaStatus = BotReplicaStatusMapper::GetBotReplicaStatusForName(jsonValue.GetString("botReplicaStatus")); + + } + + if(jsonValue.ValueExists("failureReasons")) + { + Aws::Utils::Array failureReasonsJsonList = jsonValue.GetArray("failureReasons"); + for(unsigned failureReasonsIndex = 0; failureReasonsIndex < failureReasonsJsonList.GetLength(); ++failureReasonsIndex) + { + m_failureReasons.push_back(failureReasonsJsonList[failureReasonsIndex].AsString()); + } + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/ListBotAliasReplicasRequest.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ListBotAliasReplicasRequest.cpp new file mode 100644 index 00000000000..368812ff001 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ListBotAliasReplicasRequest.cpp @@ -0,0 +1,45 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::LexModelsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +ListBotAliasReplicasRequest::ListBotAliasReplicasRequest() : + m_botIdHasBeenSet(false), + m_replicaRegionHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false) +{ +} + +Aws::String ListBotAliasReplicasRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_maxResultsHasBeenSet) + { + payload.WithInteger("maxResults", m_maxResults); + + } + + if(m_nextTokenHasBeenSet) + { + payload.WithString("nextToken", m_nextToken); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/ListBotAliasReplicasResult.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ListBotAliasReplicasResult.cpp new file mode 100644 index 00000000000..bd102367cd4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ListBotAliasReplicasResult.cpp @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::LexModelsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListBotAliasReplicasResult::ListBotAliasReplicasResult() +{ +} + +ListBotAliasReplicasResult::ListBotAliasReplicasResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListBotAliasReplicasResult& ListBotAliasReplicasResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("botId")) + { + m_botId = jsonValue.GetString("botId"); + + } + + if(jsonValue.ValueExists("sourceRegion")) + { + m_sourceRegion = jsonValue.GetString("sourceRegion"); + + } + + if(jsonValue.ValueExists("replicaRegion")) + { + m_replicaRegion = jsonValue.GetString("replicaRegion"); + + } + + if(jsonValue.ValueExists("botAliasReplicaSummaries")) + { + Aws::Utils::Array botAliasReplicaSummariesJsonList = jsonValue.GetArray("botAliasReplicaSummaries"); + for(unsigned botAliasReplicaSummariesIndex = 0; botAliasReplicaSummariesIndex < botAliasReplicaSummariesJsonList.GetLength(); ++botAliasReplicaSummariesIndex) + { + m_botAliasReplicaSummaries.push_back(botAliasReplicaSummariesJsonList[botAliasReplicaSummariesIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/ListBotReplicasRequest.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ListBotReplicasRequest.cpp new file mode 100644 index 00000000000..83843762ff9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ListBotReplicasRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::LexModelsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +ListBotReplicasRequest::ListBotReplicasRequest() : + m_botIdHasBeenSet(false) +{ +} + +Aws::String ListBotReplicasRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/ListBotReplicasResult.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ListBotReplicasResult.cpp new file mode 100644 index 00000000000..d9b081b6125 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ListBotReplicasResult.cpp @@ -0,0 +1,63 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::LexModelsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListBotReplicasResult::ListBotReplicasResult() +{ +} + +ListBotReplicasResult::ListBotReplicasResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListBotReplicasResult& ListBotReplicasResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("botId")) + { + m_botId = jsonValue.GetString("botId"); + + } + + if(jsonValue.ValueExists("sourceRegion")) + { + m_sourceRegion = jsonValue.GetString("sourceRegion"); + + } + + if(jsonValue.ValueExists("botReplicaSummaries")) + { + Aws::Utils::Array botReplicaSummariesJsonList = jsonValue.GetArray("botReplicaSummaries"); + for(unsigned botReplicaSummariesIndex = 0; botReplicaSummariesIndex < botReplicaSummariesJsonList.GetLength(); ++botReplicaSummariesIndex) + { + m_botReplicaSummaries.push_back(botReplicaSummariesJsonList[botReplicaSummariesIndex].AsObject()); + } + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/ListBotVersionReplicasRequest.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ListBotVersionReplicasRequest.cpp new file mode 100644 index 00000000000..ae60a246c0a --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ListBotVersionReplicasRequest.cpp @@ -0,0 +1,52 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::LexModelsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +ListBotVersionReplicasRequest::ListBotVersionReplicasRequest() : + m_botIdHasBeenSet(false), + m_replicaRegionHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false), + m_sortByHasBeenSet(false) +{ +} + +Aws::String ListBotVersionReplicasRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_maxResultsHasBeenSet) + { + payload.WithInteger("maxResults", m_maxResults); + + } + + if(m_nextTokenHasBeenSet) + { + payload.WithString("nextToken", m_nextToken); + + } + + if(m_sortByHasBeenSet) + { + payload.WithObject("sortBy", m_sortBy.Jsonize()); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/ListBotVersionReplicasResult.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ListBotVersionReplicasResult.cpp new file mode 100644 index 00000000000..4839193b495 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ListBotVersionReplicasResult.cpp @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::LexModelsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListBotVersionReplicasResult::ListBotVersionReplicasResult() +{ +} + +ListBotVersionReplicasResult::ListBotVersionReplicasResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListBotVersionReplicasResult& ListBotVersionReplicasResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("botId")) + { + m_botId = jsonValue.GetString("botId"); + + } + + if(jsonValue.ValueExists("sourceRegion")) + { + m_sourceRegion = jsonValue.GetString("sourceRegion"); + + } + + if(jsonValue.ValueExists("replicaRegion")) + { + m_replicaRegion = jsonValue.GetString("replicaRegion"); + + } + + if(jsonValue.ValueExists("botVersionReplicaSummaries")) + { + Aws::Utils::Array botVersionReplicaSummariesJsonList = jsonValue.GetArray("botVersionReplicaSummaries"); + for(unsigned botVersionReplicaSummariesIndex = 0; botVersionReplicaSummariesIndex < botVersionReplicaSummariesJsonList.GetLength(); ++botVersionReplicaSummariesIndex) + { + m_botVersionReplicaSummaries.push_back(botVersionReplicaSummariesJsonList[botVersionReplicaSummariesIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-redshift/include/aws/redshift/RedshiftClient.h b/generated/src/aws-cpp-sdk-redshift/include/aws/redshift/RedshiftClient.h index 7d2dfe9c6f4..49bf1934e8a 100644 --- a/generated/src/aws-cpp-sdk-redshift/include/aws/redshift/RedshiftClient.h +++ b/generated/src/aws-cpp-sdk-redshift/include/aws/redshift/RedshiftClient.h @@ -3004,6 +3004,33 @@ namespace Redshift return SubmitAsync(&RedshiftClient::GetResourcePolicy, request, handler, context); } + /** + *

    List the Amazon Redshift Advisor recommendations for one or multiple Amazon + * Redshift clusters in an Amazon Web Services account.

    See Also:

    + * AWS + * API Reference

    + */ + virtual Model::ListRecommendationsOutcome ListRecommendations(const Model::ListRecommendationsRequest& request) const; + + /** + * A Callable wrapper for ListRecommendations that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListRecommendationsOutcomeCallable ListRecommendationsCallable(const ListRecommendationsRequestT& request) const + { + return SubmitCallable(&RedshiftClient::ListRecommendations, request); + } + + /** + * An Async wrapper for ListRecommendations that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListRecommendationsAsync(const ListRecommendationsRequestT& request, const ListRecommendationsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&RedshiftClient::ListRecommendations, request, handler, context); + } + /** *

    This operation is retired. Calling this operation does not change AQUA * configuration. Amazon Redshift automatically determines whether to use AQUA diff --git a/generated/src/aws-cpp-sdk-redshift/include/aws/redshift/RedshiftServiceClientModel.h b/generated/src/aws-cpp-sdk-redshift/include/aws/redshift/RedshiftServiceClientModel.h index fd7bb092d62..0e6b0b77d9e 100644 --- a/generated/src/aws-cpp-sdk-redshift/include/aws/redshift/RedshiftServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-redshift/include/aws/redshift/RedshiftServiceClientModel.h @@ -102,6 +102,7 @@ #include #include #include +#include #include #include #include @@ -274,6 +275,7 @@ namespace Aws class GetReservedNodeExchangeConfigurationOptionsRequest; class GetReservedNodeExchangeOfferingsRequest; class GetResourcePolicyRequest; + class ListRecommendationsRequest; class ModifyAquaConfigurationRequest; class ModifyAuthenticationProfileRequest; class ModifyClusterRequest; @@ -409,6 +411,7 @@ namespace Aws typedef Aws::Utils::Outcome GetReservedNodeExchangeConfigurationOptionsOutcome; typedef Aws::Utils::Outcome GetReservedNodeExchangeOfferingsOutcome; typedef Aws::Utils::Outcome GetResourcePolicyOutcome; + typedef Aws::Utils::Outcome ListRecommendationsOutcome; typedef Aws::Utils::Outcome ModifyAquaConfigurationOutcome; typedef Aws::Utils::Outcome ModifyAuthenticationProfileOutcome; typedef Aws::Utils::Outcome ModifyClusterOutcome; @@ -544,6 +547,7 @@ namespace Aws typedef std::future GetReservedNodeExchangeConfigurationOptionsOutcomeCallable; typedef std::future GetReservedNodeExchangeOfferingsOutcomeCallable; typedef std::future GetResourcePolicyOutcomeCallable; + typedef std::future ListRecommendationsOutcomeCallable; typedef std::future ModifyAquaConfigurationOutcomeCallable; typedef std::future ModifyAuthenticationProfileOutcomeCallable; typedef std::future ModifyClusterOutcomeCallable; @@ -682,6 +686,7 @@ namespace Aws typedef std::function&) > GetReservedNodeExchangeConfigurationOptionsResponseReceivedHandler; typedef std::function&) > GetReservedNodeExchangeOfferingsResponseReceivedHandler; typedef std::function&) > GetResourcePolicyResponseReceivedHandler; + typedef std::function&) > ListRecommendationsResponseReceivedHandler; typedef std::function&) > ModifyAquaConfigurationResponseReceivedHandler; typedef std::function&) > ModifyAuthenticationProfileResponseReceivedHandler; typedef std::function&) > ModifyClusterResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-redshift/include/aws/redshift/model/ImpactRankingType.h b/generated/src/aws-cpp-sdk-redshift/include/aws/redshift/model/ImpactRankingType.h new file mode 100644 index 00000000000..26827c1afd6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-redshift/include/aws/redshift/model/ImpactRankingType.h @@ -0,0 +1,32 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace Redshift +{ +namespace Model +{ + enum class ImpactRankingType + { + NOT_SET, + HIGH, + MEDIUM, + LOW + }; + +namespace ImpactRankingTypeMapper +{ +AWS_REDSHIFT_API ImpactRankingType GetImpactRankingTypeForName(const Aws::String& name); + +AWS_REDSHIFT_API Aws::String GetNameForImpactRankingType(ImpactRankingType value); +} // namespace ImpactRankingTypeMapper +} // namespace Model +} // namespace Redshift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-redshift/include/aws/redshift/model/ListRecommendationsRequest.h b/generated/src/aws-cpp-sdk-redshift/include/aws/redshift/model/ListRecommendationsRequest.h new file mode 100644 index 00000000000..a89b8cf8207 --- /dev/null +++ b/generated/src/aws-cpp-sdk-redshift/include/aws/redshift/model/ListRecommendationsRequest.h @@ -0,0 +1,291 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Redshift +{ +namespace Model +{ + + /** + */ + class ListRecommendationsRequest : public RedshiftRequest + { + public: + AWS_REDSHIFT_API ListRecommendationsRequest(); + + // 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 "ListRecommendations"; } + + AWS_REDSHIFT_API Aws::String SerializePayload() const override; + + protected: + AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; + + public: + + /** + *

    The unique identifier of the Amazon Redshift cluster for which the list of + * Advisor recommendations is returned. If the neither the cluster identifier and + * the cluster namespace ARN parameters are specified, then recommendations for all + * clusters in the account are returned.

    + */ + inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; } + + /** + *

    The unique identifier of the Amazon Redshift cluster for which the list of + * Advisor recommendations is returned. If the neither the cluster identifier and + * the cluster namespace ARN parameters are specified, then recommendations for all + * clusters in the account are returned.

    + */ + inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; } + + /** + *

    The unique identifier of the Amazon Redshift cluster for which the list of + * Advisor recommendations is returned. If the neither the cluster identifier and + * the cluster namespace ARN parameters are specified, then recommendations for all + * clusters in the account are returned.

    + */ + inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; } + + /** + *

    The unique identifier of the Amazon Redshift cluster for which the list of + * Advisor recommendations is returned. If the neither the cluster identifier and + * the cluster namespace ARN parameters are specified, then recommendations for all + * clusters in the account are returned.

    + */ + inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); } + + /** + *

    The unique identifier of the Amazon Redshift cluster for which the list of + * Advisor recommendations is returned. If the neither the cluster identifier and + * the cluster namespace ARN parameters are specified, then recommendations for all + * clusters in the account are returned.

    + */ + inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); } + + /** + *

    The unique identifier of the Amazon Redshift cluster for which the list of + * Advisor recommendations is returned. If the neither the cluster identifier and + * the cluster namespace ARN parameters are specified, then recommendations for all + * clusters in the account are returned.

    + */ + inline ListRecommendationsRequest& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;} + + /** + *

    The unique identifier of the Amazon Redshift cluster for which the list of + * Advisor recommendations is returned. If the neither the cluster identifier and + * the cluster namespace ARN parameters are specified, then recommendations for all + * clusters in the account are returned.

    + */ + inline ListRecommendationsRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;} + + /** + *

    The unique identifier of the Amazon Redshift cluster for which the list of + * Advisor recommendations is returned. If the neither the cluster identifier and + * the cluster namespace ARN parameters are specified, then recommendations for all + * clusters in the account are returned.

    + */ + inline ListRecommendationsRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;} + + + /** + *

    The Amazon Redshift cluster namespace Amazon Resource Name (ARN) for which + * the list of Advisor recommendations is returned. If the neither the cluster + * identifier and the cluster namespace ARN parameters are specified, then + * recommendations for all clusters in the account are returned.

    + */ + inline const Aws::String& GetNamespaceArn() const{ return m_namespaceArn; } + + /** + *

    The Amazon Redshift cluster namespace Amazon Resource Name (ARN) for which + * the list of Advisor recommendations is returned. If the neither the cluster + * identifier and the cluster namespace ARN parameters are specified, then + * recommendations for all clusters in the account are returned.

    + */ + inline bool NamespaceArnHasBeenSet() const { return m_namespaceArnHasBeenSet; } + + /** + *

    The Amazon Redshift cluster namespace Amazon Resource Name (ARN) for which + * the list of Advisor recommendations is returned. If the neither the cluster + * identifier and the cluster namespace ARN parameters are specified, then + * recommendations for all clusters in the account are returned.

    + */ + inline void SetNamespaceArn(const Aws::String& value) { m_namespaceArnHasBeenSet = true; m_namespaceArn = value; } + + /** + *

    The Amazon Redshift cluster namespace Amazon Resource Name (ARN) for which + * the list of Advisor recommendations is returned. If the neither the cluster + * identifier and the cluster namespace ARN parameters are specified, then + * recommendations for all clusters in the account are returned.

    + */ + inline void SetNamespaceArn(Aws::String&& value) { m_namespaceArnHasBeenSet = true; m_namespaceArn = std::move(value); } + + /** + *

    The Amazon Redshift cluster namespace Amazon Resource Name (ARN) for which + * the list of Advisor recommendations is returned. If the neither the cluster + * identifier and the cluster namespace ARN parameters are specified, then + * recommendations for all clusters in the account are returned.

    + */ + inline void SetNamespaceArn(const char* value) { m_namespaceArnHasBeenSet = true; m_namespaceArn.assign(value); } + + /** + *

    The Amazon Redshift cluster namespace Amazon Resource Name (ARN) for which + * the list of Advisor recommendations is returned. If the neither the cluster + * identifier and the cluster namespace ARN parameters are specified, then + * recommendations for all clusters in the account are returned.

    + */ + inline ListRecommendationsRequest& WithNamespaceArn(const Aws::String& value) { SetNamespaceArn(value); return *this;} + + /** + *

    The Amazon Redshift cluster namespace Amazon Resource Name (ARN) for which + * the list of Advisor recommendations is returned. If the neither the cluster + * identifier and the cluster namespace ARN parameters are specified, then + * recommendations for all clusters in the account are returned.

    + */ + inline ListRecommendationsRequest& WithNamespaceArn(Aws::String&& value) { SetNamespaceArn(std::move(value)); return *this;} + + /** + *

    The Amazon Redshift cluster namespace Amazon Resource Name (ARN) for which + * the list of Advisor recommendations is returned. If the neither the cluster + * identifier and the cluster namespace ARN parameters are specified, then + * recommendations for all clusters in the account are returned.

    + */ + inline ListRecommendationsRequest& WithNamespaceArn(const char* value) { SetNamespaceArn(value); return *this;} + + + /** + *

    The maximum number of response records to return in each call. If the number + * of remaining response records exceeds the specified MaxRecords value, a value is + * returned in a marker field of the response. You can retrieve the next set of + * records by retrying the command with the returned marker value.

    + */ + inline int GetMaxRecords() const{ return m_maxRecords; } + + /** + *

    The maximum number of response records to return in each call. If the number + * of remaining response records exceeds the specified MaxRecords value, a value is + * returned in a marker field of the response. You can retrieve the next set of + * records by retrying the command with the returned marker value.

    + */ + inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; } + + /** + *

    The maximum number of response records to return in each call. If the number + * of remaining response records exceeds the specified MaxRecords value, a value is + * returned in a marker field of the response. You can retrieve the next set of + * records by retrying the command with the returned marker value.

    + */ + inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; } + + /** + *

    The maximum number of response records to return in each call. If the number + * of remaining response records exceeds the specified MaxRecords value, a value is + * returned in a marker field of the response. You can retrieve the next set of + * records by retrying the command with the returned marker value.

    + */ + inline ListRecommendationsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;} + + + /** + *

    A value that indicates the starting point for the next set of response + * records in a subsequent request. If a value is returned in a response, you can + * retrieve the next set of records by providing this returned marker value in the + * Marker parameter and retrying the command. If the Marker field is empty, all + * response records have been retrieved for the request.

    + */ + inline const Aws::String& GetMarker() const{ return m_marker; } + + /** + *

    A value that indicates the starting point for the next set of response + * records in a subsequent request. If a value is returned in a response, you can + * retrieve the next set of records by providing this returned marker value in the + * Marker parameter and retrying the command. If the Marker field is empty, all + * response records have been retrieved for the request.

    + */ + inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; } + + /** + *

    A value that indicates the starting point for the next set of response + * records in a subsequent request. If a value is returned in a response, you can + * retrieve the next set of records by providing this returned marker value in the + * Marker parameter and retrying the command. If the Marker field is empty, all + * response records have been retrieved for the request.

    + */ + inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; } + + /** + *

    A value that indicates the starting point for the next set of response + * records in a subsequent request. If a value is returned in a response, you can + * retrieve the next set of records by providing this returned marker value in the + * Marker parameter and retrying the command. If the Marker field is empty, all + * response records have been retrieved for the request.

    + */ + inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); } + + /** + *

    A value that indicates the starting point for the next set of response + * records in a subsequent request. If a value is returned in a response, you can + * retrieve the next set of records by providing this returned marker value in the + * Marker parameter and retrying the command. If the Marker field is empty, all + * response records have been retrieved for the request.

    + */ + inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); } + + /** + *

    A value that indicates the starting point for the next set of response + * records in a subsequent request. If a value is returned in a response, you can + * retrieve the next set of records by providing this returned marker value in the + * Marker parameter and retrying the command. If the Marker field is empty, all + * response records have been retrieved for the request.

    + */ + inline ListRecommendationsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;} + + /** + *

    A value that indicates the starting point for the next set of response + * records in a subsequent request. If a value is returned in a response, you can + * retrieve the next set of records by providing this returned marker value in the + * Marker parameter and retrying the command. If the Marker field is empty, all + * response records have been retrieved for the request.

    + */ + inline ListRecommendationsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;} + + /** + *

    A value that indicates the starting point for the next set of response + * records in a subsequent request. If a value is returned in a response, you can + * retrieve the next set of records by providing this returned marker value in the + * Marker parameter and retrying the command. If the Marker field is empty, all + * response records have been retrieved for the request.

    + */ + inline ListRecommendationsRequest& WithMarker(const char* value) { SetMarker(value); return *this;} + + private: + + Aws::String m_clusterIdentifier; + bool m_clusterIdentifierHasBeenSet = false; + + Aws::String m_namespaceArn; + bool m_namespaceArnHasBeenSet = false; + + int m_maxRecords; + bool m_maxRecordsHasBeenSet = false; + + Aws::String m_marker; + bool m_markerHasBeenSet = false; + }; + +} // namespace Model +} // namespace Redshift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-redshift/include/aws/redshift/model/ListRecommendationsResult.h b/generated/src/aws-cpp-sdk-redshift/include/aws/redshift/model/ListRecommendationsResult.h new file mode 100644 index 00000000000..7b591161b28 --- /dev/null +++ b/generated/src/aws-cpp-sdk-redshift/include/aws/redshift/model/ListRecommendationsResult.h @@ -0,0 +1,164 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Xml +{ + class XmlDocument; +} // namespace Xml +} // namespace Utils +namespace Redshift +{ +namespace Model +{ + class ListRecommendationsResult + { + public: + AWS_REDSHIFT_API ListRecommendationsResult(); + AWS_REDSHIFT_API ListRecommendationsResult(const Aws::AmazonWebServiceResult& result); + AWS_REDSHIFT_API ListRecommendationsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The Advisor recommendations for action on the Amazon Redshift cluster.

    + */ + inline const Aws::Vector& GetRecommendations() const{ return m_recommendations; } + + /** + *

    The Advisor recommendations for action on the Amazon Redshift cluster.

    + */ + inline void SetRecommendations(const Aws::Vector& value) { m_recommendations = value; } + + /** + *

    The Advisor recommendations for action on the Amazon Redshift cluster.

    + */ + inline void SetRecommendations(Aws::Vector&& value) { m_recommendations = std::move(value); } + + /** + *

    The Advisor recommendations for action on the Amazon Redshift cluster.

    + */ + inline ListRecommendationsResult& WithRecommendations(const Aws::Vector& value) { SetRecommendations(value); return *this;} + + /** + *

    The Advisor recommendations for action on the Amazon Redshift cluster.

    + */ + inline ListRecommendationsResult& WithRecommendations(Aws::Vector&& value) { SetRecommendations(std::move(value)); return *this;} + + /** + *

    The Advisor recommendations for action on the Amazon Redshift cluster.

    + */ + inline ListRecommendationsResult& AddRecommendations(const Recommendation& value) { m_recommendations.push_back(value); return *this; } + + /** + *

    The Advisor recommendations for action on the Amazon Redshift cluster.

    + */ + inline ListRecommendationsResult& AddRecommendations(Recommendation&& value) { m_recommendations.push_back(std::move(value)); return *this; } + + + /** + *

    A value that indicates the starting point for the next set of response + * records in a subsequent request. If a value is returned in a response, you can + * retrieve the next set of records by providing this returned marker value in the + * Marker parameter and retrying the command. If the Marker field is empty, all + * response records have been retrieved for the request.

    + */ + inline const Aws::String& GetMarker() const{ return m_marker; } + + /** + *

    A value that indicates the starting point for the next set of response + * records in a subsequent request. If a value is returned in a response, you can + * retrieve the next set of records by providing this returned marker value in the + * Marker parameter and retrying the command. If the Marker field is empty, all + * response records have been retrieved for the request.

    + */ + inline void SetMarker(const Aws::String& value) { m_marker = value; } + + /** + *

    A value that indicates the starting point for the next set of response + * records in a subsequent request. If a value is returned in a response, you can + * retrieve the next set of records by providing this returned marker value in the + * Marker parameter and retrying the command. If the Marker field is empty, all + * response records have been retrieved for the request.

    + */ + inline void SetMarker(Aws::String&& value) { m_marker = std::move(value); } + + /** + *

    A value that indicates the starting point for the next set of response + * records in a subsequent request. If a value is returned in a response, you can + * retrieve the next set of records by providing this returned marker value in the + * Marker parameter and retrying the command. If the Marker field is empty, all + * response records have been retrieved for the request.

    + */ + inline void SetMarker(const char* value) { m_marker.assign(value); } + + /** + *

    A value that indicates the starting point for the next set of response + * records in a subsequent request. If a value is returned in a response, you can + * retrieve the next set of records by providing this returned marker value in the + * Marker parameter and retrying the command. If the Marker field is empty, all + * response records have been retrieved for the request.

    + */ + inline ListRecommendationsResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;} + + /** + *

    A value that indicates the starting point for the next set of response + * records in a subsequent request. If a value is returned in a response, you can + * retrieve the next set of records by providing this returned marker value in the + * Marker parameter and retrying the command. If the Marker field is empty, all + * response records have been retrieved for the request.

    + */ + inline ListRecommendationsResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;} + + /** + *

    A value that indicates the starting point for the next set of response + * records in a subsequent request. If a value is returned in a response, you can + * retrieve the next set of records by providing this returned marker value in the + * Marker parameter and retrying the command. If the Marker field is empty, all + * response records have been retrieved for the request.

    + */ + inline ListRecommendationsResult& WithMarker(const char* value) { SetMarker(value); return *this;} + + + + inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } + + + inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } + + + inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } + + + inline ListRecommendationsResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} + + + inline ListRecommendationsResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} + + private: + + Aws::Vector m_recommendations; + + Aws::String m_marker; + + ResponseMetadata m_responseMetadata; + }; + +} // namespace Model +} // namespace Redshift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-redshift/include/aws/redshift/model/Recommendation.h b/generated/src/aws-cpp-sdk-redshift/include/aws/redshift/model/Recommendation.h new file mode 100644 index 00000000000..1adf894a03c --- /dev/null +++ b/generated/src/aws-cpp-sdk-redshift/include/aws/redshift/model/Recommendation.h @@ -0,0 +1,590 @@ +/** + * 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 Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace Redshift +{ +namespace Model +{ + + /** + *

    An Amazon Redshift Advisor recommended action on the Amazon Redshift + * cluster.

    See Also:

    AWS + * API Reference

    + */ + class Recommendation + { + public: + AWS_REDSHIFT_API Recommendation(); + AWS_REDSHIFT_API Recommendation(const Aws::Utils::Xml::XmlNode& xmlNode); + AWS_REDSHIFT_API Recommendation& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); + + AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; + AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const; + + + /** + *

    A unique identifier of the Advisor recommendation.

    + */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

    A unique identifier of the Advisor recommendation.

    + */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

    A unique identifier of the Advisor recommendation.

    + */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

    A unique identifier of the Advisor recommendation.

    + */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

    A unique identifier of the Advisor recommendation.

    + */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

    A unique identifier of the Advisor recommendation.

    + */ + inline Recommendation& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

    A unique identifier of the Advisor recommendation.

    + */ + inline Recommendation& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

    A unique identifier of the Advisor recommendation.

    + */ + inline Recommendation& WithId(const char* value) { SetId(value); return *this;} + + + /** + *

    The unique identifier of the cluster for which the recommendation is + * returned.

    + */ + inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; } + + /** + *

    The unique identifier of the cluster for which the recommendation is + * returned.

    + */ + inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; } + + /** + *

    The unique identifier of the cluster for which the recommendation is + * returned.

    + */ + inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; } + + /** + *

    The unique identifier of the cluster for which the recommendation is + * returned.

    + */ + inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); } + + /** + *

    The unique identifier of the cluster for which the recommendation is + * returned.

    + */ + inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); } + + /** + *

    The unique identifier of the cluster for which the recommendation is + * returned.

    + */ + inline Recommendation& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;} + + /** + *

    The unique identifier of the cluster for which the recommendation is + * returned.

    + */ + inline Recommendation& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;} + + /** + *

    The unique identifier of the cluster for which the recommendation is + * returned.

    + */ + inline Recommendation& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;} + + + /** + *

    The Amazon Redshift cluster namespace ARN for which the recommendations is + * returned.

    + */ + inline const Aws::String& GetNamespaceArn() const{ return m_namespaceArn; } + + /** + *

    The Amazon Redshift cluster namespace ARN for which the recommendations is + * returned.

    + */ + inline bool NamespaceArnHasBeenSet() const { return m_namespaceArnHasBeenSet; } + + /** + *

    The Amazon Redshift cluster namespace ARN for which the recommendations is + * returned.

    + */ + inline void SetNamespaceArn(const Aws::String& value) { m_namespaceArnHasBeenSet = true; m_namespaceArn = value; } + + /** + *

    The Amazon Redshift cluster namespace ARN for which the recommendations is + * returned.

    + */ + inline void SetNamespaceArn(Aws::String&& value) { m_namespaceArnHasBeenSet = true; m_namespaceArn = std::move(value); } + + /** + *

    The Amazon Redshift cluster namespace ARN for which the recommendations is + * returned.

    + */ + inline void SetNamespaceArn(const char* value) { m_namespaceArnHasBeenSet = true; m_namespaceArn.assign(value); } + + /** + *

    The Amazon Redshift cluster namespace ARN for which the recommendations is + * returned.

    + */ + inline Recommendation& WithNamespaceArn(const Aws::String& value) { SetNamespaceArn(value); return *this;} + + /** + *

    The Amazon Redshift cluster namespace ARN for which the recommendations is + * returned.

    + */ + inline Recommendation& WithNamespaceArn(Aws::String&& value) { SetNamespaceArn(std::move(value)); return *this;} + + /** + *

    The Amazon Redshift cluster namespace ARN for which the recommendations is + * returned.

    + */ + inline Recommendation& WithNamespaceArn(const char* value) { SetNamespaceArn(value); return *this;} + + + /** + *

    The date and time (UTC) that the recommendation was created.

    + */ + inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } + + /** + *

    The date and time (UTC) that the recommendation was created.

    + */ + inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } + + /** + *

    The date and time (UTC) that the recommendation was created.

    + */ + inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } + + /** + *

    The date and time (UTC) that the recommendation was created.

    + */ + inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } + + /** + *

    The date and time (UTC) that the recommendation was created.

    + */ + inline Recommendation& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} + + /** + *

    The date and time (UTC) that the recommendation was created.

    + */ + inline Recommendation& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} + + + /** + *

    The type of Advisor recommendation.

    + */ + inline const Aws::String& GetRecommendationType() const{ return m_recommendationType; } + + /** + *

    The type of Advisor recommendation.

    + */ + inline bool RecommendationTypeHasBeenSet() const { return m_recommendationTypeHasBeenSet; } + + /** + *

    The type of Advisor recommendation.

    + */ + inline void SetRecommendationType(const Aws::String& value) { m_recommendationTypeHasBeenSet = true; m_recommendationType = value; } + + /** + *

    The type of Advisor recommendation.

    + */ + inline void SetRecommendationType(Aws::String&& value) { m_recommendationTypeHasBeenSet = true; m_recommendationType = std::move(value); } + + /** + *

    The type of Advisor recommendation.

    + */ + inline void SetRecommendationType(const char* value) { m_recommendationTypeHasBeenSet = true; m_recommendationType.assign(value); } + + /** + *

    The type of Advisor recommendation.

    + */ + inline Recommendation& WithRecommendationType(const Aws::String& value) { SetRecommendationType(value); return *this;} + + /** + *

    The type of Advisor recommendation.

    + */ + inline Recommendation& WithRecommendationType(Aws::String&& value) { SetRecommendationType(std::move(value)); return *this;} + + /** + *

    The type of Advisor recommendation.

    + */ + inline Recommendation& WithRecommendationType(const char* value) { SetRecommendationType(value); return *this;} + + + /** + *

    The title of the recommendation.

    + */ + inline const Aws::String& GetTitle() const{ return m_title; } + + /** + *

    The title of the recommendation.

    + */ + inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; } + + /** + *

    The title of the recommendation.

    + */ + inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; } + + /** + *

    The title of the recommendation.

    + */ + inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); } + + /** + *

    The title of the recommendation.

    + */ + inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); } + + /** + *

    The title of the recommendation.

    + */ + inline Recommendation& WithTitle(const Aws::String& value) { SetTitle(value); return *this;} + + /** + *

    The title of the recommendation.

    + */ + inline Recommendation& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;} + + /** + *

    The title of the recommendation.

    + */ + inline Recommendation& WithTitle(const char* value) { SetTitle(value); return *this;} + + + /** + *

    The description of the recommendation.

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

    The description of the recommendation.

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

    The description of the recommendation.

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

    The description of the recommendation.

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

    The description of the recommendation.

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

    The description of the recommendation.

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

    The description of the recommendation.

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

    The description of the recommendation.

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

    The description of what was observed about your cluster.

    + */ + inline const Aws::String& GetObservation() const{ return m_observation; } + + /** + *

    The description of what was observed about your cluster.

    + */ + inline bool ObservationHasBeenSet() const { return m_observationHasBeenSet; } + + /** + *

    The description of what was observed about your cluster.

    + */ + inline void SetObservation(const Aws::String& value) { m_observationHasBeenSet = true; m_observation = value; } + + /** + *

    The description of what was observed about your cluster.

    + */ + inline void SetObservation(Aws::String&& value) { m_observationHasBeenSet = true; m_observation = std::move(value); } + + /** + *

    The description of what was observed about your cluster.

    + */ + inline void SetObservation(const char* value) { m_observationHasBeenSet = true; m_observation.assign(value); } + + /** + *

    The description of what was observed about your cluster.

    + */ + inline Recommendation& WithObservation(const Aws::String& value) { SetObservation(value); return *this;} + + /** + *

    The description of what was observed about your cluster.

    + */ + inline Recommendation& WithObservation(Aws::String&& value) { SetObservation(std::move(value)); return *this;} + + /** + *

    The description of what was observed about your cluster.

    + */ + inline Recommendation& WithObservation(const char* value) { SetObservation(value); return *this;} + + + /** + *

    The scale of the impact that the Advisor recommendation has to the + * performance and cost of the cluster.

    + */ + inline const ImpactRankingType& GetImpactRanking() const{ return m_impactRanking; } + + /** + *

    The scale of the impact that the Advisor recommendation has to the + * performance and cost of the cluster.

    + */ + inline bool ImpactRankingHasBeenSet() const { return m_impactRankingHasBeenSet; } + + /** + *

    The scale of the impact that the Advisor recommendation has to the + * performance and cost of the cluster.

    + */ + inline void SetImpactRanking(const ImpactRankingType& value) { m_impactRankingHasBeenSet = true; m_impactRanking = value; } + + /** + *

    The scale of the impact that the Advisor recommendation has to the + * performance and cost of the cluster.

    + */ + inline void SetImpactRanking(ImpactRankingType&& value) { m_impactRankingHasBeenSet = true; m_impactRanking = std::move(value); } + + /** + *

    The scale of the impact that the Advisor recommendation has to the + * performance and cost of the cluster.

    + */ + inline Recommendation& WithImpactRanking(const ImpactRankingType& value) { SetImpactRanking(value); return *this;} + + /** + *

    The scale of the impact that the Advisor recommendation has to the + * performance and cost of the cluster.

    + */ + inline Recommendation& WithImpactRanking(ImpactRankingType&& value) { SetImpactRanking(std::move(value)); return *this;} + + + /** + *

    The description of the recommendation.

    + */ + inline const Aws::String& GetRecommendationText() const{ return m_recommendationText; } + + /** + *

    The description of the recommendation.

    + */ + inline bool RecommendationTextHasBeenSet() const { return m_recommendationTextHasBeenSet; } + + /** + *

    The description of the recommendation.

    + */ + inline void SetRecommendationText(const Aws::String& value) { m_recommendationTextHasBeenSet = true; m_recommendationText = value; } + + /** + *

    The description of the recommendation.

    + */ + inline void SetRecommendationText(Aws::String&& value) { m_recommendationTextHasBeenSet = true; m_recommendationText = std::move(value); } + + /** + *

    The description of the recommendation.

    + */ + inline void SetRecommendationText(const char* value) { m_recommendationTextHasBeenSet = true; m_recommendationText.assign(value); } + + /** + *

    The description of the recommendation.

    + */ + inline Recommendation& WithRecommendationText(const Aws::String& value) { SetRecommendationText(value); return *this;} + + /** + *

    The description of the recommendation.

    + */ + inline Recommendation& WithRecommendationText(Aws::String&& value) { SetRecommendationText(std::move(value)); return *this;} + + /** + *

    The description of the recommendation.

    + */ + inline Recommendation& WithRecommendationText(const char* value) { SetRecommendationText(value); return *this;} + + + /** + *

    List of Amazon Redshift recommended actions.

    + */ + inline const Aws::Vector& GetRecommendedActions() const{ return m_recommendedActions; } + + /** + *

    List of Amazon Redshift recommended actions.

    + */ + inline bool RecommendedActionsHasBeenSet() const { return m_recommendedActionsHasBeenSet; } + + /** + *

    List of Amazon Redshift recommended actions.

    + */ + inline void SetRecommendedActions(const Aws::Vector& value) { m_recommendedActionsHasBeenSet = true; m_recommendedActions = value; } + + /** + *

    List of Amazon Redshift recommended actions.

    + */ + inline void SetRecommendedActions(Aws::Vector&& value) { m_recommendedActionsHasBeenSet = true; m_recommendedActions = std::move(value); } + + /** + *

    List of Amazon Redshift recommended actions.

    + */ + inline Recommendation& WithRecommendedActions(const Aws::Vector& value) { SetRecommendedActions(value); return *this;} + + /** + *

    List of Amazon Redshift recommended actions.

    + */ + inline Recommendation& WithRecommendedActions(Aws::Vector&& value) { SetRecommendedActions(std::move(value)); return *this;} + + /** + *

    List of Amazon Redshift recommended actions.

    + */ + inline Recommendation& AddRecommendedActions(const RecommendedAction& value) { m_recommendedActionsHasBeenSet = true; m_recommendedActions.push_back(value); return *this; } + + /** + *

    List of Amazon Redshift recommended actions.

    + */ + inline Recommendation& AddRecommendedActions(RecommendedAction&& value) { m_recommendedActionsHasBeenSet = true; m_recommendedActions.push_back(std::move(value)); return *this; } + + + /** + *

    List of helpful links for more information about the Advisor + * recommendation.

    + */ + inline const Aws::Vector& GetReferenceLinks() const{ return m_referenceLinks; } + + /** + *

    List of helpful links for more information about the Advisor + * recommendation.

    + */ + inline bool ReferenceLinksHasBeenSet() const { return m_referenceLinksHasBeenSet; } + + /** + *

    List of helpful links for more information about the Advisor + * recommendation.

    + */ + inline void SetReferenceLinks(const Aws::Vector& value) { m_referenceLinksHasBeenSet = true; m_referenceLinks = value; } + + /** + *

    List of helpful links for more information about the Advisor + * recommendation.

    + */ + inline void SetReferenceLinks(Aws::Vector&& value) { m_referenceLinksHasBeenSet = true; m_referenceLinks = std::move(value); } + + /** + *

    List of helpful links for more information about the Advisor + * recommendation.

    + */ + inline Recommendation& WithReferenceLinks(const Aws::Vector& value) { SetReferenceLinks(value); return *this;} + + /** + *

    List of helpful links for more information about the Advisor + * recommendation.

    + */ + inline Recommendation& WithReferenceLinks(Aws::Vector&& value) { SetReferenceLinks(std::move(value)); return *this;} + + /** + *

    List of helpful links for more information about the Advisor + * recommendation.

    + */ + inline Recommendation& AddReferenceLinks(const ReferenceLink& value) { m_referenceLinksHasBeenSet = true; m_referenceLinks.push_back(value); return *this; } + + /** + *

    List of helpful links for more information about the Advisor + * recommendation.

    + */ + inline Recommendation& AddReferenceLinks(ReferenceLink&& value) { m_referenceLinksHasBeenSet = true; m_referenceLinks.push_back(std::move(value)); return *this; } + + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + + Aws::String m_clusterIdentifier; + bool m_clusterIdentifierHasBeenSet = false; + + Aws::String m_namespaceArn; + bool m_namespaceArnHasBeenSet = false; + + Aws::Utils::DateTime m_createdAt; + bool m_createdAtHasBeenSet = false; + + Aws::String m_recommendationType; + bool m_recommendationTypeHasBeenSet = false; + + Aws::String m_title; + bool m_titleHasBeenSet = false; + + Aws::String m_description; + bool m_descriptionHasBeenSet = false; + + Aws::String m_observation; + bool m_observationHasBeenSet = false; + + ImpactRankingType m_impactRanking; + bool m_impactRankingHasBeenSet = false; + + Aws::String m_recommendationText; + bool m_recommendationTextHasBeenSet = false; + + Aws::Vector m_recommendedActions; + bool m_recommendedActionsHasBeenSet = false; + + Aws::Vector m_referenceLinks; + bool m_referenceLinksHasBeenSet = false; + }; + +} // namespace Model +} // namespace Redshift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-redshift/include/aws/redshift/model/RecommendedAction.h b/generated/src/aws-cpp-sdk-redshift/include/aws/redshift/model/RecommendedAction.h new file mode 100644 index 00000000000..f45ff2d41d6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-redshift/include/aws/redshift/model/RecommendedAction.h @@ -0,0 +1,222 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace Redshift +{ +namespace Model +{ + + /** + *

    The recommended action from the Amazon Redshift Advisor + * recommendation.

    See Also:

    AWS + * API Reference

    + */ + class RecommendedAction + { + public: + AWS_REDSHIFT_API RecommendedAction(); + AWS_REDSHIFT_API RecommendedAction(const Aws::Utils::Xml::XmlNode& xmlNode); + AWS_REDSHIFT_API RecommendedAction& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); + + AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; + AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const; + + + /** + *

    The specific instruction about the command.

    + */ + inline const Aws::String& GetText() const{ return m_text; } + + /** + *

    The specific instruction about the command.

    + */ + inline bool TextHasBeenSet() const { return m_textHasBeenSet; } + + /** + *

    The specific instruction about the command.

    + */ + inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; } + + /** + *

    The specific instruction about the command.

    + */ + inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); } + + /** + *

    The specific instruction about the command.

    + */ + inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); } + + /** + *

    The specific instruction about the command.

    + */ + inline RecommendedAction& WithText(const Aws::String& value) { SetText(value); return *this;} + + /** + *

    The specific instruction about the command.

    + */ + inline RecommendedAction& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;} + + /** + *

    The specific instruction about the command.

    + */ + inline RecommendedAction& WithText(const char* value) { SetText(value); return *this;} + + + /** + *

    The database name to perform the action on. Only applicable if the type of + * command is SQL.

    + */ + inline const Aws::String& GetDatabase() const{ return m_database; } + + /** + *

    The database name to perform the action on. Only applicable if the type of + * command is SQL.

    + */ + inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; } + + /** + *

    The database name to perform the action on. Only applicable if the type of + * command is SQL.

    + */ + inline void SetDatabase(const Aws::String& value) { m_databaseHasBeenSet = true; m_database = value; } + + /** + *

    The database name to perform the action on. Only applicable if the type of + * command is SQL.

    + */ + inline void SetDatabase(Aws::String&& value) { m_databaseHasBeenSet = true; m_database = std::move(value); } + + /** + *

    The database name to perform the action on. Only applicable if the type of + * command is SQL.

    + */ + inline void SetDatabase(const char* value) { m_databaseHasBeenSet = true; m_database.assign(value); } + + /** + *

    The database name to perform the action on. Only applicable if the type of + * command is SQL.

    + */ + inline RecommendedAction& WithDatabase(const Aws::String& value) { SetDatabase(value); return *this;} + + /** + *

    The database name to perform the action on. Only applicable if the type of + * command is SQL.

    + */ + inline RecommendedAction& WithDatabase(Aws::String&& value) { SetDatabase(std::move(value)); return *this;} + + /** + *

    The database name to perform the action on. Only applicable if the type of + * command is SQL.

    + */ + inline RecommendedAction& WithDatabase(const char* value) { SetDatabase(value); return *this;} + + + /** + *

    The command to run.

    + */ + inline const Aws::String& GetCommand() const{ return m_command; } + + /** + *

    The command to run.

    + */ + inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; } + + /** + *

    The command to run.

    + */ + inline void SetCommand(const Aws::String& value) { m_commandHasBeenSet = true; m_command = value; } + + /** + *

    The command to run.

    + */ + inline void SetCommand(Aws::String&& value) { m_commandHasBeenSet = true; m_command = std::move(value); } + + /** + *

    The command to run.

    + */ + inline void SetCommand(const char* value) { m_commandHasBeenSet = true; m_command.assign(value); } + + /** + *

    The command to run.

    + */ + inline RecommendedAction& WithCommand(const Aws::String& value) { SetCommand(value); return *this;} + + /** + *

    The command to run.

    + */ + inline RecommendedAction& WithCommand(Aws::String&& value) { SetCommand(std::move(value)); return *this;} + + /** + *

    The command to run.

    + */ + inline RecommendedAction& WithCommand(const char* value) { SetCommand(value); return *this;} + + + /** + *

    The type of command.

    + */ + inline const RecommendedActionType& GetType() const{ return m_type; } + + /** + *

    The type of command.

    + */ + inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } + + /** + *

    The type of command.

    + */ + inline void SetType(const RecommendedActionType& value) { m_typeHasBeenSet = true; m_type = value; } + + /** + *

    The type of command.

    + */ + inline void SetType(RecommendedActionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } + + /** + *

    The type of command.

    + */ + inline RecommendedAction& WithType(const RecommendedActionType& value) { SetType(value); return *this;} + + /** + *

    The type of command.

    + */ + inline RecommendedAction& WithType(RecommendedActionType&& value) { SetType(std::move(value)); return *this;} + + private: + + Aws::String m_text; + bool m_textHasBeenSet = false; + + Aws::String m_database; + bool m_databaseHasBeenSet = false; + + Aws::String m_command; + bool m_commandHasBeenSet = false; + + RecommendedActionType m_type; + bool m_typeHasBeenSet = false; + }; + +} // namespace Model +} // namespace Redshift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-redshift/include/aws/redshift/model/RecommendedActionType.h b/generated/src/aws-cpp-sdk-redshift/include/aws/redshift/model/RecommendedActionType.h new file mode 100644 index 00000000000..a1f6048a637 --- /dev/null +++ b/generated/src/aws-cpp-sdk-redshift/include/aws/redshift/model/RecommendedActionType.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace Redshift +{ +namespace Model +{ + enum class RecommendedActionType + { + NOT_SET, + SQL, + CLI + }; + +namespace RecommendedActionTypeMapper +{ +AWS_REDSHIFT_API RecommendedActionType GetRecommendedActionTypeForName(const Aws::String& name); + +AWS_REDSHIFT_API Aws::String GetNameForRecommendedActionType(RecommendedActionType value); +} // namespace RecommendedActionTypeMapper +} // namespace Model +} // namespace Redshift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-redshift/include/aws/redshift/model/ReferenceLink.h b/generated/src/aws-cpp-sdk-redshift/include/aws/redshift/model/ReferenceLink.h new file mode 100644 index 00000000000..b1da85acd87 --- /dev/null +++ b/generated/src/aws-cpp-sdk-redshift/include/aws/redshift/model/ReferenceLink.h @@ -0,0 +1,135 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace Redshift +{ +namespace Model +{ + + /** + *

    A link to an Amazon Redshift Advisor reference for more information about a + * recommendation.

    See Also:

    AWS + * API Reference

    + */ + class ReferenceLink + { + public: + AWS_REDSHIFT_API ReferenceLink(); + AWS_REDSHIFT_API ReferenceLink(const Aws::Utils::Xml::XmlNode& xmlNode); + AWS_REDSHIFT_API ReferenceLink& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); + + AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; + AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const; + + + /** + *

    The hyperlink text that describes the link to more information.

    + */ + inline const Aws::String& GetText() const{ return m_text; } + + /** + *

    The hyperlink text that describes the link to more information.

    + */ + inline bool TextHasBeenSet() const { return m_textHasBeenSet; } + + /** + *

    The hyperlink text that describes the link to more information.

    + */ + inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; } + + /** + *

    The hyperlink text that describes the link to more information.

    + */ + inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); } + + /** + *

    The hyperlink text that describes the link to more information.

    + */ + inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); } + + /** + *

    The hyperlink text that describes the link to more information.

    + */ + inline ReferenceLink& WithText(const Aws::String& value) { SetText(value); return *this;} + + /** + *

    The hyperlink text that describes the link to more information.

    + */ + inline ReferenceLink& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;} + + /** + *

    The hyperlink text that describes the link to more information.

    + */ + inline ReferenceLink& WithText(const char* value) { SetText(value); return *this;} + + + /** + *

    The URL address to find more information.

    + */ + inline const Aws::String& GetLink() const{ return m_link; } + + /** + *

    The URL address to find more information.

    + */ + inline bool LinkHasBeenSet() const { return m_linkHasBeenSet; } + + /** + *

    The URL address to find more information.

    + */ + inline void SetLink(const Aws::String& value) { m_linkHasBeenSet = true; m_link = value; } + + /** + *

    The URL address to find more information.

    + */ + inline void SetLink(Aws::String&& value) { m_linkHasBeenSet = true; m_link = std::move(value); } + + /** + *

    The URL address to find more information.

    + */ + inline void SetLink(const char* value) { m_linkHasBeenSet = true; m_link.assign(value); } + + /** + *

    The URL address to find more information.

    + */ + inline ReferenceLink& WithLink(const Aws::String& value) { SetLink(value); return *this;} + + /** + *

    The URL address to find more information.

    + */ + inline ReferenceLink& WithLink(Aws::String&& value) { SetLink(std::move(value)); return *this;} + + /** + *

    The URL address to find more information.

    + */ + inline ReferenceLink& WithLink(const char* value) { SetLink(value); return *this;} + + private: + + Aws::String m_text; + bool m_textHasBeenSet = false; + + Aws::String m_link; + bool m_linkHasBeenSet = false; + }; + +} // namespace Model +} // namespace Redshift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-redshift/source/RedshiftClient.cpp b/generated/src/aws-cpp-sdk-redshift/source/RedshiftClient.cpp index 72bb1029f90..f9e0e380df8 100644 --- a/generated/src/aws-cpp-sdk-redshift/source/RedshiftClient.cpp +++ b/generated/src/aws-cpp-sdk-redshift/source/RedshiftClient.cpp @@ -120,6 +120,7 @@ #include #include #include +#include #include #include #include @@ -2883,6 +2884,32 @@ GetResourcePolicyOutcome RedshiftClient::GetResourcePolicy(const GetResourcePoli {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListRecommendationsOutcome RedshiftClient::ListRecommendations(const ListRecommendationsRequest& request) const +{ + AWS_OPERATION_GUARD(ListRecommendations); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListRecommendations, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListRecommendations, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListRecommendations, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListRecommendationsOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListRecommendations, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListRecommendationsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ModifyAquaConfigurationOutcome RedshiftClient::ModifyAquaConfiguration(const ModifyAquaConfigurationRequest& request) const { AWS_OPERATION_GUARD(ModifyAquaConfiguration); diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/ImpactRankingType.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/ImpactRankingType.cpp new file mode 100644 index 00000000000..d23304474d1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-redshift/source/model/ImpactRankingType.cpp @@ -0,0 +1,79 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace Redshift + { + namespace Model + { + namespace ImpactRankingTypeMapper + { + + static const int HIGH_HASH = HashingUtils::HashString("HIGH"); + static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); + static const int LOW_HASH = HashingUtils::HashString("LOW"); + + + ImpactRankingType GetImpactRankingTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == HIGH_HASH) + { + return ImpactRankingType::HIGH; + } + else if (hashCode == MEDIUM_HASH) + { + return ImpactRankingType::MEDIUM; + } + else if (hashCode == LOW_HASH) + { + return ImpactRankingType::LOW; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ImpactRankingType::NOT_SET; + } + + Aws::String GetNameForImpactRankingType(ImpactRankingType enumValue) + { + switch(enumValue) + { + case ImpactRankingType::NOT_SET: + return {}; + case ImpactRankingType::HIGH: + return "HIGH"; + case ImpactRankingType::MEDIUM: + return "MEDIUM"; + case ImpactRankingType::LOW: + return "LOW"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ImpactRankingTypeMapper + } // namespace Model + } // namespace Redshift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/ListRecommendationsRequest.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/ListRecommendationsRequest.cpp new file mode 100644 index 00000000000..368098cdccb --- /dev/null +++ b/generated/src/aws-cpp-sdk-redshift/source/model/ListRecommendationsRequest.cpp @@ -0,0 +1,54 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws::Redshift::Model; +using namespace Aws::Utils; + +ListRecommendationsRequest::ListRecommendationsRequest() : + m_clusterIdentifierHasBeenSet(false), + m_namespaceArnHasBeenSet(false), + m_maxRecords(0), + m_maxRecordsHasBeenSet(false), + m_markerHasBeenSet(false) +{ +} + +Aws::String ListRecommendationsRequest::SerializePayload() const +{ + Aws::StringStream ss; + ss << "Action=ListRecommendations&"; + if(m_clusterIdentifierHasBeenSet) + { + ss << "ClusterIdentifier=" << StringUtils::URLEncode(m_clusterIdentifier.c_str()) << "&"; + } + + if(m_namespaceArnHasBeenSet) + { + ss << "NamespaceArn=" << StringUtils::URLEncode(m_namespaceArn.c_str()) << "&"; + } + + if(m_maxRecordsHasBeenSet) + { + ss << "MaxRecords=" << m_maxRecords << "&"; + } + + if(m_markerHasBeenSet) + { + ss << "Marker=" << StringUtils::URLEncode(m_marker.c_str()) << "&"; + } + + ss << "Version=2012-12-01"; + return ss.str(); +} + + +void ListRecommendationsRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const +{ + uri.SetQueryString(SerializePayload()); +} diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/ListRecommendationsResult.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/ListRecommendationsResult.cpp new file mode 100644 index 00000000000..4fdcbc4d478 --- /dev/null +++ b/generated/src/aws-cpp-sdk-redshift/source/model/ListRecommendationsResult.cpp @@ -0,0 +1,65 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::Redshift::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils::Logging; +using namespace Aws::Utils; +using namespace Aws; + +ListRecommendationsResult::ListRecommendationsResult() +{ +} + +ListRecommendationsResult::ListRecommendationsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListRecommendationsResult& ListRecommendationsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + const XmlDocument& xmlDocument = result.GetPayload(); + XmlNode rootNode = xmlDocument.GetRootElement(); + XmlNode resultNode = rootNode; + if (!rootNode.IsNull() && (rootNode.GetName() != "ListRecommendationsResult")) + { + resultNode = rootNode.FirstChild("ListRecommendationsResult"); + } + + if(!resultNode.IsNull()) + { + XmlNode recommendationsNode = resultNode.FirstChild("Recommendations"); + if(!recommendationsNode.IsNull()) + { + XmlNode recommendationsMember = recommendationsNode.FirstChild("Recommendation"); + while(!recommendationsMember.IsNull()) + { + m_recommendations.push_back(recommendationsMember); + recommendationsMember = recommendationsMember.NextNode("Recommendation"); + } + + } + XmlNode markerNode = resultNode.FirstChild("Marker"); + if(!markerNode.IsNull()) + { + m_marker = Aws::Utils::Xml::DecodeEscapedXmlText(markerNode.GetText()); + } + } + + if (!rootNode.IsNull()) { + XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata"); + m_responseMetadata = responseMetadataNode; + AWS_LOGSTREAM_DEBUG("Aws::Redshift::Model::ListRecommendationsResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() ); + } + return *this; +} diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/Recommendation.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/Recommendation.cpp new file mode 100644 index 00000000000..50e9b5049f9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-redshift/source/model/Recommendation.cpp @@ -0,0 +1,295 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace Redshift +{ +namespace Model +{ + +Recommendation::Recommendation() : + m_idHasBeenSet(false), + m_clusterIdentifierHasBeenSet(false), + m_namespaceArnHasBeenSet(false), + m_createdAtHasBeenSet(false), + m_recommendationTypeHasBeenSet(false), + m_titleHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_observationHasBeenSet(false), + m_impactRanking(ImpactRankingType::NOT_SET), + m_impactRankingHasBeenSet(false), + m_recommendationTextHasBeenSet(false), + m_recommendedActionsHasBeenSet(false), + m_referenceLinksHasBeenSet(false) +{ +} + +Recommendation::Recommendation(const XmlNode& xmlNode) : + m_idHasBeenSet(false), + m_clusterIdentifierHasBeenSet(false), + m_namespaceArnHasBeenSet(false), + m_createdAtHasBeenSet(false), + m_recommendationTypeHasBeenSet(false), + m_titleHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_observationHasBeenSet(false), + m_impactRanking(ImpactRankingType::NOT_SET), + m_impactRankingHasBeenSet(false), + m_recommendationTextHasBeenSet(false), + m_recommendedActionsHasBeenSet(false), + m_referenceLinksHasBeenSet(false) +{ + *this = xmlNode; +} + +Recommendation& Recommendation::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode idNode = resultNode.FirstChild("Id"); + if(!idNode.IsNull()) + { + m_id = Aws::Utils::Xml::DecodeEscapedXmlText(idNode.GetText()); + m_idHasBeenSet = true; + } + XmlNode clusterIdentifierNode = resultNode.FirstChild("ClusterIdentifier"); + if(!clusterIdentifierNode.IsNull()) + { + m_clusterIdentifier = Aws::Utils::Xml::DecodeEscapedXmlText(clusterIdentifierNode.GetText()); + m_clusterIdentifierHasBeenSet = true; + } + XmlNode namespaceArnNode = resultNode.FirstChild("NamespaceArn"); + if(!namespaceArnNode.IsNull()) + { + m_namespaceArn = Aws::Utils::Xml::DecodeEscapedXmlText(namespaceArnNode.GetText()); + m_namespaceArnHasBeenSet = true; + } + XmlNode createdAtNode = resultNode.FirstChild("CreatedAt"); + if(!createdAtNode.IsNull()) + { + m_createdAt = DateTime(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(createdAtNode.GetText()).c_str()).c_str(), Aws::Utils::DateFormat::ISO_8601); + m_createdAtHasBeenSet = true; + } + XmlNode recommendationTypeNode = resultNode.FirstChild("RecommendationType"); + if(!recommendationTypeNode.IsNull()) + { + m_recommendationType = Aws::Utils::Xml::DecodeEscapedXmlText(recommendationTypeNode.GetText()); + m_recommendationTypeHasBeenSet = true; + } + XmlNode titleNode = resultNode.FirstChild("Title"); + if(!titleNode.IsNull()) + { + m_title = Aws::Utils::Xml::DecodeEscapedXmlText(titleNode.GetText()); + m_titleHasBeenSet = true; + } + XmlNode descriptionNode = resultNode.FirstChild("Description"); + if(!descriptionNode.IsNull()) + { + m_description = Aws::Utils::Xml::DecodeEscapedXmlText(descriptionNode.GetText()); + m_descriptionHasBeenSet = true; + } + XmlNode observationNode = resultNode.FirstChild("Observation"); + if(!observationNode.IsNull()) + { + m_observation = Aws::Utils::Xml::DecodeEscapedXmlText(observationNode.GetText()); + m_observationHasBeenSet = true; + } + XmlNode impactRankingNode = resultNode.FirstChild("ImpactRanking"); + if(!impactRankingNode.IsNull()) + { + m_impactRanking = ImpactRankingTypeMapper::GetImpactRankingTypeForName(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(impactRankingNode.GetText()).c_str()).c_str()); + m_impactRankingHasBeenSet = true; + } + XmlNode recommendationTextNode = resultNode.FirstChild("RecommendationText"); + if(!recommendationTextNode.IsNull()) + { + m_recommendationText = Aws::Utils::Xml::DecodeEscapedXmlText(recommendationTextNode.GetText()); + m_recommendationTextHasBeenSet = true; + } + XmlNode recommendedActionsNode = resultNode.FirstChild("RecommendedActions"); + if(!recommendedActionsNode.IsNull()) + { + XmlNode recommendedActionsMember = recommendedActionsNode.FirstChild("RecommendedAction"); + while(!recommendedActionsMember.IsNull()) + { + m_recommendedActions.push_back(recommendedActionsMember); + recommendedActionsMember = recommendedActionsMember.NextNode("RecommendedAction"); + } + + m_recommendedActionsHasBeenSet = true; + } + XmlNode referenceLinksNode = resultNode.FirstChild("ReferenceLinks"); + if(!referenceLinksNode.IsNull()) + { + XmlNode referenceLinksMember = referenceLinksNode.FirstChild("ReferenceLink"); + while(!referenceLinksMember.IsNull()) + { + m_referenceLinks.push_back(referenceLinksMember); + referenceLinksMember = referenceLinksMember.NextNode("ReferenceLink"); + } + + m_referenceLinksHasBeenSet = true; + } + } + + return *this; +} + +void Recommendation::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const +{ + if(m_idHasBeenSet) + { + oStream << location << index << locationValue << ".Id=" << StringUtils::URLEncode(m_id.c_str()) << "&"; + } + + if(m_clusterIdentifierHasBeenSet) + { + oStream << location << index << locationValue << ".ClusterIdentifier=" << StringUtils::URLEncode(m_clusterIdentifier.c_str()) << "&"; + } + + if(m_namespaceArnHasBeenSet) + { + oStream << location << index << locationValue << ".NamespaceArn=" << StringUtils::URLEncode(m_namespaceArn.c_str()) << "&"; + } + + if(m_createdAtHasBeenSet) + { + oStream << location << index << locationValue << ".CreatedAt=" << StringUtils::URLEncode(m_createdAt.ToGmtString(Aws::Utils::DateFormat::ISO_8601).c_str()) << "&"; + } + + if(m_recommendationTypeHasBeenSet) + { + oStream << location << index << locationValue << ".RecommendationType=" << StringUtils::URLEncode(m_recommendationType.c_str()) << "&"; + } + + if(m_titleHasBeenSet) + { + oStream << location << index << locationValue << ".Title=" << StringUtils::URLEncode(m_title.c_str()) << "&"; + } + + if(m_descriptionHasBeenSet) + { + oStream << location << index << locationValue << ".Description=" << StringUtils::URLEncode(m_description.c_str()) << "&"; + } + + if(m_observationHasBeenSet) + { + oStream << location << index << locationValue << ".Observation=" << StringUtils::URLEncode(m_observation.c_str()) << "&"; + } + + if(m_impactRankingHasBeenSet) + { + oStream << location << index << locationValue << ".ImpactRanking=" << ImpactRankingTypeMapper::GetNameForImpactRankingType(m_impactRanking) << "&"; + } + + if(m_recommendationTextHasBeenSet) + { + oStream << location << index << locationValue << ".RecommendationText=" << StringUtils::URLEncode(m_recommendationText.c_str()) << "&"; + } + + if(m_recommendedActionsHasBeenSet) + { + unsigned recommendedActionsIdx = 1; + for(auto& item : m_recommendedActions) + { + Aws::StringStream recommendedActionsSs; + recommendedActionsSs << location << index << locationValue << ".RecommendedAction." << recommendedActionsIdx++; + item.OutputToStream(oStream, recommendedActionsSs.str().c_str()); + } + } + + if(m_referenceLinksHasBeenSet) + { + unsigned referenceLinksIdx = 1; + for(auto& item : m_referenceLinks) + { + Aws::StringStream referenceLinksSs; + referenceLinksSs << location << index << locationValue << ".ReferenceLink." << referenceLinksIdx++; + item.OutputToStream(oStream, referenceLinksSs.str().c_str()); + } + } + +} + +void Recommendation::OutputToStream(Aws::OStream& oStream, const char* location) const +{ + if(m_idHasBeenSet) + { + oStream << location << ".Id=" << StringUtils::URLEncode(m_id.c_str()) << "&"; + } + if(m_clusterIdentifierHasBeenSet) + { + oStream << location << ".ClusterIdentifier=" << StringUtils::URLEncode(m_clusterIdentifier.c_str()) << "&"; + } + if(m_namespaceArnHasBeenSet) + { + oStream << location << ".NamespaceArn=" << StringUtils::URLEncode(m_namespaceArn.c_str()) << "&"; + } + if(m_createdAtHasBeenSet) + { + oStream << location << ".CreatedAt=" << StringUtils::URLEncode(m_createdAt.ToGmtString(Aws::Utils::DateFormat::ISO_8601).c_str()) << "&"; + } + if(m_recommendationTypeHasBeenSet) + { + oStream << location << ".RecommendationType=" << StringUtils::URLEncode(m_recommendationType.c_str()) << "&"; + } + if(m_titleHasBeenSet) + { + oStream << location << ".Title=" << StringUtils::URLEncode(m_title.c_str()) << "&"; + } + if(m_descriptionHasBeenSet) + { + oStream << location << ".Description=" << StringUtils::URLEncode(m_description.c_str()) << "&"; + } + if(m_observationHasBeenSet) + { + oStream << location << ".Observation=" << StringUtils::URLEncode(m_observation.c_str()) << "&"; + } + if(m_impactRankingHasBeenSet) + { + oStream << location << ".ImpactRanking=" << ImpactRankingTypeMapper::GetNameForImpactRankingType(m_impactRanking) << "&"; + } + if(m_recommendationTextHasBeenSet) + { + oStream << location << ".RecommendationText=" << StringUtils::URLEncode(m_recommendationText.c_str()) << "&"; + } + if(m_recommendedActionsHasBeenSet) + { + unsigned recommendedActionsIdx = 1; + for(auto& item : m_recommendedActions) + { + Aws::StringStream recommendedActionsSs; + recommendedActionsSs << location << ".RecommendedAction." << recommendedActionsIdx++; + item.OutputToStream(oStream, recommendedActionsSs.str().c_str()); + } + } + if(m_referenceLinksHasBeenSet) + { + unsigned referenceLinksIdx = 1; + for(auto& item : m_referenceLinks) + { + Aws::StringStream referenceLinksSs; + referenceLinksSs << location << ".ReferenceLink." << referenceLinksIdx++; + item.OutputToStream(oStream, referenceLinksSs.str().c_str()); + } + } +} + +} // namespace Model +} // namespace Redshift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/RecommendedAction.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/RecommendedAction.cpp new file mode 100644 index 00000000000..a6f98b064f7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-redshift/source/model/RecommendedAction.cpp @@ -0,0 +1,123 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace Redshift +{ +namespace Model +{ + +RecommendedAction::RecommendedAction() : + m_textHasBeenSet(false), + m_databaseHasBeenSet(false), + m_commandHasBeenSet(false), + m_type(RecommendedActionType::NOT_SET), + m_typeHasBeenSet(false) +{ +} + +RecommendedAction::RecommendedAction(const XmlNode& xmlNode) : + m_textHasBeenSet(false), + m_databaseHasBeenSet(false), + m_commandHasBeenSet(false), + m_type(RecommendedActionType::NOT_SET), + m_typeHasBeenSet(false) +{ + *this = xmlNode; +} + +RecommendedAction& RecommendedAction::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode textNode = resultNode.FirstChild("Text"); + if(!textNode.IsNull()) + { + m_text = Aws::Utils::Xml::DecodeEscapedXmlText(textNode.GetText()); + m_textHasBeenSet = true; + } + XmlNode databaseNode = resultNode.FirstChild("Database"); + if(!databaseNode.IsNull()) + { + m_database = Aws::Utils::Xml::DecodeEscapedXmlText(databaseNode.GetText()); + m_databaseHasBeenSet = true; + } + XmlNode commandNode = resultNode.FirstChild("Command"); + if(!commandNode.IsNull()) + { + m_command = Aws::Utils::Xml::DecodeEscapedXmlText(commandNode.GetText()); + m_commandHasBeenSet = true; + } + XmlNode typeNode = resultNode.FirstChild("Type"); + if(!typeNode.IsNull()) + { + m_type = RecommendedActionTypeMapper::GetRecommendedActionTypeForName(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(typeNode.GetText()).c_str()).c_str()); + m_typeHasBeenSet = true; + } + } + + return *this; +} + +void RecommendedAction::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const +{ + if(m_textHasBeenSet) + { + oStream << location << index << locationValue << ".Text=" << StringUtils::URLEncode(m_text.c_str()) << "&"; + } + + if(m_databaseHasBeenSet) + { + oStream << location << index << locationValue << ".Database=" << StringUtils::URLEncode(m_database.c_str()) << "&"; + } + + if(m_commandHasBeenSet) + { + oStream << location << index << locationValue << ".Command=" << StringUtils::URLEncode(m_command.c_str()) << "&"; + } + + if(m_typeHasBeenSet) + { + oStream << location << index << locationValue << ".Type=" << RecommendedActionTypeMapper::GetNameForRecommendedActionType(m_type) << "&"; + } + +} + +void RecommendedAction::OutputToStream(Aws::OStream& oStream, const char* location) const +{ + if(m_textHasBeenSet) + { + oStream << location << ".Text=" << StringUtils::URLEncode(m_text.c_str()) << "&"; + } + if(m_databaseHasBeenSet) + { + oStream << location << ".Database=" << StringUtils::URLEncode(m_database.c_str()) << "&"; + } + if(m_commandHasBeenSet) + { + oStream << location << ".Command=" << StringUtils::URLEncode(m_command.c_str()) << "&"; + } + if(m_typeHasBeenSet) + { + oStream << location << ".Type=" << RecommendedActionTypeMapper::GetNameForRecommendedActionType(m_type) << "&"; + } +} + +} // namespace Model +} // namespace Redshift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/RecommendedActionType.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/RecommendedActionType.cpp new file mode 100644 index 00000000000..8189caddffd --- /dev/null +++ b/generated/src/aws-cpp-sdk-redshift/source/model/RecommendedActionType.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace Redshift + { + namespace Model + { + namespace RecommendedActionTypeMapper + { + + static const int SQL_HASH = HashingUtils::HashString("SQL"); + static const int CLI_HASH = HashingUtils::HashString("CLI"); + + + RecommendedActionType GetRecommendedActionTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == SQL_HASH) + { + return RecommendedActionType::SQL; + } + else if (hashCode == CLI_HASH) + { + return RecommendedActionType::CLI; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return RecommendedActionType::NOT_SET; + } + + Aws::String GetNameForRecommendedActionType(RecommendedActionType enumValue) + { + switch(enumValue) + { + case RecommendedActionType::NOT_SET: + return {}; + case RecommendedActionType::SQL: + return "SQL"; + case RecommendedActionType::CLI: + return "CLI"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace RecommendedActionTypeMapper + } // namespace Model + } // namespace Redshift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/ReferenceLink.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/ReferenceLink.cpp new file mode 100644 index 00000000000..8c157cc173f --- /dev/null +++ b/generated/src/aws-cpp-sdk-redshift/source/model/ReferenceLink.cpp @@ -0,0 +1,87 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace Redshift +{ +namespace Model +{ + +ReferenceLink::ReferenceLink() : + m_textHasBeenSet(false), + m_linkHasBeenSet(false) +{ +} + +ReferenceLink::ReferenceLink(const XmlNode& xmlNode) : + m_textHasBeenSet(false), + m_linkHasBeenSet(false) +{ + *this = xmlNode; +} + +ReferenceLink& ReferenceLink::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode textNode = resultNode.FirstChild("Text"); + if(!textNode.IsNull()) + { + m_text = Aws::Utils::Xml::DecodeEscapedXmlText(textNode.GetText()); + m_textHasBeenSet = true; + } + XmlNode linkNode = resultNode.FirstChild("Link"); + if(!linkNode.IsNull()) + { + m_link = Aws::Utils::Xml::DecodeEscapedXmlText(linkNode.GetText()); + m_linkHasBeenSet = true; + } + } + + return *this; +} + +void ReferenceLink::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const +{ + if(m_textHasBeenSet) + { + oStream << location << index << locationValue << ".Text=" << StringUtils::URLEncode(m_text.c_str()) << "&"; + } + + if(m_linkHasBeenSet) + { + oStream << location << index << locationValue << ".Link=" << StringUtils::URLEncode(m_link.c_str()) << "&"; + } + +} + +void ReferenceLink::OutputToStream(Aws::OStream& oStream, const char* location) const +{ + if(m_textHasBeenSet) + { + oStream << location << ".Text=" << StringUtils::URLEncode(m_text.c_str()) << "&"; + } + if(m_linkHasBeenSet) + { + oStream << location << ".Link=" << StringUtils::URLEncode(m_link.c_str()) << "&"; + } +} + +} // namespace Model +} // namespace Redshift +} // namespace Aws diff --git a/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h b/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h index 805bfb2508b..373f146f641 100644 --- a/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h +++ b/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h @@ -4,7 +4,7 @@ */ #pragma once -#define AWS_SDK_VERSION_STRING "1.11.259" +#define AWS_SDK_VERSION_STRING "1.11.260" #define AWS_SDK_VERSION_MAJOR 1 #define AWS_SDK_VERSION_MINOR 11 -#define AWS_SDK_VERSION_PATCH 259 +#define AWS_SDK_VERSION_PATCH 260 diff --git a/tools/code-generation/api-descriptions/datasync-2018-11-09.normal.json b/tools/code-generation/api-descriptions/datasync-2018-11-09.normal.json index 0246bb0a35a..c5ee7b7160c 100644 --- a/tools/code-generation/api-descriptions/datasync-2018-11-09.normal.json +++ b/tools/code-generation/api-descriptions/datasync-2018-11-09.normal.json @@ -69,7 +69,7 @@ {"shape":"InvalidRequestException"}, {"shape":"InternalException"} ], - "documentation":"

    Creates an endpoint for a Microsoft Azure Blob Storage container that DataSync can use as a transfer source or destination.

    Before you begin, make sure you know how DataSync accesses Azure Blob Storage and works with access tiers and blob types. You also need a DataSync agent that can connect to your container.

    " + "documentation":"

    Creates a transfer location for a Microsoft Azure Blob Storage container. DataSync can use this location as a transfer source or destination.

    Before you begin, make sure you know how DataSync accesses Azure Blob Storage and works with access tiers and blob types. You also need a DataSync agent that can connect to your container.

    " }, "CreateLocationEfs":{ "name":"CreateLocationEfs", @@ -83,7 +83,7 @@ {"shape":"InvalidRequestException"}, {"shape":"InternalException"} ], - "documentation":"

    Creates an endpoint for an Amazon EFS file system that DataSync can access for a transfer. For more information, see Creating a location for Amazon EFS.

    " + "documentation":"

    Creates a transfer location for an Amazon EFS file system. DataSync can use this location as a source or destination for transferring data.

    Before you begin, make sure that you understand how DataSync accesses Amazon EFS file systems.

    " }, "CreateLocationFsxLustre":{ "name":"CreateLocationFsxLustre", @@ -97,7 +97,7 @@ {"shape":"InvalidRequestException"}, {"shape":"InternalException"} ], - "documentation":"

    Creates an endpoint for an Amazon FSx for Lustre file system.

    " + "documentation":"

    Creates a transfer location for an Amazon FSx for Lustre file system. DataSync can use this location as a source or destination for transferring data.

    Before you begin, make sure that you understand how DataSync accesses FSx for Lustre file systems.

    " }, "CreateLocationFsxOntap":{ "name":"CreateLocationFsxOntap", @@ -111,7 +111,7 @@ {"shape":"InvalidRequestException"}, {"shape":"InternalException"} ], - "documentation":"

    Creates an endpoint for an Amazon FSx for NetApp ONTAP file system that DataSync can use for a data transfer.

    Before you begin, make sure that you understand how DataSync accesses an FSx for ONTAP file system.

    " + "documentation":"

    Creates a transfer location for an Amazon FSx for NetApp ONTAP file system. DataSync can use this location as a source or destination for transferring data.

    Before you begin, make sure that you understand how DataSync accesses FSx for ONTAP file systems.

    " }, "CreateLocationFsxOpenZfs":{ "name":"CreateLocationFsxOpenZfs", @@ -125,7 +125,7 @@ {"shape":"InvalidRequestException"}, {"shape":"InternalException"} ], - "documentation":"

    Creates an endpoint for an Amazon FSx for OpenZFS file system that DataSync can access for a transfer. For more information, see Creating a location for FSx for OpenZFS.

    Request parameters related to SMB aren't supported with the CreateLocationFsxOpenZfs operation.

    " + "documentation":"

    Creates a transfer location for an Amazon FSx for OpenZFS file system. DataSync can use this location as a source or destination for transferring data.

    Before you begin, make sure that you understand how DataSync accesses FSx for OpenZFS file systems.

    Request parameters related to SMB aren't supported with the CreateLocationFsxOpenZfs operation.

    " }, "CreateLocationFsxWindows":{ "name":"CreateLocationFsxWindows", @@ -139,7 +139,7 @@ {"shape":"InvalidRequestException"}, {"shape":"InternalException"} ], - "documentation":"

    Creates an endpoint for an Amazon FSx for Windows File Server file system that DataSync can use for a data transfer.

    Before you begin, make sure that you understand how DataSync accesses an FSx for Windows File Server.

    " + "documentation":"

    Creates a transfer location for an Amazon FSx for Windows File Server file system. DataSync can use this location as a source or destination for transferring data.

    Before you begin, make sure that you understand how DataSync accesses FSx for Windows File Server file systems.

    " }, "CreateLocationHdfs":{ "name":"CreateLocationHdfs", @@ -153,7 +153,7 @@ {"shape":"InvalidRequestException"}, {"shape":"InternalException"} ], - "documentation":"

    Creates an endpoint for a Hadoop Distributed File System (HDFS).

    " + "documentation":"

    Creates a transfer location for a Hadoop Distributed File System (HDFS). DataSync can use this location as a source or destination for transferring data.

    Before you begin, make sure that you understand how DataSync accesses HDFS clusters.

    " }, "CreateLocationNfs":{ "name":"CreateLocationNfs", @@ -167,7 +167,7 @@ {"shape":"InvalidRequestException"}, {"shape":"InternalException"} ], - "documentation":"

    Creates an endpoint for a Network File System (NFS) file server that DataSync can use for a data transfer.

    For more information, see Configuring transfers to or from an NFS file server.

    If you're copying data to or from an Snowcone device, you can also use CreateLocationNfs to create your transfer location. For more information, see Configuring transfers with Snowcone.

    " + "documentation":"

    Creates a transfer location for a Network File System (NFS) file server. DataSync can use this location as a source or destination for transferring data.

    Before you begin, make sure that you understand how DataSync accesses NFS file servers.

    If you're copying data to or from an Snowcone device, you can also use CreateLocationNfs to create your transfer location. For more information, see Configuring transfers with Snowcone.

    " }, "CreateLocationObjectStorage":{ "name":"CreateLocationObjectStorage", @@ -181,7 +181,7 @@ {"shape":"InvalidRequestException"}, {"shape":"InternalException"} ], - "documentation":"

    Creates an endpoint for an object storage system that DataSync can access for a transfer. For more information, see Creating a location for object storage.

    " + "documentation":"

    Creates a transfer location for an object storage system. DataSync can use this location as a source or destination for transferring data.

    Before you begin, make sure that you understand the prerequisites for DataSync to work with object storage systems.

    " }, "CreateLocationS3":{ "name":"CreateLocationS3", @@ -195,7 +195,7 @@ {"shape":"InvalidRequestException"}, {"shape":"InternalException"} ], - "documentation":"

    A location is an endpoint for an Amazon S3 bucket. DataSync can use the location as a source or destination for copying data.

    Before you create your location, make sure that you read the following sections:

    For more information, see Creating an Amazon S3 location.

    " + "documentation":"

    Creates a transfer location for an Amazon S3 bucket. DataSync can use this location as a source or destination for transferring data.

    Before you begin, make sure that you read the following topics:

    For more information, see Configuring transfers with Amazon S3.

    " }, "CreateLocationSmb":{ "name":"CreateLocationSmb", @@ -209,7 +209,7 @@ {"shape":"InvalidRequestException"}, {"shape":"InternalException"} ], - "documentation":"

    Creates an endpoint for a Server Message Block (SMB) file server that DataSync can use for a data transfer.

    Before you begin, make sure that you understand how DataSync accesses an SMB file server.

    " + "documentation":"

    Creates a transfer location for a Server Message Block (SMB) file server. DataSync can use this location as a source or destination for transferring data.

    Before you begin, make sure that you understand how DataSync accesses SMB file servers.

    " }, "CreateTask":{ "name":"CreateTask", @@ -251,7 +251,7 @@ {"shape":"InvalidRequestException"}, {"shape":"InternalException"} ], - "documentation":"

    Deletes the configuration of a location used by DataSync.

    " + "documentation":"

    Deletes a transfer location resource from DataSync.

    " }, "DeleteTask":{ "name":"DeleteTask", @@ -265,7 +265,7 @@ {"shape":"InvalidRequestException"}, {"shape":"InternalException"} ], - "documentation":"

    Deletes an DataSync transfer task.

    " + "documentation":"

    Deletes a transfer task resource from DataSync.

    " }, "DescribeAgent":{ "name":"DescribeAgent", @@ -322,7 +322,7 @@ {"shape":"InvalidRequestException"}, {"shape":"InternalException"} ], - "documentation":"

    Returns metadata about your DataSync location for an Amazon EFS file system.

    " + "documentation":"

    Provides details about how an DataSync transfer location for an Amazon EFS file system is configured.

    " }, "DescribeLocationFsxLustre":{ "name":"DescribeLocationFsxLustre", @@ -336,7 +336,7 @@ {"shape":"InvalidRequestException"}, {"shape":"InternalException"} ], - "documentation":"

    Provides details about how an DataSync location for an Amazon FSx for Lustre file system is configured.

    " + "documentation":"

    Provides details about how an DataSync transfer location for an Amazon FSx for Lustre file system is configured.

    " }, "DescribeLocationFsxOntap":{ "name":"DescribeLocationFsxOntap", @@ -350,7 +350,7 @@ {"shape":"InvalidRequestException"}, {"shape":"InternalException"} ], - "documentation":"

    Provides details about how an DataSync location for an Amazon FSx for NetApp ONTAP file system is configured.

    If your location uses SMB, the DescribeLocationFsxOntap operation doesn't actually return a Password.

    " + "documentation":"

    Provides details about how an DataSync transfer location for an Amazon FSx for NetApp ONTAP file system is configured.

    If your location uses SMB, the DescribeLocationFsxOntap operation doesn't actually return a Password.

    " }, "DescribeLocationFsxOpenZfs":{ "name":"DescribeLocationFsxOpenZfs", @@ -364,7 +364,7 @@ {"shape":"InvalidRequestException"}, {"shape":"InternalException"} ], - "documentation":"

    Provides details about how an DataSync location for an Amazon FSx for OpenZFS file system is configured.

    Response elements related to SMB aren't supported with the DescribeLocationFsxOpenZfs operation.

    " + "documentation":"

    Provides details about how an DataSync transfer location for an Amazon FSx for OpenZFS file system is configured.

    Response elements related to SMB aren't supported with the DescribeLocationFsxOpenZfs operation.

    " }, "DescribeLocationFsxWindows":{ "name":"DescribeLocationFsxWindows", @@ -378,7 +378,7 @@ {"shape":"InvalidRequestException"}, {"shape":"InternalException"} ], - "documentation":"

    Returns metadata about an Amazon FSx for Windows File Server location, such as information about its path.

    " + "documentation":"

    Provides details about how an DataSync transfer location for an Amazon FSx for Windows File Server file system is configured.

    " }, "DescribeLocationHdfs":{ "name":"DescribeLocationHdfs", @@ -392,7 +392,7 @@ {"shape":"InvalidRequestException"}, {"shape":"InternalException"} ], - "documentation":"

    Returns metadata, such as the authentication information about the Hadoop Distributed File System (HDFS) location.

    " + "documentation":"

    Provides details about how an DataSync transfer location for a Hadoop Distributed File System (HDFS) is configured.

    " }, "DescribeLocationNfs":{ "name":"DescribeLocationNfs", @@ -420,7 +420,7 @@ {"shape":"InvalidRequestException"}, {"shape":"InternalException"} ], - "documentation":"

    Returns metadata about your DataSync location for an object storage system.

    " + "documentation":"

    Provides details about how an DataSync transfer location for an object storage system is configured.

    " }, "DescribeLocationS3":{ "name":"DescribeLocationS3", @@ -434,7 +434,7 @@ {"shape":"InvalidRequestException"}, {"shape":"InternalException"} ], - "documentation":"

    Returns metadata, such as bucket name, about an Amazon S3 bucket location.

    " + "documentation":"

    Provides details about how an DataSync transfer location for an S3 bucket is configured.

    " }, "DescribeLocationSmb":{ "name":"DescribeLocationSmb", @@ -448,7 +448,7 @@ {"shape":"InvalidRequestException"}, {"shape":"InternalException"} ], - "documentation":"

    Returns metadata, such as the path and user information about an SMB location.

    " + "documentation":"

    Provides details about how an DataSync transfer location for a Server Message Block (SMB) file server is configured.

    " }, "DescribeStorageSystem":{ "name":"DescribeStorageSystem", @@ -622,7 +622,7 @@ {"shape":"InvalidRequestException"}, {"shape":"InternalException"} ], - "documentation":"

    Returns a list of executed tasks.

    " + "documentation":"

    Returns a list of executions for an DataSync transfer task.

    " }, "ListTasks":{ "name":"ListTasks", @@ -851,7 +851,7 @@ {"shape":"InvalidRequestException"}, {"shape":"InternalException"} ], - "documentation":"

    Updates the configuration of a DataSync transfer task.

    " + "documentation":"

    Updates the configuration of an DataSync transfer task.

    " }, "UpdateTaskExecution":{ "name":"UpdateTaskExecution", @@ -1353,15 +1353,15 @@ }, "User":{ "shape":"SmbUser", - "documentation":"

    Specifies the user who has the permissions to access files, folders, and metadata in your file system.

    For information about choosing a user with the right level of access for your transfer, see required permissions for FSx for Windows File Server locations.

    " + "documentation":"

    Specifies the user with the permissions to mount and access the files, folders, and file metadata in your FSx for Windows File Server file system.

    For information about choosing a user with the right level of access for your transfer, see required permissions for FSx for Windows File Server locations.

    " }, "Domain":{ "shape":"SmbDomain", - "documentation":"

    Specifies the name of the Windows domain that the FSx for Windows File Server belongs to.

    If you have multiple domains in your environment, configuring this parameter makes sure that DataSync connects to the right file server.

    For more information, see required permissions for FSx for Windows File Server locations.

    " + "documentation":"

    Specifies the name of the Microsoft Active Directory domain that the FSx for Windows File Server file system belongs to.

    If you have multiple Active Directory domains in your environment, configuring this parameter makes sure that DataSync connects to the right file system.

    " }, "Password":{ "shape":"SmbPassword", - "documentation":"

    Specifies the password of the user who has the permissions to access files and folders in the file system.

    For more information, see required permissions for FSx for Windows File Server locations.

    " + "documentation":"

    Specifies the password of the user with the permissions to mount and access the files, folders, and file metadata in your FSx for Windows File Server file system.

    " } } }, @@ -1556,24 +1556,24 @@ "members":{ "Subdirectory":{ "shape":"S3Subdirectory", - "documentation":"

    A subdirectory in the Amazon S3 bucket. This subdirectory in Amazon S3 is used to read data from the S3 source location or write data to the S3 destination.

    " + "documentation":"

    Specifies a prefix in the S3 bucket that DataSync reads from or writes to (depending on whether the bucket is a source or destination location).

    DataSync can't transfer objects with a prefix that begins with a slash (/) or includes //, /./, or /../ patterns. For example:

    • /photos

    • photos//2006/January

    • photos/./2006/February

    • photos/../2006/March

    " }, "S3BucketArn":{ "shape":"S3BucketArn", - "documentation":"

    The ARN of the Amazon S3 bucket. If the bucket is on an Amazon Web Services Outpost, this must be an access point ARN.

    " + "documentation":"

    Specifies the ARN of the S3 bucket that you want to use as a location. (When creating your DataSync task later, you specify whether this location is a transfer source or destination.)

    If your S3 bucket is located on an Outposts resource, you must specify an Amazon S3 access point. For more information, see Managing data access with Amazon S3 access points in the Amazon S3 User Guide.

    " }, "S3StorageClass":{ "shape":"S3StorageClass", - "documentation":"

    The Amazon S3 storage class that you want to store your files in when this location is used as a task destination. For buckets in Amazon Web Services Regions, the storage class defaults to Standard. For buckets on Outposts, the storage class defaults to Amazon Web Services S3 Outposts.

    For more information about S3 storage classes, see Amazon S3 Storage Classes. Some storage classes have behaviors that can affect your S3 storage cost. For detailed information, see Considerations when working with S3 storage classes in DataSync.

    " + "documentation":"

    Specifies the storage class that you want your objects to use when Amazon S3 is a transfer destination.

    For buckets in Amazon Web Services Regions, the storage class defaults to STANDARD. For buckets on Outposts, the storage class defaults to OUTPOSTS.

    For more information, see Storage class considerations with Amazon S3 transfers.

    " }, "S3Config":{"shape":"S3Config"}, "AgentArns":{ "shape":"AgentArnList", - "documentation":"

    If you're using DataSync on an Amazon Web Services Outpost, specify the Amazon Resource Names (ARNs) of the DataSync agents deployed on your Outpost. For more information about launching a DataSync agent on an Amazon Web Services Outpost, see Deploy your DataSync agent on Outposts.

    " + "documentation":"

    (Amazon S3 on Outposts only) Specifies the Amazon Resource Name (ARN) of the DataSync agent on your Outpost.

    For more information, see Deploy your DataSync agent on Outposts.

    " }, "Tags":{ "shape":"InputTagList", - "documentation":"

    The key-value pair that represents the tag that you want to add to the location. The value can be an empty string. We recommend using tags to name your resources.

    " + "documentation":"

    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 transfer location.

    " } }, "documentation":"

    CreateLocationS3Request

    " @@ -1583,7 +1583,7 @@ "members":{ "LocationArn":{ "shape":"LocationArn", - "documentation":"

    The Amazon Resource Name (ARN) of the source Amazon S3 bucket location that is created.

    " + "documentation":"

    The ARN of the S3 location that you created.

    " } }, "documentation":"

    CreateLocationS3Response

    " @@ -1600,7 +1600,7 @@ "members":{ "Subdirectory":{ "shape":"SmbSubdirectory", - "documentation":"

    Specifies the name of the share exported by your SMB file server where DataSync will read or write data. You can include a subdirectory in the share path (for example, /path/to/subdirectory). Make sure that other SMB clients in your network can also mount this path.

    To copy all data in the specified subdirectory, DataSync must be able to mount the SMB share and access all of its data. For more information, see required permissions for SMB locations.

    " + "documentation":"

    Specifies the name of the share exported by your SMB file server where DataSync will read or write data. You can include a subdirectory in the share path (for example, /path/to/subdirectory). Make sure that other SMB clients in your network can also mount this path.

    To copy all data in the subdirectory, DataSync must be able to mount the SMB share and access all of its data. For more information, see required permissions for SMB locations.

    " }, "ServerHostname":{ "shape":"ServerHostname", @@ -1608,11 +1608,11 @@ }, "User":{ "shape":"SmbUser", - "documentation":"

    Specifies the user name that can mount your SMB file server and has permission to access the files and folders involved in your transfer.

    For information about choosing a user with the right level of access for your transfer, see required permissions for SMB locations.

    " + "documentation":"

    Specifies the user that can mount and access the files, folders, and file metadata in your SMB file server.

    For information about choosing a user with the right level of access for your transfer, see required permissions for SMB locations.

    " }, "Domain":{ "shape":"SmbDomain", - "documentation":"

    Specifies the Windows domain name that your SMB file server belongs to.

    If you have multiple domains in your environment, configuring this parameter makes sure that DataSync connects to the right file server.

    For more information, see required permissions for SMB locations.

    " + "documentation":"

    Specifies the name of the Active Directory domain that your SMB file server belongs to.

    If you have multiple Active Directory domains in your environment, configuring this parameter makes sure that DataSync connects to the right file server.

    " }, "Password":{ "shape":"SmbPassword", @@ -1686,9 +1686,13 @@ "shape":"FilterList", "documentation":"

    Specifies a list of filter rules that include specific data during your transfer. For more information and examples, see Filtering data transferred by DataSync.

    " }, + "ManifestConfig":{ + "shape":"ManifestConfig", + "documentation":"

    Configures a manifest, which is a list of files or objects that you want DataSync to transfer. For more information and configuration examples, see Specifying what DataSync transfers by using a manifest.

    When using this parameter, your caller identity (the role that you're using DataSync with) must have the iam:PassRole permission. The AWSDataSyncFullAccess policy includes this permission.

    " + }, "TaskReportConfig":{ "shape":"TaskReportConfig", - "documentation":"

    Specifies how you want to configure a task report, which provides detailed information about for your DataSync transfer.

    " + "documentation":"

    Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer. For more information, see Monitoring your DataSync transfers with task reports.

    When using this parameter, your caller identity (the role that you're using DataSync with) must have the iam:PassRole permission. The AWSDataSyncFullAccess policy includes this permission.

    " } }, "documentation":"

    CreateTaskRequest

    " @@ -2054,7 +2058,7 @@ "members":{ "LocationArn":{ "shape":"LocationArn", - "documentation":"

    The Amazon Resource Name (ARN) of the FSx for Windows File Server location to describe.

    " + "documentation":"

    Specifies the Amazon Resource Name (ARN) of the FSx for Windows File Server location.

    " } } }, @@ -2063,15 +2067,15 @@ "members":{ "LocationArn":{ "shape":"LocationArn", - "documentation":"

    The Amazon Resource Name (ARN) of the FSx for Windows File Server location that was described.

    " + "documentation":"

    The ARN of the FSx for Windows File Server location.

    " }, "LocationUri":{ "shape":"LocationUri", - "documentation":"

    The URL of the FSx for Windows File Server location that was described.

    " + "documentation":"

    The uniform resource identifier (URI) of the FSx for Windows File Server location.

    " }, "SecurityGroupArns":{ "shape":"Ec2SecurityGroupArnList", - "documentation":"

    The Amazon Resource Names (ARNs) of the security groups that are configured for the FSx for Windows File Server file system.

    " + "documentation":"

    The ARNs of the security groups that are configured for the FSx for Windows File Server file system.

    " }, "CreationTime":{ "shape":"Time", @@ -2079,11 +2083,11 @@ }, "User":{ "shape":"SmbUser", - "documentation":"

    The user who has the permissions to access files and folders in the FSx for Windows File Server file system.

    " + "documentation":"

    The user with the permissions to mount and access the FSx for Windows File Server file system.

    " }, "Domain":{ "shape":"SmbDomain", - "documentation":"

    The name of the Windows domain that the FSx for Windows File Server belongs to.

    " + "documentation":"

    The name of the Microsoft Active Directory domain that the FSx for Windows File Server file system belongs to.

    " } } }, @@ -2093,7 +2097,7 @@ "members":{ "LocationArn":{ "shape":"LocationArn", - "documentation":"

    The Amazon Resource Name (ARN) of the HDFS cluster location to describe.

    " + "documentation":"

    Specifies the Amazon Resource Name (ARN) of the HDFS location.

    " } } }, @@ -2102,15 +2106,15 @@ "members":{ "LocationArn":{ "shape":"LocationArn", - "documentation":"

    The ARN of the HDFS cluster location.

    " + "documentation":"

    The ARN of the HDFS location.

    " }, "LocationUri":{ "shape":"LocationUri", - "documentation":"

    The URI of the HDFS cluster location.

    " + "documentation":"

    The URI of the HDFS location.

    " }, "NameNodes":{ "shape":"HdfsNameNodeList", - "documentation":"

    The NameNode that manage the HDFS namespace.

    " + "documentation":"

    The NameNode that manages the HDFS namespace.

    " }, "BlockSize":{ "shape":"HdfsBlockSize", @@ -2126,7 +2130,7 @@ }, "QopConfiguration":{ "shape":"QopConfiguration", - "documentation":"

    The Quality of Protection (QOP) configuration specifies the Remote Procedure Call (RPC) and data transfer protection settings configured on the Hadoop Distributed File System (HDFS) cluster.

    " + "documentation":"

    The Quality of Protection (QOP) configuration, which specifies the Remote Procedure Call (RPC) and data transfer protection settings configured on the HDFS cluster.

    " }, "AuthenticationType":{ "shape":"HdfsAuthenticationType", @@ -2134,7 +2138,7 @@ }, "SimpleUser":{ "shape":"HdfsUser", - "documentation":"

    The user name used to identify the client on the host operating system. This parameter is used if the AuthenticationType is defined as SIMPLE.

    " + "documentation":"

    The user name to identify the client on the host operating system. This parameter is used if the AuthenticationType is defined as SIMPLE.

    " }, "KerberosPrincipal":{ "shape":"KerberosPrincipal", @@ -2142,7 +2146,7 @@ }, "AgentArns":{ "shape":"AgentArnList", - "documentation":"

    The ARNs of the agents that are used to connect to the HDFS cluster.

    " + "documentation":"

    The ARNs of the DataSync agents that can connect with your HDFS cluster.

    " }, "CreationTime":{ "shape":"Time", @@ -2170,7 +2174,7 @@ }, "LocationUri":{ "shape":"LocationUri", - "documentation":"

    The URL of the NFS location.

    " + "documentation":"

    The URI of the NFS location.

    " }, "OnPremConfig":{"shape":"OnPremConfig"}, "MountOptions":{ @@ -2190,7 +2194,7 @@ "members":{ "LocationArn":{ "shape":"LocationArn", - "documentation":"

    The Amazon Resource Name (ARN) of the object storage system location that you want information about.

    " + "documentation":"

    Specifies the Amazon Resource Name (ARN) of the object storage system location.

    " } }, "documentation":"

    DescribeLocationObjectStorageRequest

    " @@ -2204,7 +2208,7 @@ }, "LocationUri":{ "shape":"LocationUri", - "documentation":"

    The URL of the object storage system location.

    " + "documentation":"

    The URI of the object storage system location.

    " }, "AccessKey":{ "shape":"ObjectStorageAccessKey", @@ -2220,7 +2224,7 @@ }, "AgentArns":{ "shape":"AgentArnList", - "documentation":"

    The ARNs of the DataSync agents that can securely connect with your location.

    " + "documentation":"

    The ARNs of the DataSync agents that can connect with your object storage system.

    " }, "CreationTime":{ "shape":"Time", @@ -2239,7 +2243,7 @@ "members":{ "LocationArn":{ "shape":"LocationArn", - "documentation":"

    The Amazon Resource Name (ARN) of the Amazon S3 bucket location to describe.

    " + "documentation":"

    Specifies the Amazon Resource Name (ARN) of the Amazon S3 location.

    " } }, "documentation":"

    DescribeLocationS3Request

    " @@ -2249,7 +2253,7 @@ "members":{ "LocationArn":{ "shape":"LocationArn", - "documentation":"

    The Amazon Resource Name (ARN) of the Amazon S3 bucket or access point.

    " + "documentation":"

    The ARN of the Amazon S3 location.

    " }, "LocationUri":{ "shape":"LocationUri", @@ -2257,16 +2261,16 @@ }, "S3StorageClass":{ "shape":"S3StorageClass", - "documentation":"

    The Amazon S3 storage class that you chose to store your files in when this location is used as a task destination. For more information about S3 storage classes, see Amazon S3 Storage Classes. Some storage classes have behaviors that can affect your S3 storage cost. For detailed information, see Considerations when working with S3 storage classes in DataSync.

    " + "documentation":"

    When Amazon S3 is a destination location, this is the storage class that you chose for your objects.

    Some storage classes have behaviors that can affect your Amazon S3 storage costs. For more information, see Storage class considerations with Amazon S3 transfers.

    " }, "S3Config":{"shape":"S3Config"}, "AgentArns":{ "shape":"AgentArnList", - "documentation":"

    If you are using DataSync on an Amazon Web Services Outpost, the Amazon Resource Name (ARNs) of the EC2 agents deployed on your Outpost. For more information about launching a DataSync agent on an Amazon Web Services Outpost, see Deploy your DataSync agent on Outposts.

    " + "documentation":"

    The ARNs of the DataSync agents deployed on your Outpost when using working with Amazon S3 on Outposts.

    For more information, see Deploy your DataSync agent on Outposts.

    " }, "CreationTime":{ "shape":"Time", - "documentation":"

    The time that the Amazon S3 bucket location was created.

    " + "documentation":"

    The time that the Amazon S3 location was created.

    " } }, "documentation":"

    DescribeLocationS3Response

    " @@ -2277,7 +2281,7 @@ "members":{ "LocationArn":{ "shape":"LocationArn", - "documentation":"

    The Amazon Resource Name (ARN) of the SMB location to describe.

    " + "documentation":"

    Specifies the Amazon Resource Name (ARN) of the SMB location that you want information about.

    " } }, "documentation":"

    DescribeLocationSmbRequest

    " @@ -2287,27 +2291,27 @@ "members":{ "LocationArn":{ "shape":"LocationArn", - "documentation":"

    The Amazon Resource Name (ARN) of the SMB location that was described.

    " + "documentation":"

    The ARN of the SMB location.

    " }, "LocationUri":{ "shape":"LocationUri", - "documentation":"

    The URL of the source SMB location that was described.

    " + "documentation":"

    The URI of the SMB location.

    " }, "AgentArns":{ "shape":"AgentArnList", - "documentation":"

    The Amazon Resource Name (ARN) of the source SMB file system location that is created.

    " + "documentation":"

    The ARNs of the DataSync agents that can connect with your SMB file server.

    " }, "User":{ "shape":"SmbUser", - "documentation":"

    The user who can mount the share, has the permissions to access files and folders in the SMB share.

    " + "documentation":"

    The user that can mount and access the files, folders, and file metadata in your SMB file server.

    " }, "Domain":{ "shape":"SmbDomain", - "documentation":"

    The name of the Windows domain that the SMB server belongs to.

    " + "documentation":"

    The name of the Microsoft Active Directory domain that the SMB file server belongs to.

    " }, "MountOptions":{ "shape":"SmbMountOptions", - "documentation":"

    The mount options that are available for DataSync to use to access an SMB location.

    " + "documentation":"

    The protocol that DataSync use to access your SMB file.

    " }, "CreationTime":{ "shape":"Time", @@ -2499,6 +2503,10 @@ "shape":"FilterList", "documentation":"

    A list of filter rules that include specific data during your transfer. For more information and examples, see Filtering data transferred by DataSync.

    " }, + "ManifestConfig":{ + "shape":"ManifestConfig", + "documentation":"

    The configuration of the manifest that lists the files or objects to transfer. For more information, see Specifying what DataSync transfers by using a manifest.

    " + }, "StartTime":{ "shape":"Time", "documentation":"

    The time when the task execution started.

    " @@ -2523,17 +2531,17 @@ "shape":"long", "documentation":"

    The total number of bytes that are involved in the transfer. For the number of bytes sent over the network, see BytesCompressed.

    " }, - "Result":{ - "shape":"TaskExecutionResultDetail", - "documentation":"

    The result of the task execution.

    " - }, "BytesCompressed":{ "shape":"long", "documentation":"

    The physical number of bytes transferred over the network after compression was applied. In most cases, this number is less than BytesTransferred unless the data isn't compressible.

    " }, + "Result":{ + "shape":"TaskExecutionResultDetail", + "documentation":"

    The result of the task execution.

    " + }, "TaskReportConfig":{ "shape":"TaskReportConfig", - "documentation":"

    The configuration of your task report, which provides detailed information about for your DataSync transfer.

    " + "documentation":"

    The configuration of your task report, which provides detailed information about for your DataSync transfer. For more information, see Creating a task report.

    " }, "FilesDeleted":{ "shape":"long", @@ -2636,9 +2644,13 @@ "shape":"FilterList", "documentation":"

    A list of filter rules that include specific data during your transfer. For more information and examples, see Filtering data transferred by DataSync.

    " }, + "ManifestConfig":{ + "shape":"ManifestConfig", + "documentation":"

    The configuration of the manifest that lists the files or objects to transfer. For more information, see Specifying what DataSync transfers by using a manifest.

    " + }, "TaskReportConfig":{ "shape":"TaskReportConfig", - "documentation":"

    The configuration of your task report. For more information, see Creating a task report.

    " + "documentation":"

    The configuration of your task report, which provides detailed information about for your DataSync transfer. For more information, see Creating a task report.

    " } }, "documentation":"

    DescribeTaskResponse

    " @@ -2919,7 +2931,7 @@ "members":{ "Domain":{ "shape":"SmbDomain", - "documentation":"

    Specifies the fully qualified domain name (FQDN) of the Microsoft Active Directory that your storage virtual machine (SVM) belongs to.

    " + "documentation":"

    Specifies the fully qualified domain name (FQDN) of the Microsoft Active Directory that your storage virtual machine (SVM) belongs to.

    If you have multiple domains in your environment, configuring this setting makes sure that DataSync connects to the right SVM.

    " }, "MountOptions":{"shape":"SmbMountOptions"}, "Password":{ @@ -2928,7 +2940,7 @@ }, "User":{ "shape":"SmbUser", - "documentation":"

    Specifies a user name that can mount the location and access the files, folders, and metadata that you need in the SVM.

    If you provide a user in your Active Directory, note the following:

    • If you're using Directory Service for Microsoft Active Directory, the user must be a member of the Amazon Web Services Delegated FSx Administrators group.

    • If you're using a self-managed Active Directory, the user must be a member of either the Domain Admins group or a custom group that you specified for file system administration when you created your file system.

    Make sure that the user has the permissions it needs to copy the data you want:

    • SE_TCB_NAME: Required to set object ownership and file metadata. With this privilege, you also can copy NTFS discretionary access lists (DACLs).

    • SE_SECURITY_NAME: May be needed to copy NTFS system access control lists (SACLs). This operation specifically requires the Windows privilege, which is granted to members of the Domain Admins group. If you configure your task to copy SACLs, make sure that the user has the required privileges. For information about copying SACLs, see Ownership and permissions-related options.

    " + "documentation":"

    Specifies a user that can mount and access the files, folders, and metadata in your SVM.

    For information about choosing a user with the right level of access for your transfer, see Using the SMB protocol.

    " } }, "documentation":"

    Specifies the Server Message Block (SMB) protocol configuration that DataSync uses to access your Amazon FSx for NetApp ONTAP file system. For more information, see Accessing FSx for ONTAP file systems.

    " @@ -3302,15 +3314,15 @@ "members":{ "TaskArn":{ "shape":"TaskArn", - "documentation":"

    The Amazon Resource Name (ARN) of the task whose tasks you want to list.

    " + "documentation":"

    Specifies the Amazon Resource Name (ARN) of the task that you want execution information about.

    " }, "MaxResults":{ "shape":"MaxResults", - "documentation":"

    The maximum number of executed tasks to list.

    " + "documentation":"

    Specifies how many results you want in the response.

    " }, "NextToken":{ "shape":"NextToken", - "documentation":"

    An opaque string that indicates the position at which to begin the next list of the executed tasks.

    " + "documentation":"

    Specifies an opaque string that indicates the position at which to begin the next list of results in the response.

    " } }, "documentation":"

    ListTaskExecutions

    " @@ -3320,11 +3332,11 @@ "members":{ "TaskExecutions":{ "shape":"TaskExecutionList", - "documentation":"

    A list of executed tasks.

    " + "documentation":"

    A list of the task's executions.

    " }, "NextToken":{ "shape":"NextToken", - "documentation":"

    An opaque string that indicates the position at which to begin returning the next list of executed tasks.

    " + "documentation":"

    The opaque string that indicates the position to begin the next list of results in the response.

    " } }, "documentation":"

    ListTaskExecutionsResponse

    " @@ -3437,6 +3449,32 @@ "TRANSFER" ] }, + "ManifestAction":{ + "type":"string", + "enum":["TRANSFER"] + }, + "ManifestConfig":{ + "type":"structure", + "members":{ + "Action":{ + "shape":"ManifestAction", + "documentation":"

    Specifies what DataSync uses the manifest for.

    " + }, + "Format":{ + "shape":"ManifestFormat", + "documentation":"

    Specifies the file format of your manifest. For more information, see Creating a manifest.

    " + }, + "Source":{ + "shape":"SourceManifestConfig", + "documentation":"

    Specifies the manifest that you want DataSync to use and where it's hosted.

    You must specify this parameter if you're configuring a new manifest on or after February 7, 2024.

    If you don't, you'll get a 400 status code and ValidationException error stating that you're missing the IAM role for DataSync to access the S3 bucket where you're hosting your manifest. For more information, see Providing DataSync access to your manifest.

    " + } + }, + "documentation":"

    Configures a manifest, which is a list of files or objects that you want DataSync to transfer. For more information and configuration examples, see Specifying what DataSync transfers by using a manifest.

    " + }, + "ManifestFormat":{ + "type":"string", + "enum":["CSV"] + }, "MaxP95Performance":{ "type":"structure", "members":{ @@ -3828,39 +3866,39 @@ "members":{ "VerifyMode":{ "shape":"VerifyMode", - "documentation":"

    Specifies how and when DataSync checks the integrity of your data during a transfer.

    Default value: POINT_IN_TIME_CONSISTENT

    ONLY_FILES_TRANSFERRED (recommended): DataSync calculates the checksum of transferred files and metadata at the source location. At the end of the transfer, DataSync then compares this checksum to the checksum calculated on those files at the destination.

    We recommend this option when transferring to S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive storage classes. For more information, see Storage class considerations with Amazon S3 locations.

    POINT_IN_TIME_CONSISTENT: At the end of the transfer, DataSync scans the entire source and destination to verify that both locations are fully synchronized.

    You can't use this option when transferring to S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive storage classes. For more information, see Storage class considerations with Amazon S3 locations.

    NONE: DataSync doesn't run additional verification at the end of the transfer. All data transmissions are still integrity-checked with checksum verification during the transfer.

    " + "documentation":"

    Specifies how and when DataSync checks the integrity of your data during a transfer.

    • ONLY_FILES_TRANSFERRED (recommended) - DataSync calculates the checksum of transferred files and metadata at the source location. At the end of the transfer, DataSync then compares this checksum to the checksum calculated on those files at the destination.

      We recommend this option when transferring to S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive storage classes. For more information, see Storage class considerations with Amazon S3 locations.

    • POINT_IN_TIME_CONSISTENT (default) - At the end of the transfer, DataSync scans the entire source and destination to verify that both locations are fully synchronized.

      You can't use this option when transferring to S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive storage classes. For more information, see Storage class considerations with Amazon S3 locations.

    • NONE - DataSync doesn't run additional verification at the end of the transfer. All data transmissions are still integrity-checked with checksum verification during the transfer.

    " }, "OverwriteMode":{ "shape":"OverwriteMode", - "documentation":"

    Specifies whether data at the destination location should be overwritten or preserved. If set to NEVER, a destination file for example will not be replaced by a source file (even if the destination file differs from the source file). If you modify files in the destination and you sync the files, you can use this value to protect against overwriting those changes.

    Some storage classes have specific behaviors that can affect your Amazon S3 storage cost. For detailed information, see Considerations when working with Amazon S3 storage classes in DataSync.

    " + "documentation":"

    Specifies whether DataSync should modify or preserve data at the destination location.

    • ALWAYS (default) - DataSync modifies data in the destination location when source data (including metadata) has changed.

      If DataSync overwrites objects, you might incur additional charges for certain Amazon S3 storage classes (for example, for retrieval or early deletion). For more information, see Storage class considerations with Amazon S3 transfers.

    • NEVER - DataSync doesn't overwrite data in the destination location even if the source data has changed. You can use this option to protect against overwriting changes made to files or objects in the destination.

    " }, "Atime":{ "shape":"Atime", - "documentation":"

    Specifies whether to preserve metadata indicating the last time a file was read or written to. If you set Atime to BEST_EFFORT, DataSync attempts to preserve the original Atime attribute on all source files (that is, the version before the PREPARING phase of the task execution).

    The behavior of Atime isn't fully standard across platforms, so DataSync can only do this on a best-effort basis.

    Default value: BEST_EFFORT

    BEST_EFFORT: Attempt to preserve the per-file Atime value (recommended).

    NONE: Ignore Atime.

    If Atime is set to BEST_EFFORT, Mtime must be set to PRESERVE.

    If Atime is set to NONE, Mtime must also be NONE.

    " + "documentation":"

    Specifies whether to preserve metadata indicating the last time a file was read or written to.

    The behavior of Atime isn't fully standard across platforms, so DataSync can only do this on a best-effort basis.

    • BEST_EFFORT (default) - DataSync attempts to preserve the original Atime attribute on all source files (that is, the version before the PREPARING phase of the task execution). This option is recommended.

    • NONE - Ignores Atime.

    If Atime is set to BEST_EFFORT, Mtime must be set to PRESERVE.

    If Atime is set to NONE, Mtime must also be NONE.

    " }, "Mtime":{ "shape":"Mtime", - "documentation":"

    Specifies whether to preserve metadata indicating the last time that a file was written to before the PREPARING phase of your task execution. This option is required when you need to run the a task more than once.

    Default Value: PRESERVE

    PRESERVE: Preserve original Mtime (recommended)

    NONE: Ignore Mtime.

    If Mtime is set to PRESERVE, Atime must be set to BEST_EFFORT.

    If Mtime is set to NONE, Atime must also be set to NONE.

    " + "documentation":"

    Specifies whether to preserve metadata indicating the last time that a file was written to before the PREPARING phase of your task execution. This option is required when you need to run the a task more than once.

    • PRESERVE (default) - Preserves original Mtime, which is recommended.

    • NONE - Ignores Mtime.

    If Mtime is set to PRESERVE, Atime must be set to BEST_EFFORT.

    If Mtime is set to NONE, Atime must also be set to NONE.

    " }, "Uid":{ "shape":"Uid", - "documentation":"

    Specifies the POSIX user ID (UID) of the file's owner.

    For more information, see Metadata copied by DataSync.

    Default value: INT_VALUE. This preserves the integer value of the ID.

    INT_VALUE: Preserve the integer value of UID and group ID (GID) (recommended).

    NONE: Ignore UID and GID.

    " + "documentation":"

    Specifies the POSIX user ID (UID) of the file's owner.

    • INT_VALUE (default) - Preserves the integer value of UID and group ID (GID), which is recommended.

    • NONE - Ignores UID and GID.

    For more information, see Metadata copied by DataSync.

    " }, "Gid":{ "shape":"Gid", - "documentation":"

    Specifies the POSIX group ID (GID) of the file's owners.

    For more information, see Metadata copied by DataSync.

    Default value: INT_VALUE. This preserves the integer value of the ID.

    INT_VALUE: Preserve the integer value of user ID (UID) and GID (recommended).

    NONE: Ignore UID and GID.

    " + "documentation":"

    Specifies the POSIX group ID (GID) of the file's owners.

    • INT_VALUE (default) - Preserves the integer value of user ID (UID) and GID, which is recommended.

    • NONE - Ignores UID and GID.

    For more information, see Metadata copied by DataSync.

    " }, "PreserveDeletedFiles":{ "shape":"PreserveDeletedFiles", - "documentation":"

    Specifies whether files in the destination location that don't exist in the source should be preserved. This option can affect your Amazon S3 storage cost. If your task deletes objects, you might incur minimum storage duration charges for certain storage classes. For detailed information, see Considerations when working with Amazon S3 storage classes in DataSync.

    Default value: PRESERVE

    PRESERVE: Ignore such destination files (recommended).

    REMOVE: Delete destination files that aren’t present in the source.

    If you set this parameter to REMOVE, you can't set TransferMode to ALL. When you transfer all data, DataSync doesn't scan your destination location and doesn't know what to delete.

    " + "documentation":"

    Specifies whether files in the destination location that don't exist in the source should be preserved. This option can affect your Amazon S3 storage cost. If your task deletes objects, you might incur minimum storage duration charges for certain storage classes. For detailed information, see Considerations when working with Amazon S3 storage classes in DataSync.

    • PRESERVE (default) - Ignores such destination files, which is recommended.

    • REMOVE - Deletes destination files that aren’t present in the source.

    If you set this parameter to REMOVE, you can't set TransferMode to ALL. When you transfer all data, DataSync doesn't scan your destination location and doesn't know what to delete.

    " }, "PreserveDevices":{ "shape":"PreserveDevices", - "documentation":"

    Specifies whether DataSync should preserve the metadata of block and character devices in the source location and recreate the files with that device name and metadata on the destination. DataSync copies only the name and metadata of such devices.

    DataSync can't copy the actual contents of these devices because they're nonterminal and don't return an end-of-file (EOF) marker.

    Default value: NONE

    NONE: Ignore special devices (recommended).

    PRESERVE: Preserve character and block device metadata. This option currently isn't supported for Amazon EFS.

    " + "documentation":"

    Specifies whether DataSync should preserve the metadata of block and character devices in the source location and recreate the files with that device name and metadata on the destination. DataSync copies only the name and metadata of such devices.

    DataSync can't copy the actual contents of these devices because they're nonterminal and don't return an end-of-file (EOF) marker.

    • NONE (default) - Ignores special devices (recommended).

    • PRESERVE - Preserves character and block device metadata. This option currently isn't supported for Amazon EFS.

    " }, "PosixPermissions":{ "shape":"PosixPermissions", - "documentation":"

    Specifies which users or groups can access a file for a specific purpose such as reading, writing, or execution of the file.

    For more information, see Metadata copied by DataSync.

    Default value: PRESERVE

    PRESERVE: Preserve POSIX-style permissions (recommended).

    NONE: Ignore permissions.

    DataSync can preserve extant permissions of a source location.

    " + "documentation":"

    Specifies which users or groups can access a file for a specific purpose such as reading, writing, or execution of the file.

    For more information, see Metadata copied by DataSync.

    • PRESERVE (default) - Preserves POSIX-style permissions, which is recommended.

    • NONE - Ignores POSIX-style permissions.

    DataSync can preserve extant permissions of a source location.

    " }, "BytesPerSecond":{ "shape":"BytesPerSecond", @@ -3872,19 +3910,19 @@ }, "LogLevel":{ "shape":"LogLevel", - "documentation":"

    Specifies the type of logs that DataSync publishes to a Amazon CloudWatch Logs log group. To specify the log group, see CloudWatchLogGroupArn.

    If you set LogLevel to OFF, no logs are published. BASIC publishes logs on errors for individual files transferred. TRANSFER publishes logs for every file or object that is transferred and integrity checked.

    " + "documentation":"

    Specifies the type of logs that DataSync publishes to a Amazon CloudWatch Logs log group. To specify the log group, see CloudWatchLogGroupArn.

    • BASIC - Publishes logs with only basic information (such as transfer errors).

    • TRANSFER - Publishes logs for all files or objects that your DataSync task transfers and performs data-integrity checks on.

    • OFF - No logs are published.

    " }, "TransferMode":{ "shape":"TransferMode", - "documentation":"

    Determines whether DataSync transfers only the data and metadata that differ between the source and the destination location or transfers all the content from the source (without comparing what's in the destination).

    CHANGED: DataSync copies only data or metadata that is new or different content from the source location to the destination location.

    ALL: DataSync copies all source location content to the destination (without comparing what's in the destination).

    " + "documentation":"

    Determines whether DataSync transfers only the data and metadata that differ between the source and the destination location or transfers all the content from the source (without comparing what's in the destination).

    • CHANGED (default) - DataSync copies only data or metadata that is new or different content from the source location to the destination location.

    • ALL - DataSync copies everything in the source to the destination without comparing differences between the locations.

    " }, "SecurityDescriptorCopyFlags":{ "shape":"SmbSecurityDescriptorCopyFlags", - "documentation":"

    Specifies which components of the SMB security descriptor are copied from source to destination objects.

    This value is only used for transfers between SMB and Amazon FSx for Windows File Server locations or between two FSx for Windows File Server locations. For more information, see how DataSync handles metadata.

    Default value: OWNER_DACL

    OWNER_DACL: For each copied object, DataSync copies the following metadata:

    • The object owner.

    • NTFS discretionary access control lists (DACLs), which determine whether to grant access to an object.

      DataSync won't copy NTFS system access control lists (SACLs) with this option.

    OWNER_DACL_SACL: For each copied object, DataSync copies the following metadata:

    • The object owner.

    • NTFS discretionary access control lists (DACLs), which determine whether to grant access to an object.

    • SACLs, which are used by administrators to log attempts to access a secured object.

      Copying SACLs requires granting additional permissions to the Windows user that DataSync uses to access your SMB location. For information about choosing a user that ensures sufficient permissions to files, folders, and metadata, see user.

    NONE: None of the SMB security descriptor components are copied. Destination objects are owned by the user that was provided for accessing the destination location. DACLs and SACLs are set based on the destination server’s configuration.

    " + "documentation":"

    Specifies which components of the SMB security descriptor are copied from source to destination objects.

    This value is only used for transfers between SMB and Amazon FSx for Windows File Server locations or between two FSx for Windows File Server locations. For more information, see how DataSync handles metadata.

    • OWNER_DACL (default) - For each copied object, DataSync copies the following metadata:

      • The object owner.

      • NTFS discretionary access control lists (DACLs), which determine whether to grant access to an object.

        DataSync won't copy NTFS system access control lists (SACLs) with this option.

    • OWNER_DACL_SACL - For each copied object, DataSync copies the following metadata:

      • The object owner.

      • NTFS discretionary access control lists (DACLs), which determine whether to grant access to an object.

      • SACLs, which are used by administrators to log attempts to access a secured object.

        Copying SACLs requires granting additional permissions to the Windows user that DataSync uses to access your SMB location. For information about choosing a user with the right permissions, see required permissions for SMB, FSx for Windows File Server, or FSx for ONTAP (depending on the type of location in your transfer).

    • NONE - None of the SMB security descriptor components are copied. Destination objects are owned by the user that was provided for accessing the destination location. DACLs and SACLs are set based on the destination server’s configuration.

    " }, "ObjectTags":{ "shape":"ObjectTags", - "documentation":"

    Specifies whether object tags are preserved when transferring between object storage systems. If you want your DataSync task to ignore object tags, specify the NONE value.

    Default Value: PRESERVE

    " + "documentation":"

    Specifies whether you want DataSync to PRESERVE object tags (default behavior) when transferring between object storage systems. If you want your DataSync task to ignore object tags, specify the NONE value.

    " } }, "documentation":"

    Indicates how your transfer task is configured. These options include how DataSync handles files, objects, and their associated metadata during your transfer. You also can specify how to verify data integrity, set bandwidth limits for your task, among other options.

    Each option has a default value. Unless you need to, you don't have to configure any of these options before starting your task.

    " @@ -3945,7 +3983,7 @@ "members":{ "Version":{ "shape":"AgentVersion", - "documentation":"

    The version of the DataSync agent.

    Beginning December 7, 2023, we will discontinue version 1 DataSync agents. Check the DataSync console to see if you have affected agents. If you do, replace those agents before then to avoid data transfer or storage discovery disruptions. If you need more help, contact Amazon Web Services Support.

    " + "documentation":"

    The version of the DataSync agent.

    On December 7, 2023, we discontinued version 1 DataSync agents. Check the DataSync console to see if you have affected agents. If you do, replace those agents or delete them if they aren't in use. If you need more help, contact Amazon Web Services Support.

    " } }, "documentation":"

    The platform-related details about the DataSync agent, such as the version number.

    " @@ -4107,7 +4145,7 @@ }, "BucketAccessRoleArn":{ "shape":"IamRoleArn", - "documentation":"

    Specifies the Amazon Resource Name (ARN) of the IAM policy that allows DataSync to upload a task report to your S3 bucket. For more information, see Allowing DataSync to upload a task report to an Amazon S3 bucket.

    " + "documentation":"

    Specifies the Amazon Resource Name (ARN) of the IAM policy that allows DataSync to upload a task report to your S3 bucket. For more information, see Allowing DataSync to upload a task report to an Amazon S3 bucket.

    " } }, "documentation":"

    Specifies the Amazon S3 bucket where DataSync uploads your task report.

    " @@ -4246,10 +4284,43 @@ "members":{ "BucketAccessRoleArn":{ "shape":"IamRoleArn", - "documentation":"

    The ARN of the IAM role for accessing the S3 bucket.

    " + "documentation":"

    Specifies the ARN of the IAM role that DataSync uses to access your S3 bucket.

    " } }, - "documentation":"

    The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role used to access an Amazon S3 bucket.

    For detailed information about using such a role, see Creating a Location for Amazon S3 in the DataSync User Guide.

    " + "documentation":"

    Specifies the Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that DataSync uses to access your S3 bucket.

    For more information, see Accessing S3 buckets.

    " + }, + "S3ManifestConfig":{ + "type":"structure", + "required":[ + "ManifestObjectPath", + "BucketAccessRoleArn", + "S3BucketArn" + ], + "members":{ + "ManifestObjectPath":{ + "shape":"S3Subdirectory", + "documentation":"

    Specifies the Amazon S3 object key of your manifest. This can include a prefix (for example, prefix/my-manifest.csv).

    " + }, + "BucketAccessRoleArn":{ + "shape":"IamRoleArn", + "documentation":"

    Specifies the Identity and Access Management (IAM) role that allows DataSync to access your manifest. For more information, see Providing DataSync access to your manifest.

    " + }, + "S3BucketArn":{ + "shape":"S3BucketArn", + "documentation":"

    Specifies the Amazon Resource Name (ARN) of the S3 bucket where you're hosting your manifest.

    " + }, + "ManifestObjectVersionId":{ + "shape":"S3ObjectVersionId", + "documentation":"

    Specifies the object version ID of the manifest that you want DataSync to use. If you don't set this, DataSync uses the latest version of the object.

    " + } + }, + "documentation":"

    Specifies the S3 bucket where you're hosting the manifest that you want DataSync to use. For more information and configuration examples, see Specifying what DataSync transfers by using a manifest.

    " + }, + "S3ObjectVersionId":{ + "type":"string", + "max":100, + "min":1, + "pattern":"^.+$" }, "S3StorageClass":{ "type":"string", @@ -4333,6 +4404,17 @@ "SMB2_0" ] }, + "SourceManifestConfig":{ + "type":"structure", + "required":["S3"], + "members":{ + "S3":{ + "shape":"S3ManifestConfig", + "documentation":"

    Specifies the S3 bucket where you're hosting your manifest.

    " + } + }, + "documentation":"

    Specifies the manifest that you want DataSync to use and where it's hosted. For more information and configuration examples, see Specifying what DataSync transfers by using a manifest.

    " + }, "SourceNetworkInterfaceArns":{ "type":"list", "member":{"shape":"NetworkInterfaceArn"} @@ -4390,13 +4472,17 @@ "shape":"FilterList", "documentation":"

    Specifies a list of filter rules that determines which files to exclude from a task. The list contains a single filter string that consists of the patterns to exclude. The patterns are delimited by \"|\" (that is, a pipe), for example, \"/folder1|/folder2\".

    " }, - "Tags":{ - "shape":"InputTagList", - "documentation":"

    Specifies the tags that you want to apply to the Amazon Resource Name (ARN) representing the task execution.

    Tags are key-value pairs that help you manage, filter, and search for your DataSync resources.

    " + "ManifestConfig":{ + "shape":"ManifestConfig", + "documentation":"

    Configures a manifest, which is a list of files or objects that you want DataSync to transfer. For more information and configuration examples, see Specifying what DataSync transfers by using a manifest.

    When using this parameter, your caller identity (the role that you're using DataSync with) must have the iam:PassRole permission. The AWSDataSyncFullAccess policy includes this permission.

    To remove a manifest configuration, specify this parameter with an empty value.

    " }, "TaskReportConfig":{ "shape":"TaskReportConfig", - "documentation":"

    Specifies how you want to configure a task report, which provides detailed information about for your DataSync transfer.

    " + "documentation":"

    Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer. For more information, see Monitoring your DataSync transfers with task reports.

    When using this parameter, your caller identity (the role that you're using DataSync with) must have the iam:PassRole permission. The AWSDataSyncFullAccess policy includes this permission.

    To remove a task report configuration, specify this parameter as empty.

    " + }, + "Tags":{ + "shape":"InputTagList", + "documentation":"

    Specifies the tags that you want to apply to the Amazon Resource Name (ARN) representing the task execution.

    Tags are key-value pairs that help you manage, filter, and search for your DataSync resources.

    " } }, "documentation":"

    StartTaskExecutionRequest

    " @@ -4542,14 +4628,14 @@ "members":{ "TaskExecutionArn":{ "shape":"TaskExecutionArn", - "documentation":"

    The Amazon Resource Name (ARN) of the task that was executed.

    " + "documentation":"

    The Amazon Resource Name (ARN) of a task execution.

    " }, "Status":{ "shape":"TaskExecutionStatus", - "documentation":"

    The status of a task execution.

    " + "documentation":"

    The status of a task execution. For more information, see Task execution statuses.

    " } }, - "documentation":"

    Represents a single entry in a list of task executions. TaskExecutionListEntry returns an array that contains a list of specific invocations of a task when the ListTaskExecutions operation is called.

    " + "documentation":"

    Represents a single entry in a list of DataSync task executions that's returned with the ListTaskExecutions operation.

    " }, "TaskExecutionResultDetail":{ "type":"structure", @@ -5105,9 +5191,13 @@ "shape":"FilterList", "documentation":"

    Specifies a list of filter rules that include specific data during your transfer. For more information and examples, see Filtering data transferred by DataSync.

    " }, + "ManifestConfig":{ + "shape":"ManifestConfig", + "documentation":"

    Configures a manifest, which is a list of files or objects that you want DataSync to transfer. For more information and configuration examples, see Specifying what DataSync transfers by using a manifest.

    When using this parameter, your caller identity (the IAM role that you're using DataSync with) must have the iam:PassRole permission. The AWSDataSyncFullAccess policy includes this permission.

    To remove a manifest configuration, specify this parameter as empty.

    " + }, "TaskReportConfig":{ "shape":"TaskReportConfig", - "documentation":"

    Specifies how you want to configure a task report, which provides detailed information about for your DataSync transfer.

    " + "documentation":"

    Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer. For more information, see Monitoring your DataSync transfers with task reports.

    When using this parameter, your caller identity (the IAM role that you're using DataSync with) must have the iam:PassRole permission. The AWSDataSyncFullAccess policy includes this permission.

    To remove a task report configuration, specify this parameter as empty.

    " } }, "documentation":"

    UpdateTaskResponse

    " diff --git a/tools/code-generation/api-descriptions/models.lex.v2-2020-08-07.normal.json b/tools/code-generation/api-descriptions/models.lex.v2-2020-08-07.normal.json index 37a10e5a4d4..c55e824971f 100644 --- a/tools/code-generation/api-descriptions/models.lex.v2-2020-08-07.normal.json +++ b/tools/code-generation/api-descriptions/models.lex.v2-2020-08-07.normal.json @@ -143,6 +143,25 @@ ], "documentation":"

    Creates a locale in the bot. The locale contains the intents and slot types that the bot uses in conversations with users in the specified language and locale. You must add a locale to a bot before you can add intents and slot types to the bot.

    " }, + "CreateBotReplica":{ + "name":"CreateBotReplica", + "http":{ + "method":"PUT", + "requestUri":"/bots/{botId}/replicas/", + "responseCode":202 + }, + "input":{"shape":"CreateBotReplicaRequest"}, + "output":{"shape":"CreateBotReplicaResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ValidationException"}, + {"shape":"PreconditionFailedException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    Action to create a replication of the source bot in the secondary region.

    " + }, "CreateBotVersion":{ "name":"CreateBotVersion", "http":{ @@ -371,6 +390,25 @@ ], "documentation":"

    Removes a locale from a bot.

    When you delete a locale, all intents, slots, and slot types defined for the locale are also deleted.

    " }, + "DeleteBotReplica":{ + "name":"DeleteBotReplica", + "http":{ + "method":"DELETE", + "requestUri":"/bots/{botId}/replicas/{replicaRegion}/", + "responseCode":202 + }, + "input":{"shape":"DeleteBotReplicaRequest"}, + "output":{"shape":"DeleteBotReplicaResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ValidationException"}, + {"shape":"PreconditionFailedException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    The action to delete the replicated bot in the secondary region.

    " + }, "DeleteBotVersion":{ "name":"DeleteBotVersion", "http":{ @@ -639,6 +677,24 @@ ], "documentation":"

    Provides metadata information about a bot recommendation. This information will enable you to get a description on the request inputs, to download associated transcripts after processing is complete, and to download intents and slot-types generated by the bot recommendation.

    " }, + "DescribeBotReplica":{ + "name":"DescribeBotReplica", + "http":{ + "method":"GET", + "requestUri":"/bots/{botId}/replicas/{replicaRegion}/", + "responseCode":200 + }, + "input":{"shape":"DescribeBotReplicaRequest"}, + "output":{"shape":"DescribeBotReplicaResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    Monitors the bot replication status through the UI console.

    " + }, "DescribeBotResourceGeneration":{ "name":"DescribeBotResourceGeneration", "http":{ @@ -924,6 +980,23 @@ ], "documentation":"

    Provides a list of utterances that users have sent to the bot.

    Utterances are aggregated by the text of the utterance. For example, all instances where customers used the phrase \"I want to order pizza\" are aggregated into the same line in the response.

    You can see both detected utterances and missed utterances. A detected utterance is where the bot properly recognized the utterance and activated the associated intent. A missed utterance was not recognized by the bot and didn't activate an intent.

    Utterances can be aggregated for a bot alias or for a bot version, but not both at the same time.

    Utterances statistics are not generated under the following conditions:

    • The childDirected field was set to true when the bot was created.

    • You are using slot obfuscation with one or more slots.

    • You opted out of participating in improving Amazon Lex.

    " }, + "ListBotAliasReplicas":{ + "name":"ListBotAliasReplicas", + "http":{ + "method":"POST", + "requestUri":"/bots/{botId}/replicas/{replicaRegion}/botaliases/", + "responseCode":200 + }, + "input":{"shape":"ListBotAliasReplicasRequest"}, + "output":{"shape":"ListBotAliasReplicasResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    The action to list the replicated bots created from the source bot alias.

    " + }, "ListBotAliases":{ "name":"ListBotAliases", "http":{ @@ -975,6 +1048,23 @@ ], "documentation":"

    Get a list of bot recommendations that meet the specified criteria.

    " }, + "ListBotReplicas":{ + "name":"ListBotReplicas", + "http":{ + "method":"POST", + "requestUri":"/bots/{botId}/replicas/", + "responseCode":200 + }, + "input":{"shape":"ListBotReplicasRequest"}, + "output":{"shape":"ListBotReplicasResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    The action to list the replicated bots.

    " + }, "ListBotResourceGenerations":{ "name":"ListBotResourceGenerations", "http":{ @@ -992,6 +1082,23 @@ ], "documentation":"

    Lists the generation requests made for a bot locale.

    " }, + "ListBotVersionReplicas":{ + "name":"ListBotVersionReplicas", + "http":{ + "method":"POST", + "requestUri":"/bots/{botId}/replicas/{replicaRegion}/botversions/", + "responseCode":200 + }, + "input":{"shape":"ListBotVersionReplicasRequest"}, + "output":{"shape":"ListBotVersionReplicasResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    Contains information about all the versions replication statuses applicable for Global Resiliency.

    " + }, "ListBotVersions":{ "name":"ListBotVersions", "http":{ @@ -3258,6 +3365,51 @@ "min":1, "pattern":"^(\\bAmazonLexTestAlias\\b|[0-9a-zA-Z][_-]?)+$" }, + "BotAliasReplicaSummary":{ + "type":"structure", + "members":{ + "botAliasId":{ + "shape":"BotAliasId", + "documentation":"

    The bot alias ID for all the alias bot replications.

    " + }, + "botAliasReplicationStatus":{ + "shape":"BotAliasReplicationStatus", + "documentation":"

    The replication statuses for all the alias bot replications.

    " + }, + "botVersion":{ + "shape":"BotVersion", + "documentation":"

    The bot version for all the alias bot replications.

    " + }, + "creationDateTime":{ + "shape":"Timestamp", + "documentation":"

    The creation time and date for all the alias bot replications.

    " + }, + "lastUpdatedDateTime":{ + "shape":"Timestamp", + "documentation":"

    The last time and date updated for all the alias bot replications.

    " + }, + "failureReasons":{ + "shape":"FailureReasons", + "documentation":"

    The reasons for failure for the aliases bot replications.

    " + } + }, + "documentation":"

    Contains information about all the aliases replication statuses applicable for global resiliency.

    " + }, + "BotAliasReplicaSummaryList":{ + "type":"list", + "member":{"shape":"BotAliasReplicaSummary"} + }, + "BotAliasReplicationStatus":{ + "type":"string", + "documentation":"

    The status of the operation to replicate the bot alias. Values: Creating, Updating, Available, Deleting, Failed.

    ", + "enum":[ + "Creating", + "Updating", + "Available", + "Deleting", + "Failed" + ] + }, "BotAliasStatus":{ "type":"string", "enum":[ @@ -3721,6 +3873,42 @@ "type":"list", "member":{"shape":"BotRecommendationSummary"} }, + "BotReplicaStatus":{ + "type":"string", + "documentation":"

    The status of the operation to replicate the bot. Values: Enabling, Enabled, Deleting, Failed.

    ", + "enum":[ + "Enabling", + "Enabled", + "Deleting", + "Failed" + ] + }, + "BotReplicaSummary":{ + "type":"structure", + "members":{ + "replicaRegion":{ + "shape":"ReplicaRegion", + "documentation":"

    The replica region used in the replication statuses summary.

    " + }, + "creationDateTime":{ + "shape":"Timestamp", + "documentation":"

    The creation time and date for the replicated bots.

    " + }, + "botReplicaStatus":{ + "shape":"BotReplicaStatus", + "documentation":"

    The operation status for the replicated bot applicable.

    " + }, + "failureReasons":{ + "shape":"FailureReasons", + "documentation":"

    The reasons for the failure for the replicated bot.

    " + } + }, + "documentation":"

    Contains summary information about all the replication statuses applicable for global resiliency.

    " + }, + "BotReplicaSummaryList":{ + "type":"list", + "member":{"shape":"BotReplicaSummary"} + }, "BotSortAttribute":{ "type":"string", "enum":["BotName"] @@ -3824,6 +4012,64 @@ "value":{"shape":"BotVersionLocaleDetails"}, "min":1 }, + "BotVersionReplicaSortAttribute":{ + "type":"string", + "enum":["BotVersion"] + }, + "BotVersionReplicaSortBy":{ + "type":"structure", + "required":[ + "attribute", + "order" + ], + "members":{ + "attribute":{ + "shape":"BotVersionReplicaSortAttribute", + "documentation":"

    The attribute of the sort category for the version replicated bots.

    " + }, + "order":{ + "shape":"SortOrder", + "documentation":"

    The order of the sort category for the version replicated bots.

    " + } + }, + "documentation":"

    The sort category for the version replicated bots.

    " + }, + "BotVersionReplicaSummary":{ + "type":"structure", + "members":{ + "botVersion":{ + "shape":"BotVersion", + "documentation":"

    The bot version for the summary information for all the version replication statuses.

    " + }, + "botVersionReplicationStatus":{ + "shape":"BotVersionReplicationStatus", + "documentation":"

    The version replication status for all the replicated bots.

    " + }, + "creationDateTime":{ + "shape":"Timestamp", + "documentation":"

    The creation date and time of the replication status for all the replicated bots.

    " + }, + "failureReasons":{ + "shape":"FailureReasons", + "documentation":"

    The reasons for replication failure for all the replicated bots.

    " + } + }, + "documentation":"

    Contains summary information for all the version replication statuses applicable for Global resiliency.

    " + }, + "BotVersionReplicaSummaryList":{ + "type":"list", + "member":{"shape":"BotVersionReplicaSummary"} + }, + "BotVersionReplicationStatus":{ + "type":"string", + "documentation":"

    The status of the operation to replicate the bot version. Values: Creating, Available, Deleting, Failed.

    ", + "enum":[ + "Creating", + "Available", + "Deleting", + "Failed" + ] + }, "BotVersionSortAttribute":{ "type":"string", "enum":["BotVersion"] @@ -4609,6 +4855,50 @@ "generativeAISettings":{"shape":"GenerativeAISettings"} } }, + "CreateBotReplicaRequest":{ + "type":"structure", + "required":[ + "botId", + "replicaRegion" + ], + "members":{ + "botId":{ + "shape":"Id", + "documentation":"

    The request for the unique bot ID of the source bot to be replicated in the secondary region.

    ", + "location":"uri", + "locationName":"botId" + }, + "replicaRegion":{ + "shape":"ReplicaRegion", + "documentation":"

    The request for the secondary region that will be used in the replication of the source bot.

    " + } + } + }, + "CreateBotReplicaResponse":{ + "type":"structure", + "members":{ + "botId":{ + "shape":"Id", + "documentation":"

    The unique bot ID of the replicated bot generated.

    " + }, + "replicaRegion":{ + "shape":"ReplicaRegion", + "documentation":"

    The region of the replicated bot generated.

    " + }, + "sourceRegion":{ + "shape":"ReplicaRegion", + "documentation":"

    The source region for the source bot used for the replicated bot generated.

    " + }, + "creationDateTime":{ + "shape":"Timestamp", + "documentation":"

    The creation date and time of the replicated bot generated.

    " + }, + "botReplicaStatus":{ + "shape":"BotReplicaStatus", + "documentation":"

    The operational status of the replicated bot generated.

    " + } + } + }, "CreateBotRequest":{ "type":"structure", "required":[ @@ -5620,6 +5910,44 @@ } } }, + "DeleteBotReplicaRequest":{ + "type":"structure", + "required":[ + "botId", + "replicaRegion" + ], + "members":{ + "botId":{ + "shape":"Id", + "documentation":"

    The unique ID of the replicated bot to be deleted from the secondary region

    ", + "location":"uri", + "locationName":"botId" + }, + "replicaRegion":{ + "shape":"ReplicaRegion", + "documentation":"

    The secondary region of the replicated bot that will be deleted.

    ", + "location":"uri", + "locationName":"replicaRegion" + } + } + }, + "DeleteBotReplicaResponse":{ + "type":"structure", + "members":{ + "botId":{ + "shape":"Id", + "documentation":"

    The unique bot ID of the replicated bot generated.

    " + }, + "replicaRegion":{ + "shape":"ReplicaRegion", + "documentation":"

    The region of the replicated bot generated.

    " + }, + "botReplicaStatus":{ + "shape":"BotReplicaStatus", + "documentation":"

    The operational status of the replicated bot generated.

    " + } + } + }, "DeleteBotRequest":{ "type":"structure", "required":["botId"], @@ -6290,6 +6618,56 @@ } } }, + "DescribeBotReplicaRequest":{ + "type":"structure", + "required":[ + "botId", + "replicaRegion" + ], + "members":{ + "botId":{ + "shape":"Id", + "documentation":"

    The request for the unique bot ID of the replicated bot being monitored.

    ", + "location":"uri", + "locationName":"botId" + }, + "replicaRegion":{ + "shape":"ReplicaRegion", + "documentation":"

    The request for the region of the replicated bot being monitored.

    ", + "location":"uri", + "locationName":"replicaRegion" + } + } + }, + "DescribeBotReplicaResponse":{ + "type":"structure", + "members":{ + "botId":{ + "shape":"Id", + "documentation":"

    The unique bot ID of the replicated bot being monitored.

    " + }, + "replicaRegion":{ + "shape":"ReplicaRegion", + "documentation":"

    The region of the replicated bot being monitored.

    " + }, + "sourceRegion":{ + "shape":"ReplicaRegion", + "documentation":"

    The source region of the replicated bot being monitored.

    " + }, + "creationDateTime":{ + "shape":"Timestamp", + "documentation":"

    The creation date and time of the replicated bot being monitored.

    " + }, + "botReplicaStatus":{ + "shape":"BotReplicaStatus", + "documentation":"

    The operational status of the replicated bot being monitored.

    " + }, + "failureReasons":{ + "shape":"FailureReasons", + "documentation":"

    The failure reasons the bot being monitored failed to replicate.

    " + } + } + }, "DescribeBotRequest":{ "type":"structure", "required":["botId"], @@ -8629,6 +9007,60 @@ } } }, + "ListBotAliasReplicasRequest":{ + "type":"structure", + "required":[ + "botId", + "replicaRegion" + ], + "members":{ + "botId":{ + "shape":"Id", + "documentation":"

    The request for the unique bot ID of the replicated bot created from the source bot alias.

    ", + "location":"uri", + "locationName":"botId" + }, + "replicaRegion":{ + "shape":"ReplicaRegion", + "documentation":"

    The request for the secondary region of the replicated bot created from the source bot alias.

    ", + "location":"uri", + "locationName":"replicaRegion" + }, + "maxResults":{ + "shape":"MaxResults", + "documentation":"

    The request for maximum results to list the replicated bots created from the source bot alias.

    " + }, + "nextToken":{ + "shape":"NextToken", + "documentation":"

    The request for the next token for the replicated bot created from the source bot alias.

    " + } + } + }, + "ListBotAliasReplicasResponse":{ + "type":"structure", + "members":{ + "botId":{ + "shape":"Id", + "documentation":"

    The unique bot ID of the replicated bot created from the source bot alias.

    " + }, + "sourceRegion":{ + "shape":"ReplicaRegion", + "documentation":"

    The source region of the replicated bot created from the source bot alias.

    " + }, + "replicaRegion":{ + "shape":"ReplicaRegion", + "documentation":"

    The secondary region of the replicated bot created from the source bot alias.

    " + }, + "botAliasReplicaSummaries":{ + "shape":"BotAliasReplicaSummaryList", + "documentation":"

    The summary information of the replicated bot created from the source bot alias.

    " + }, + "nextToken":{ + "shape":"NextToken", + "documentation":"

    The next token for the replicated bots created from the source bot alias.

    " + } + } + }, "ListBotAliasesRequest":{ "type":"structure", "required":["botId"], @@ -8785,6 +9217,35 @@ } } }, + "ListBotReplicasRequest":{ + "type":"structure", + "required":["botId"], + "members":{ + "botId":{ + "shape":"Id", + "documentation":"

    The request for the unique bot IDs in the list of replicated bots.

    ", + "location":"uri", + "locationName":"botId" + } + } + }, + "ListBotReplicasResponse":{ + "type":"structure", + "members":{ + "botId":{ + "shape":"Id", + "documentation":"

    the unique bot IDs in the list of replicated bots.

    " + }, + "sourceRegion":{ + "shape":"ReplicaRegion", + "documentation":"

    The source region of the source bots in the list of replicated bots.

    " + }, + "botReplicaSummaries":{ + "shape":"BotReplicaSummaryList", + "documentation":"

    The summary details for the replicated bots.

    " + } + } + }, "ListBotResourceGenerationsRequest":{ "type":"structure", "required":[ @@ -8850,6 +9311,64 @@ } } }, + "ListBotVersionReplicasRequest":{ + "type":"structure", + "required":[ + "botId", + "replicaRegion" + ], + "members":{ + "botId":{ + "shape":"Id", + "documentation":"

    The request for the unique ID in the list of replicated bots.

    ", + "location":"uri", + "locationName":"botId" + }, + "replicaRegion":{ + "shape":"ReplicaRegion", + "documentation":"

    The request for the region used in the list of replicated bots.

    ", + "location":"uri", + "locationName":"replicaRegion" + }, + "maxResults":{ + "shape":"MaxResults", + "documentation":"

    The maximum results given in the list of replicated bots.

    " + }, + "nextToken":{ + "shape":"NextToken", + "documentation":"

    The next token given in the list of replicated bots.

    " + }, + "sortBy":{ + "shape":"BotVersionReplicaSortBy", + "documentation":"

    The requested sort category for the list of replicated bots.

    " + } + } + }, + "ListBotVersionReplicasResponse":{ + "type":"structure", + "members":{ + "botId":{ + "shape":"Id", + "documentation":"

    The unique ID of the bots in the list of replicated bots.

    " + }, + "sourceRegion":{ + "shape":"ReplicaRegion", + "documentation":"

    The source region used for the bots in the list of replicated bots.

    " + }, + "replicaRegion":{ + "shape":"ReplicaRegion", + "documentation":"

    The region used for the replicated bots in the list of replicated bots.

    " + }, + "botVersionReplicaSummaries":{ + "shape":"BotVersionReplicaSummaryList", + "documentation":"

    The information summary used for the replicated bots in the list of replicated bots.

    " + }, + "nextToken":{ + "shape":"NextToken", + "documentation":"

    The next token used for the replicated bots in the list of replicated bots.

    " + } + } + }, "ListBotVersionsRequest":{ "type":"structure", "required":["botId"], @@ -10599,6 +11118,12 @@ }, "documentation":"

    Specifies the time window that utterance statistics are returned for. The time window is always relative to the last time that the that utterances were aggregated. For example, if the ListAggregatedUtterances operation is called at 1600, the time window is set to 1 hour, and the last refresh time was 1530, only utterances made between 1430 and 1530 are returned.

    You can choose the time window that statistics should be returned for.

    • Hours - You can request utterance statistics for 1, 3, 6, 12, or 24 hour time windows. Statistics are refreshed every half hour for 1 hour time windows, and hourly for the other time windows.

    • Days - You can request utterance statistics for 3 days. Statistics are refreshed every 6 hours.

    • Weeks - You can see statistics for one or two weeks. Statistics are refreshed every 12 hours for one week time windows, and once per day for two week time windows.

    " }, + "ReplicaRegion":{ + "type":"string", + "documentation":"

    The region that contains the replicated bots. Minimum value = 2, maximum value = 25.

    ", + "max":25, + "min":2 + }, "ResourceCount":{"type":"integer"}, "ResourceNotFoundException":{ "type":"structure", diff --git a/tools/code-generation/api-descriptions/redshift-2012-12-01.normal.json b/tools/code-generation/api-descriptions/redshift-2012-12-01.normal.json index edb670c9cb7..90d00cc05b0 100644 --- a/tools/code-generation/api-descriptions/redshift-2012-12-01.normal.json +++ b/tools/code-generation/api-descriptions/redshift-2012-12-01.normal.json @@ -1760,6 +1760,23 @@ ], "documentation":"

    Get the resource policy for a specified resource.

    " }, + "ListRecommendations":{ + "name":"ListRecommendations", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListRecommendationsMessage"}, + "output":{ + "shape":"ListRecommendationsResult", + "resultWrapper":"ListRecommendationsResult" + }, + "errors":[ + {"shape":"ClusterNotFoundFault"}, + {"shape":"UnsupportedOperationFault"} + ], + "documentation":"

    List the Amazon Redshift Advisor recommendations for one or multiple Amazon Redshift clusters in an Amazon Web Services account.

    " + }, "ModifyAquaConfiguration":{ "name":"ModifyAquaConfiguration", "http":{ @@ -7264,6 +7281,14 @@ "min":1, "pattern":"^[a-zA-Z0-9_+.#@$-]+$" }, + "ImpactRankingType":{ + "type":"string", + "enum":[ + "HIGH", + "MEDIUM", + "LOW" + ] + }, "ImportTablesCompleted":{ "type":"list", "member":{"shape":"String"} @@ -7832,6 +7857,40 @@ }, "exception":true }, + "ListRecommendationsMessage":{ + "type":"structure", + "members":{ + "ClusterIdentifier":{ + "shape":"String", + "documentation":"

    The unique identifier of the Amazon Redshift cluster for which the list of Advisor recommendations is returned. If the neither the cluster identifier and the cluster namespace ARN parameters are specified, then recommendations for all clusters in the account are returned.

    " + }, + "NamespaceArn":{ + "shape":"String", + "documentation":"

    The Amazon Redshift cluster namespace Amazon Resource Name (ARN) for which the list of Advisor recommendations is returned. If the neither the cluster identifier and the cluster namespace ARN parameters are specified, then recommendations for all clusters in the account are returned.

    " + }, + "MaxRecords":{ + "shape":"IntegerOptional", + "documentation":"

    The maximum number of response records to return in each call. If the number of remaining response records exceeds the specified MaxRecords value, a value is returned in a marker field of the response. You can retrieve the next set of records by retrying the command with the returned marker value.

    " + }, + "Marker":{ + "shape":"String", + "documentation":"

    A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned marker value in the Marker parameter and retrying the command. If the Marker field is empty, all response records have been retrieved for the request.

    " + } + } + }, + "ListRecommendationsResult":{ + "type":"structure", + "members":{ + "Recommendations":{ + "shape":"RecommendationList", + "documentation":"

    The Advisor recommendations for action on the Amazon Redshift cluster.

    " + }, + "Marker":{ + "shape":"String", + "documentation":"

    A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned marker value in the Marker parameter and retrying the command. If the Marker field is empty, all response records have been retrieved for the request.

    " + } + } + }, "LogDestinationType":{ "type":"string", "enum":[ @@ -9013,6 +9072,103 @@ "Cluster":{"shape":"Cluster"} } }, + "Recommendation":{ + "type":"structure", + "members":{ + "Id":{ + "shape":"String", + "documentation":"

    A unique identifier of the Advisor recommendation.

    " + }, + "ClusterIdentifier":{ + "shape":"String", + "documentation":"

    The unique identifier of the cluster for which the recommendation is returned.

    " + }, + "NamespaceArn":{ + "shape":"String", + "documentation":"

    The Amazon Redshift cluster namespace ARN for which the recommendations is returned.

    " + }, + "CreatedAt":{ + "shape":"TStamp", + "documentation":"

    The date and time (UTC) that the recommendation was created.

    " + }, + "RecommendationType":{ + "shape":"String", + "documentation":"

    The type of Advisor recommendation.

    " + }, + "Title":{ + "shape":"String", + "documentation":"

    The title of the recommendation.

    " + }, + "Description":{ + "shape":"String", + "documentation":"

    The description of the recommendation.

    " + }, + "Observation":{ + "shape":"String", + "documentation":"

    The description of what was observed about your cluster.

    " + }, + "ImpactRanking":{ + "shape":"ImpactRankingType", + "documentation":"

    The scale of the impact that the Advisor recommendation has to the performance and cost of the cluster.

    " + }, + "RecommendationText":{ + "shape":"String", + "documentation":"

    The description of the recommendation.

    " + }, + "RecommendedActions":{ + "shape":"RecommendedActionList", + "documentation":"

    List of Amazon Redshift recommended actions.

    " + }, + "ReferenceLinks":{ + "shape":"ReferenceLinkList", + "documentation":"

    List of helpful links for more information about the Advisor recommendation.

    " + } + }, + "documentation":"

    An Amazon Redshift Advisor recommended action on the Amazon Redshift cluster.

    " + }, + "RecommendationList":{ + "type":"list", + "member":{ + "shape":"Recommendation", + "locationName":"Recommendation" + } + }, + "RecommendedAction":{ + "type":"structure", + "members":{ + "Text":{ + "shape":"String", + "documentation":"

    The specific instruction about the command.

    " + }, + "Database":{ + "shape":"String", + "documentation":"

    The database name to perform the action on. Only applicable if the type of command is SQL.

    " + }, + "Command":{ + "shape":"String", + "documentation":"

    The command to run.

    " + }, + "Type":{ + "shape":"RecommendedActionType", + "documentation":"

    The type of command.

    " + } + }, + "documentation":"

    The recommended action from the Amazon Redshift Advisor recommendation.

    " + }, + "RecommendedActionList":{ + "type":"list", + "member":{ + "shape":"RecommendedAction", + "locationName":"RecommendedAction" + } + }, + "RecommendedActionType":{ + "type":"string", + "enum":[ + "SQL", + "CLI" + ] + }, "RecurringCharge":{ "type":"structure", "members":{ @@ -9128,6 +9284,27 @@ }, "exception":true }, + "ReferenceLink":{ + "type":"structure", + "members":{ + "Text":{ + "shape":"String", + "documentation":"

    The hyperlink text that describes the link to more information.

    " + }, + "Link":{ + "shape":"String", + "documentation":"

    The URL address to find more information.

    " + } + }, + "documentation":"

    A link to an Amazon Redshift Advisor reference for more information about a recommendation.

    " + }, + "ReferenceLinkList":{ + "type":"list", + "member":{ + "shape":"ReferenceLink", + "locationName":"ReferenceLink" + } + }, "RejectDataShareMessage":{ "type":"structure", "required":["DataShareArn"],