diff --git a/VERSION b/VERSION index b93bbc30512..aacacb7d68e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.11.428 \ No newline at end of file +1.11.429 \ No newline at end of file diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/BedrockAgentClient.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/BedrockAgentClient.h index 32d5dd75670..db6393829e3 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/BedrockAgentClient.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/BedrockAgentClient.h @@ -978,7 +978,7 @@ namespace BedrockAgent /** *
Gets information about a data ingestion job. Data sources are ingested into - * your knowledge base so that Large Lanaguage Models (LLMs) can use your + * your knowledge base so that Large Language Models (LLMs) can use your * data.
The number of most-likely candidates that the model considers for the next - * token during generation.
- */ - inline int GetTopK() const{ return m_topK; } - inline bool TopKHasBeenSet() const { return m_topKHasBeenSet; } - inline void SetTopK(int value) { m_topKHasBeenSet = true; m_topK = value; } - inline PromptModelInferenceConfiguration& WithTopK(int value) { SetTopK(value); return *this;} - ///@} - ///@{ /** *The percentage of most-likely candidates that the model considers for the @@ -110,9 +99,6 @@ namespace Model double m_temperature; bool m_temperatureHasBeenSet = false; - int m_topK; - bool m_topKHasBeenSet = false; - double m_topP; bool m_topPHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/PromptModelInferenceConfiguration.cpp b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/PromptModelInferenceConfiguration.cpp index bd33952473e..3e6615f2a84 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/PromptModelInferenceConfiguration.cpp +++ b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/PromptModelInferenceConfiguration.cpp @@ -24,8 +24,6 @@ PromptModelInferenceConfiguration::PromptModelInferenceConfiguration() : m_stopSequencesHasBeenSet(false), m_temperature(0.0), m_temperatureHasBeenSet(false), - m_topK(0), - m_topKHasBeenSet(false), m_topP(0.0), m_topPHasBeenSet(false) { @@ -63,13 +61,6 @@ PromptModelInferenceConfiguration& PromptModelInferenceConfiguration::operator = m_temperatureHasBeenSet = true; } - if(jsonValue.ValueExists("topK")) - { - m_topK = jsonValue.GetInteger("topK"); - - m_topKHasBeenSet = true; - } - if(jsonValue.ValueExists("topP")) { m_topP = jsonValue.GetDouble("topP"); @@ -107,12 +98,6 @@ JsonValue PromptModelInferenceConfiguration::Jsonize() const } - if(m_topKHasBeenSet) - { - payload.WithInteger("topK", m_topK); - - } - if(m_topPHasBeenSet) { payload.WithDouble("topP", m_topP); diff --git a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/DataExchangeClient.h b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/DataExchangeClient.h index a8cdcff9f64..2fb70854b6c 100644 --- a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/DataExchangeClient.h +++ b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/DataExchangeClient.h @@ -93,6 +93,31 @@ namespace DataExchange /* End of legacy constructors due deprecation */ virtual ~DataExchangeClient(); + /** + *
This operation accepts a data grant.
This operation cancels a job. Jobs can be cancelled only when they are in the * WAITING state.
This operation creates a data set.
This operation deletes a data grant.
This operation deletes a data set.
This operation returns information about a data grant.
This operation returns information about a data set.
This operation returns information about a revision.
This operation lists a data set's revisions sorted by CreatedAt in descending * order.
This operation returns information about all received data + * grants.
This operation lists a revision's assets sorted alphabetically in descending * order.
The Amazon Resource Name (ARN) of the data grant to accept.
+ */ + inline const Aws::String& GetDataGrantArn() const{ return m_dataGrantArn; } + inline bool DataGrantArnHasBeenSet() const { return m_dataGrantArnHasBeenSet; } + inline void SetDataGrantArn(const Aws::String& value) { m_dataGrantArnHasBeenSet = true; m_dataGrantArn = value; } + inline void SetDataGrantArn(Aws::String&& value) { m_dataGrantArnHasBeenSet = true; m_dataGrantArn = std::move(value); } + inline void SetDataGrantArn(const char* value) { m_dataGrantArnHasBeenSet = true; m_dataGrantArn.assign(value); } + inline AcceptDataGrantRequest& WithDataGrantArn(const Aws::String& value) { SetDataGrantArn(value); return *this;} + inline AcceptDataGrantRequest& WithDataGrantArn(Aws::String&& value) { SetDataGrantArn(std::move(value)); return *this;} + inline AcceptDataGrantRequest& WithDataGrantArn(const char* value) { SetDataGrantArn(value); return *this;} + ///@} + private: + + Aws::String m_dataGrantArn; + bool m_dataGrantArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace DataExchange +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/AcceptDataGrantResult.h b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/AcceptDataGrantResult.h new file mode 100644 index 00000000000..cc15dd7f27f --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/AcceptDataGrantResult.h @@ -0,0 +1,238 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeThe name of the accepted data grant.
+ */ + inline const Aws::String& GetName() const{ return m_name; } + inline void SetName(const Aws::String& value) { m_name = value; } + inline void SetName(Aws::String&& value) { m_name = std::move(value); } + inline void SetName(const char* value) { m_name.assign(value); } + inline AcceptDataGrantResult& WithName(const Aws::String& value) { SetName(value); return *this;} + inline AcceptDataGrantResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + inline AcceptDataGrantResult& WithName(const char* value) { SetName(value); return *this;} + ///@} + + ///@{ + /** + *The Amazon Web Services account ID of the data grant sender.
+ */ + inline const Aws::String& GetSenderPrincipal() const{ return m_senderPrincipal; } + inline void SetSenderPrincipal(const Aws::String& value) { m_senderPrincipal = value; } + inline void SetSenderPrincipal(Aws::String&& value) { m_senderPrincipal = std::move(value); } + inline void SetSenderPrincipal(const char* value) { m_senderPrincipal.assign(value); } + inline AcceptDataGrantResult& WithSenderPrincipal(const Aws::String& value) { SetSenderPrincipal(value); return *this;} + inline AcceptDataGrantResult& WithSenderPrincipal(Aws::String&& value) { SetSenderPrincipal(std::move(value)); return *this;} + inline AcceptDataGrantResult& WithSenderPrincipal(const char* value) { SetSenderPrincipal(value); return *this;} + ///@} + + ///@{ + /** + *The Amazon Web Services account ID of the data grant receiver.
+ */ + inline const Aws::String& GetReceiverPrincipal() const{ return m_receiverPrincipal; } + inline void SetReceiverPrincipal(const Aws::String& value) { m_receiverPrincipal = value; } + inline void SetReceiverPrincipal(Aws::String&& value) { m_receiverPrincipal = std::move(value); } + inline void SetReceiverPrincipal(const char* value) { m_receiverPrincipal.assign(value); } + inline AcceptDataGrantResult& WithReceiverPrincipal(const Aws::String& value) { SetReceiverPrincipal(value); return *this;} + inline AcceptDataGrantResult& WithReceiverPrincipal(Aws::String&& value) { SetReceiverPrincipal(std::move(value)); return *this;} + inline AcceptDataGrantResult& WithReceiverPrincipal(const char* value) { SetReceiverPrincipal(value); return *this;} + ///@} + + ///@{ + /** + *The description of the accepted data grant.
+ */ + inline const Aws::String& GetDescription() const{ return m_description; } + inline void SetDescription(const Aws::String& value) { m_description = value; } + inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } + inline void SetDescription(const char* value) { m_description.assign(value); } + inline AcceptDataGrantResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + inline AcceptDataGrantResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + inline AcceptDataGrantResult& WithDescription(const char* value) { SetDescription(value); return *this;} + ///@} + + ///@{ + /** + *The acceptance state of the data grant.
+ */ + inline const DataGrantAcceptanceState& GetAcceptanceState() const{ return m_acceptanceState; } + inline void SetAcceptanceState(const DataGrantAcceptanceState& value) { m_acceptanceState = value; } + inline void SetAcceptanceState(DataGrantAcceptanceState&& value) { m_acceptanceState = std::move(value); } + inline AcceptDataGrantResult& WithAcceptanceState(const DataGrantAcceptanceState& value) { SetAcceptanceState(value); return *this;} + inline AcceptDataGrantResult& WithAcceptanceState(DataGrantAcceptanceState&& value) { SetAcceptanceState(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *The timestamp of when the data grant was accepted.
+ */ + inline const Aws::Utils::DateTime& GetAcceptedAt() const{ return m_acceptedAt; } + inline void SetAcceptedAt(const Aws::Utils::DateTime& value) { m_acceptedAt = value; } + inline void SetAcceptedAt(Aws::Utils::DateTime&& value) { m_acceptedAt = std::move(value); } + inline AcceptDataGrantResult& WithAcceptedAt(const Aws::Utils::DateTime& value) { SetAcceptedAt(value); return *this;} + inline AcceptDataGrantResult& WithAcceptedAt(Aws::Utils::DateTime&& value) { SetAcceptedAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *The timestamp of when access to the associated data set ends.
+ */ + inline const Aws::Utils::DateTime& GetEndsAt() const{ return m_endsAt; } + inline void SetEndsAt(const Aws::Utils::DateTime& value) { m_endsAt = value; } + inline void SetEndsAt(Aws::Utils::DateTime&& value) { m_endsAt = std::move(value); } + inline AcceptDataGrantResult& WithEndsAt(const Aws::Utils::DateTime& value) { SetEndsAt(value); return *this;} + inline AcceptDataGrantResult& WithEndsAt(Aws::Utils::DateTime&& value) { SetEndsAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *The distribution scope for the data grant.
+ */ + inline const GrantDistributionScope& GetGrantDistributionScope() const{ return m_grantDistributionScope; } + inline void SetGrantDistributionScope(const GrantDistributionScope& value) { m_grantDistributionScope = value; } + inline void SetGrantDistributionScope(GrantDistributionScope&& value) { m_grantDistributionScope = std::move(value); } + inline AcceptDataGrantResult& WithGrantDistributionScope(const GrantDistributionScope& value) { SetGrantDistributionScope(value); return *this;} + inline AcceptDataGrantResult& WithGrantDistributionScope(GrantDistributionScope&& value) { SetGrantDistributionScope(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *The ID of the data set associated to the data grant.
+ */ + inline const Aws::String& GetDataSetId() const{ return m_dataSetId; } + inline void SetDataSetId(const Aws::String& value) { m_dataSetId = value; } + inline void SetDataSetId(Aws::String&& value) { m_dataSetId = std::move(value); } + inline void SetDataSetId(const char* value) { m_dataSetId.assign(value); } + inline AcceptDataGrantResult& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;} + inline AcceptDataGrantResult& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;} + inline AcceptDataGrantResult& WithDataSetId(const char* value) { SetDataSetId(value); return *this;} + ///@} + + ///@{ + /** + *The ID of the data grant.
+ */ + inline const Aws::String& GetId() const{ return m_id; } + inline void SetId(const Aws::String& value) { m_id = value; } + inline void SetId(Aws::String&& value) { m_id = std::move(value); } + inline void SetId(const char* value) { m_id.assign(value); } + inline AcceptDataGrantResult& WithId(const Aws::String& value) { SetId(value); return *this;} + inline AcceptDataGrantResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline AcceptDataGrantResult& WithId(const char* value) { SetId(value); return *this;} + ///@} + + ///@{ + /** + *The Amazon Resource Name (ARN) of the accepted data grant.
+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + inline void SetArn(const Aws::String& value) { m_arn = value; } + inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } + inline void SetArn(const char* value) { m_arn.assign(value); } + inline AcceptDataGrantResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} + inline AcceptDataGrantResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + inline AcceptDataGrantResult& WithArn(const char* value) { SetArn(value); return *this;} + ///@} + + ///@{ + /** + *The timestamp of when the data grant was created.
+ */ + inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } + inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; } + inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); } + inline AcceptDataGrantResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} + inline AcceptDataGrantResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *The timestamp of when the data grant was last updated.
+ */ + inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } + inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAt = value; } + inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAt = std::move(value); } + inline AcceptDataGrantResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} + inline AcceptDataGrantResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(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 AcceptDataGrantResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline AcceptDataGrantResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline AcceptDataGrantResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_name; + + Aws::String m_senderPrincipal; + + Aws::String m_receiverPrincipal; + + Aws::String m_description; + + DataGrantAcceptanceState m_acceptanceState; + + Aws::Utils::DateTime m_acceptedAt; + + Aws::Utils::DateTime m_endsAt; + + GrantDistributionScope m_grantDistributionScope; + + Aws::String m_dataSetId; + + Aws::String m_id; + + Aws::String m_arn; + + Aws::Utils::DateTime m_createdAt; + + Aws::Utils::DateTime m_updatedAt; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace DataExchange +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/AcceptanceStateFilterValue.h b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/AcceptanceStateFilterValue.h new file mode 100644 index 00000000000..88b6677e6b8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/AcceptanceStateFilterValue.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeThe name of the data grant.
+ */ + inline const Aws::String& GetName() const{ return m_name; } + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + inline CreateDataGrantRequest& WithName(const Aws::String& value) { SetName(value); return *this;} + inline CreateDataGrantRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + inline CreateDataGrantRequest& WithName(const char* value) { SetName(value); return *this;} + ///@} + + ///@{ + /** + *The distribution scope of the data grant.
+ */ + inline const GrantDistributionScope& GetGrantDistributionScope() const{ return m_grantDistributionScope; } + inline bool GrantDistributionScopeHasBeenSet() const { return m_grantDistributionScopeHasBeenSet; } + inline void SetGrantDistributionScope(const GrantDistributionScope& value) { m_grantDistributionScopeHasBeenSet = true; m_grantDistributionScope = value; } + inline void SetGrantDistributionScope(GrantDistributionScope&& value) { m_grantDistributionScopeHasBeenSet = true; m_grantDistributionScope = std::move(value); } + inline CreateDataGrantRequest& WithGrantDistributionScope(const GrantDistributionScope& value) { SetGrantDistributionScope(value); return *this;} + inline CreateDataGrantRequest& WithGrantDistributionScope(GrantDistributionScope&& value) { SetGrantDistributionScope(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *The Amazon Web Services account ID of the data grant receiver.
+ */ + inline const Aws::String& GetReceiverPrincipal() const{ return m_receiverPrincipal; } + inline bool ReceiverPrincipalHasBeenSet() const { return m_receiverPrincipalHasBeenSet; } + inline void SetReceiverPrincipal(const Aws::String& value) { m_receiverPrincipalHasBeenSet = true; m_receiverPrincipal = value; } + inline void SetReceiverPrincipal(Aws::String&& value) { m_receiverPrincipalHasBeenSet = true; m_receiverPrincipal = std::move(value); } + inline void SetReceiverPrincipal(const char* value) { m_receiverPrincipalHasBeenSet = true; m_receiverPrincipal.assign(value); } + inline CreateDataGrantRequest& WithReceiverPrincipal(const Aws::String& value) { SetReceiverPrincipal(value); return *this;} + inline CreateDataGrantRequest& WithReceiverPrincipal(Aws::String&& value) { SetReceiverPrincipal(std::move(value)); return *this;} + inline CreateDataGrantRequest& WithReceiverPrincipal(const char* value) { SetReceiverPrincipal(value); return *this;} + ///@} + + ///@{ + /** + *The ID of the data set used to create the data grant.
+ */ + inline const Aws::String& GetSourceDataSetId() const{ return m_sourceDataSetId; } + inline bool SourceDataSetIdHasBeenSet() const { return m_sourceDataSetIdHasBeenSet; } + inline void SetSourceDataSetId(const Aws::String& value) { m_sourceDataSetIdHasBeenSet = true; m_sourceDataSetId = value; } + inline void SetSourceDataSetId(Aws::String&& value) { m_sourceDataSetIdHasBeenSet = true; m_sourceDataSetId = std::move(value); } + inline void SetSourceDataSetId(const char* value) { m_sourceDataSetIdHasBeenSet = true; m_sourceDataSetId.assign(value); } + inline CreateDataGrantRequest& WithSourceDataSetId(const Aws::String& value) { SetSourceDataSetId(value); return *this;} + inline CreateDataGrantRequest& WithSourceDataSetId(Aws::String&& value) { SetSourceDataSetId(std::move(value)); return *this;} + inline CreateDataGrantRequest& WithSourceDataSetId(const char* value) { SetSourceDataSetId(value); return *this;} + ///@} + + ///@{ + /** + *The timestamp of when access to the associated data set ends.
+ */ + inline const Aws::Utils::DateTime& GetEndsAt() const{ return m_endsAt; } + inline bool EndsAtHasBeenSet() const { return m_endsAtHasBeenSet; } + inline void SetEndsAt(const Aws::Utils::DateTime& value) { m_endsAtHasBeenSet = true; m_endsAt = value; } + inline void SetEndsAt(Aws::Utils::DateTime&& value) { m_endsAtHasBeenSet = true; m_endsAt = std::move(value); } + inline CreateDataGrantRequest& WithEndsAt(const Aws::Utils::DateTime& value) { SetEndsAt(value); return *this;} + inline CreateDataGrantRequest& WithEndsAt(Aws::Utils::DateTime&& value) { SetEndsAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *The description of the data grant.
+ */ + inline const Aws::String& GetDescription() const{ return m_description; } + inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } + inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } + inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } + inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } + inline CreateDataGrantRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + inline CreateDataGrantRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + inline CreateDataGrantRequest& WithDescription(const char* value) { SetDescription(value); return *this;} + ///@} + + ///@{ + /** + *The tags to add to the data grant. A tag is a key-value pair.
+ */ + inline const Aws::MapThe name of the data grant.
+ */ + inline const Aws::String& GetName() const{ return m_name; } + inline void SetName(const Aws::String& value) { m_name = value; } + inline void SetName(Aws::String&& value) { m_name = std::move(value); } + inline void SetName(const char* value) { m_name.assign(value); } + inline CreateDataGrantResult& WithName(const Aws::String& value) { SetName(value); return *this;} + inline CreateDataGrantResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + inline CreateDataGrantResult& WithName(const char* value) { SetName(value); return *this;} + ///@} + + ///@{ + /** + *The Amazon Web Services account ID of the data grant sender.
+ */ + inline const Aws::String& GetSenderPrincipal() const{ return m_senderPrincipal; } + inline void SetSenderPrincipal(const Aws::String& value) { m_senderPrincipal = value; } + inline void SetSenderPrincipal(Aws::String&& value) { m_senderPrincipal = std::move(value); } + inline void SetSenderPrincipal(const char* value) { m_senderPrincipal.assign(value); } + inline CreateDataGrantResult& WithSenderPrincipal(const Aws::String& value) { SetSenderPrincipal(value); return *this;} + inline CreateDataGrantResult& WithSenderPrincipal(Aws::String&& value) { SetSenderPrincipal(std::move(value)); return *this;} + inline CreateDataGrantResult& WithSenderPrincipal(const char* value) { SetSenderPrincipal(value); return *this;} + ///@} + + ///@{ + /** + *The Amazon Web Services account ID of the data grant receiver.
+ */ + inline const Aws::String& GetReceiverPrincipal() const{ return m_receiverPrincipal; } + inline void SetReceiverPrincipal(const Aws::String& value) { m_receiverPrincipal = value; } + inline void SetReceiverPrincipal(Aws::String&& value) { m_receiverPrincipal = std::move(value); } + inline void SetReceiverPrincipal(const char* value) { m_receiverPrincipal.assign(value); } + inline CreateDataGrantResult& WithReceiverPrincipal(const Aws::String& value) { SetReceiverPrincipal(value); return *this;} + inline CreateDataGrantResult& WithReceiverPrincipal(Aws::String&& value) { SetReceiverPrincipal(std::move(value)); return *this;} + inline CreateDataGrantResult& WithReceiverPrincipal(const char* value) { SetReceiverPrincipal(value); return *this;} + ///@} + + ///@{ + /** + *The description of the data grant.
+ */ + inline const Aws::String& GetDescription() const{ return m_description; } + inline void SetDescription(const Aws::String& value) { m_description = value; } + inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } + inline void SetDescription(const char* value) { m_description.assign(value); } + inline CreateDataGrantResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + inline CreateDataGrantResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + inline CreateDataGrantResult& WithDescription(const char* value) { SetDescription(value); return *this;} + ///@} + + ///@{ + /** + *The acceptance state of the data grant.
+ */ + inline const DataGrantAcceptanceState& GetAcceptanceState() const{ return m_acceptanceState; } + inline void SetAcceptanceState(const DataGrantAcceptanceState& value) { m_acceptanceState = value; } + inline void SetAcceptanceState(DataGrantAcceptanceState&& value) { m_acceptanceState = std::move(value); } + inline CreateDataGrantResult& WithAcceptanceState(const DataGrantAcceptanceState& value) { SetAcceptanceState(value); return *this;} + inline CreateDataGrantResult& WithAcceptanceState(DataGrantAcceptanceState&& value) { SetAcceptanceState(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *The timestamp of when the data grant was accepted.
+ */ + inline const Aws::Utils::DateTime& GetAcceptedAt() const{ return m_acceptedAt; } + inline void SetAcceptedAt(const Aws::Utils::DateTime& value) { m_acceptedAt = value; } + inline void SetAcceptedAt(Aws::Utils::DateTime&& value) { m_acceptedAt = std::move(value); } + inline CreateDataGrantResult& WithAcceptedAt(const Aws::Utils::DateTime& value) { SetAcceptedAt(value); return *this;} + inline CreateDataGrantResult& WithAcceptedAt(Aws::Utils::DateTime&& value) { SetAcceptedAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *The timestamp of when access to the associated data set ends.
+ */ + inline const Aws::Utils::DateTime& GetEndsAt() const{ return m_endsAt; } + inline void SetEndsAt(const Aws::Utils::DateTime& value) { m_endsAt = value; } + inline void SetEndsAt(Aws::Utils::DateTime&& value) { m_endsAt = std::move(value); } + inline CreateDataGrantResult& WithEndsAt(const Aws::Utils::DateTime& value) { SetEndsAt(value); return *this;} + inline CreateDataGrantResult& WithEndsAt(Aws::Utils::DateTime&& value) { SetEndsAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *The distribution scope for the data grant.
+ */ + inline const GrantDistributionScope& GetGrantDistributionScope() const{ return m_grantDistributionScope; } + inline void SetGrantDistributionScope(const GrantDistributionScope& value) { m_grantDistributionScope = value; } + inline void SetGrantDistributionScope(GrantDistributionScope&& value) { m_grantDistributionScope = std::move(value); } + inline CreateDataGrantResult& WithGrantDistributionScope(const GrantDistributionScope& value) { SetGrantDistributionScope(value); return *this;} + inline CreateDataGrantResult& WithGrantDistributionScope(GrantDistributionScope&& value) { SetGrantDistributionScope(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *The ID of the data set associated to the data grant.
+ */ + inline const Aws::String& GetDataSetId() const{ return m_dataSetId; } + inline void SetDataSetId(const Aws::String& value) { m_dataSetId = value; } + inline void SetDataSetId(Aws::String&& value) { m_dataSetId = std::move(value); } + inline void SetDataSetId(const char* value) { m_dataSetId.assign(value); } + inline CreateDataGrantResult& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;} + inline CreateDataGrantResult& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;} + inline CreateDataGrantResult& WithDataSetId(const char* value) { SetDataSetId(value); return *this;} + ///@} + + ///@{ + /** + *The ID of the data set used to create the data grant.
+ */ + inline const Aws::String& GetSourceDataSetId() const{ return m_sourceDataSetId; } + inline void SetSourceDataSetId(const Aws::String& value) { m_sourceDataSetId = value; } + inline void SetSourceDataSetId(Aws::String&& value) { m_sourceDataSetId = std::move(value); } + inline void SetSourceDataSetId(const char* value) { m_sourceDataSetId.assign(value); } + inline CreateDataGrantResult& WithSourceDataSetId(const Aws::String& value) { SetSourceDataSetId(value); return *this;} + inline CreateDataGrantResult& WithSourceDataSetId(Aws::String&& value) { SetSourceDataSetId(std::move(value)); return *this;} + inline CreateDataGrantResult& WithSourceDataSetId(const char* value) { SetSourceDataSetId(value); return *this;} + ///@} + + ///@{ + /** + *The ID of the data grant.
+ */ + inline const Aws::String& GetId() const{ return m_id; } + inline void SetId(const Aws::String& value) { m_id = value; } + inline void SetId(Aws::String&& value) { m_id = std::move(value); } + inline void SetId(const char* value) { m_id.assign(value); } + inline CreateDataGrantResult& WithId(const Aws::String& value) { SetId(value); return *this;} + inline CreateDataGrantResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline CreateDataGrantResult& WithId(const char* value) { SetId(value); return *this;} + ///@} + + ///@{ + /** + *The Amazon Resource Name (ARN) of the data grant.
+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + inline void SetArn(const Aws::String& value) { m_arn = value; } + inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } + inline void SetArn(const char* value) { m_arn.assign(value); } + inline CreateDataGrantResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} + inline CreateDataGrantResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + inline CreateDataGrantResult& WithArn(const char* value) { SetArn(value); return *this;} + ///@} + + ///@{ + /** + *The timestamp of when the data grant was created.
+ */ + inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } + inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; } + inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); } + inline CreateDataGrantResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} + inline CreateDataGrantResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *The timestamp of when the data grant was last updated.
+ */ + inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } + inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAt = value; } + inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAt = std::move(value); } + inline CreateDataGrantResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} + inline CreateDataGrantResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *The tags associated to the data grant. A tag is a key-value pair.
+ */ + inline const Aws::MapInformation about a data grant.
The name of the data grant.
+ */ + inline const Aws::String& GetName() const{ return m_name; } + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + inline DataGrantSummaryEntry& WithName(const Aws::String& value) { SetName(value); return *this;} + inline DataGrantSummaryEntry& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + inline DataGrantSummaryEntry& WithName(const char* value) { SetName(value); return *this;} + ///@} + + ///@{ + /** + *The Amazon Web Services account ID of the data grant sender.
+ */ + inline const Aws::String& GetSenderPrincipal() const{ return m_senderPrincipal; } + inline bool SenderPrincipalHasBeenSet() const { return m_senderPrincipalHasBeenSet; } + inline void SetSenderPrincipal(const Aws::String& value) { m_senderPrincipalHasBeenSet = true; m_senderPrincipal = value; } + inline void SetSenderPrincipal(Aws::String&& value) { m_senderPrincipalHasBeenSet = true; m_senderPrincipal = std::move(value); } + inline void SetSenderPrincipal(const char* value) { m_senderPrincipalHasBeenSet = true; m_senderPrincipal.assign(value); } + inline DataGrantSummaryEntry& WithSenderPrincipal(const Aws::String& value) { SetSenderPrincipal(value); return *this;} + inline DataGrantSummaryEntry& WithSenderPrincipal(Aws::String&& value) { SetSenderPrincipal(std::move(value)); return *this;} + inline DataGrantSummaryEntry& WithSenderPrincipal(const char* value) { SetSenderPrincipal(value); return *this;} + ///@} + + ///@{ + /** + *The Amazon Web Services account ID of the data grant receiver.
+ */ + inline const Aws::String& GetReceiverPrincipal() const{ return m_receiverPrincipal; } + inline bool ReceiverPrincipalHasBeenSet() const { return m_receiverPrincipalHasBeenSet; } + inline void SetReceiverPrincipal(const Aws::String& value) { m_receiverPrincipalHasBeenSet = true; m_receiverPrincipal = value; } + inline void SetReceiverPrincipal(Aws::String&& value) { m_receiverPrincipalHasBeenSet = true; m_receiverPrincipal = std::move(value); } + inline void SetReceiverPrincipal(const char* value) { m_receiverPrincipalHasBeenSet = true; m_receiverPrincipal.assign(value); } + inline DataGrantSummaryEntry& WithReceiverPrincipal(const Aws::String& value) { SetReceiverPrincipal(value); return *this;} + inline DataGrantSummaryEntry& WithReceiverPrincipal(Aws::String&& value) { SetReceiverPrincipal(std::move(value)); return *this;} + inline DataGrantSummaryEntry& WithReceiverPrincipal(const char* value) { SetReceiverPrincipal(value); return *this;} + ///@} + + ///@{ + /** + *The acceptance state of the data grant.
+ */ + inline const DataGrantAcceptanceState& GetAcceptanceState() const{ return m_acceptanceState; } + inline bool AcceptanceStateHasBeenSet() const { return m_acceptanceStateHasBeenSet; } + inline void SetAcceptanceState(const DataGrantAcceptanceState& value) { m_acceptanceStateHasBeenSet = true; m_acceptanceState = value; } + inline void SetAcceptanceState(DataGrantAcceptanceState&& value) { m_acceptanceStateHasBeenSet = true; m_acceptanceState = std::move(value); } + inline DataGrantSummaryEntry& WithAcceptanceState(const DataGrantAcceptanceState& value) { SetAcceptanceState(value); return *this;} + inline DataGrantSummaryEntry& WithAcceptanceState(DataGrantAcceptanceState&& value) { SetAcceptanceState(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *The timestamp of when the data grant was accepted.
+ */ + inline const Aws::Utils::DateTime& GetAcceptedAt() const{ return m_acceptedAt; } + inline bool AcceptedAtHasBeenSet() const { return m_acceptedAtHasBeenSet; } + inline void SetAcceptedAt(const Aws::Utils::DateTime& value) { m_acceptedAtHasBeenSet = true; m_acceptedAt = value; } + inline void SetAcceptedAt(Aws::Utils::DateTime&& value) { m_acceptedAtHasBeenSet = true; m_acceptedAt = std::move(value); } + inline DataGrantSummaryEntry& WithAcceptedAt(const Aws::Utils::DateTime& value) { SetAcceptedAt(value); return *this;} + inline DataGrantSummaryEntry& WithAcceptedAt(Aws::Utils::DateTime&& value) { SetAcceptedAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *The timestamp of when access to the associated data set ends.
+ */ + inline const Aws::Utils::DateTime& GetEndsAt() const{ return m_endsAt; } + inline bool EndsAtHasBeenSet() const { return m_endsAtHasBeenSet; } + inline void SetEndsAt(const Aws::Utils::DateTime& value) { m_endsAtHasBeenSet = true; m_endsAt = value; } + inline void SetEndsAt(Aws::Utils::DateTime&& value) { m_endsAtHasBeenSet = true; m_endsAt = std::move(value); } + inline DataGrantSummaryEntry& WithEndsAt(const Aws::Utils::DateTime& value) { SetEndsAt(value); return *this;} + inline DataGrantSummaryEntry& WithEndsAt(Aws::Utils::DateTime&& value) { SetEndsAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *The ID of the data set associated to the data grant.
+ */ + inline const Aws::String& GetDataSetId() const{ return m_dataSetId; } + inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; } + inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; } + inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); } + inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); } + inline DataGrantSummaryEntry& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;} + inline DataGrantSummaryEntry& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;} + inline DataGrantSummaryEntry& WithDataSetId(const char* value) { SetDataSetId(value); return *this;} + ///@} + + ///@{ + /** + *The ID of the data set used to create the data grant.
+ */ + inline const Aws::String& GetSourceDataSetId() const{ return m_sourceDataSetId; } + inline bool SourceDataSetIdHasBeenSet() const { return m_sourceDataSetIdHasBeenSet; } + inline void SetSourceDataSetId(const Aws::String& value) { m_sourceDataSetIdHasBeenSet = true; m_sourceDataSetId = value; } + inline void SetSourceDataSetId(Aws::String&& value) { m_sourceDataSetIdHasBeenSet = true; m_sourceDataSetId = std::move(value); } + inline void SetSourceDataSetId(const char* value) { m_sourceDataSetIdHasBeenSet = true; m_sourceDataSetId.assign(value); } + inline DataGrantSummaryEntry& WithSourceDataSetId(const Aws::String& value) { SetSourceDataSetId(value); return *this;} + inline DataGrantSummaryEntry& WithSourceDataSetId(Aws::String&& value) { SetSourceDataSetId(std::move(value)); return *this;} + inline DataGrantSummaryEntry& WithSourceDataSetId(const char* value) { SetSourceDataSetId(value); return *this;} + ///@} + + ///@{ + /** + *The ID of the data grant.
+ */ + inline const Aws::String& GetId() const{ return m_id; } + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + inline DataGrantSummaryEntry& WithId(const Aws::String& value) { SetId(value); return *this;} + inline DataGrantSummaryEntry& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline DataGrantSummaryEntry& WithId(const char* value) { SetId(value); return *this;} + ///@} + + ///@{ + /** + *The Amazon Resource Name (ARN) of the data grant.
+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } + inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } + inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } + inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } + inline DataGrantSummaryEntry& WithArn(const Aws::String& value) { SetArn(value); return *this;} + inline DataGrantSummaryEntry& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + inline DataGrantSummaryEntry& WithArn(const char* value) { SetArn(value); return *this;} + ///@} + + ///@{ + /** + *The timestamp of when the data grant was created.
+ */ + inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } + inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } + inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } + inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } + inline DataGrantSummaryEntry& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} + inline DataGrantSummaryEntry& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *The timestamp of when the data grant was last updated.
+ */ + inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } + inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; } + inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; } + inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); } + inline DataGrantSummaryEntry& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} + inline DataGrantSummaryEntry& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::String m_senderPrincipal; + bool m_senderPrincipalHasBeenSet = false; + + Aws::String m_receiverPrincipal; + bool m_receiverPrincipalHasBeenSet = false; + + DataGrantAcceptanceState m_acceptanceState; + bool m_acceptanceStateHasBeenSet = false; + + Aws::Utils::DateTime m_acceptedAt; + bool m_acceptedAtHasBeenSet = false; + + Aws::Utils::DateTime m_endsAt; + bool m_endsAtHasBeenSet = false; + + Aws::String m_dataSetId; + bool m_dataSetIdHasBeenSet = false; + + Aws::String m_sourceDataSetId; + bool m_sourceDataSetIdHasBeenSet = false; + + Aws::String m_id; + bool m_idHasBeenSet = false; + + Aws::String m_arn; + bool m_arnHasBeenSet = false; + + Aws::Utils::DateTime m_createdAt; + bool m_createdAtHasBeenSet = false; + + Aws::Utils::DateTime m_updatedAt; + bool m_updatedAtHasBeenSet = false; + }; + +} // namespace Model +} // namespace DataExchange +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/DeleteDataGrantRequest.h b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/DeleteDataGrantRequest.h new file mode 100644 index 00000000000..d564d2b2a1c --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/DeleteDataGrantRequest.h @@ -0,0 +1,56 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeThe ID of the data grant to delete.
+ */ + inline const Aws::String& GetDataGrantId() const{ return m_dataGrantId; } + inline bool DataGrantIdHasBeenSet() const { return m_dataGrantIdHasBeenSet; } + inline void SetDataGrantId(const Aws::String& value) { m_dataGrantIdHasBeenSet = true; m_dataGrantId = value; } + inline void SetDataGrantId(Aws::String&& value) { m_dataGrantIdHasBeenSet = true; m_dataGrantId = std::move(value); } + inline void SetDataGrantId(const char* value) { m_dataGrantIdHasBeenSet = true; m_dataGrantId.assign(value); } + inline DeleteDataGrantRequest& WithDataGrantId(const Aws::String& value) { SetDataGrantId(value); return *this;} + inline DeleteDataGrantRequest& WithDataGrantId(Aws::String&& value) { SetDataGrantId(std::move(value)); return *this;} + inline DeleteDataGrantRequest& WithDataGrantId(const char* value) { SetDataGrantId(value); return *this;} + ///@} + private: + + Aws::String m_dataGrantId; + bool m_dataGrantIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace DataExchange +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/GetDataGrantRequest.h b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/GetDataGrantRequest.h new file mode 100644 index 00000000000..a61177da6f9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/GetDataGrantRequest.h @@ -0,0 +1,56 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeThe ID of the data grant.
+ */ + inline const Aws::String& GetDataGrantId() const{ return m_dataGrantId; } + inline bool DataGrantIdHasBeenSet() const { return m_dataGrantIdHasBeenSet; } + inline void SetDataGrantId(const Aws::String& value) { m_dataGrantIdHasBeenSet = true; m_dataGrantId = value; } + inline void SetDataGrantId(Aws::String&& value) { m_dataGrantIdHasBeenSet = true; m_dataGrantId = std::move(value); } + inline void SetDataGrantId(const char* value) { m_dataGrantIdHasBeenSet = true; m_dataGrantId.assign(value); } + inline GetDataGrantRequest& WithDataGrantId(const Aws::String& value) { SetDataGrantId(value); return *this;} + inline GetDataGrantRequest& WithDataGrantId(Aws::String&& value) { SetDataGrantId(std::move(value)); return *this;} + inline GetDataGrantRequest& WithDataGrantId(const char* value) { SetDataGrantId(value); return *this;} + ///@} + private: + + Aws::String m_dataGrantId; + bool m_dataGrantIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace DataExchange +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/GetDataGrantResult.h b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/GetDataGrantResult.h new file mode 100644 index 00000000000..f9cf20e9677 --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/GetDataGrantResult.h @@ -0,0 +1,274 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeThe name of the data grant.
+ */ + inline const Aws::String& GetName() const{ return m_name; } + inline void SetName(const Aws::String& value) { m_name = value; } + inline void SetName(Aws::String&& value) { m_name = std::move(value); } + inline void SetName(const char* value) { m_name.assign(value); } + inline GetDataGrantResult& WithName(const Aws::String& value) { SetName(value); return *this;} + inline GetDataGrantResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + inline GetDataGrantResult& WithName(const char* value) { SetName(value); return *this;} + ///@} + + ///@{ + /** + *The Amazon Web Services account ID of the data grant sender.
+ */ + inline const Aws::String& GetSenderPrincipal() const{ return m_senderPrincipal; } + inline void SetSenderPrincipal(const Aws::String& value) { m_senderPrincipal = value; } + inline void SetSenderPrincipal(Aws::String&& value) { m_senderPrincipal = std::move(value); } + inline void SetSenderPrincipal(const char* value) { m_senderPrincipal.assign(value); } + inline GetDataGrantResult& WithSenderPrincipal(const Aws::String& value) { SetSenderPrincipal(value); return *this;} + inline GetDataGrantResult& WithSenderPrincipal(Aws::String&& value) { SetSenderPrincipal(std::move(value)); return *this;} + inline GetDataGrantResult& WithSenderPrincipal(const char* value) { SetSenderPrincipal(value); return *this;} + ///@} + + ///@{ + /** + *The Amazon Web Services account ID of the data grant receiver.
+ */ + inline const Aws::String& GetReceiverPrincipal() const{ return m_receiverPrincipal; } + inline void SetReceiverPrincipal(const Aws::String& value) { m_receiverPrincipal = value; } + inline void SetReceiverPrincipal(Aws::String&& value) { m_receiverPrincipal = std::move(value); } + inline void SetReceiverPrincipal(const char* value) { m_receiverPrincipal.assign(value); } + inline GetDataGrantResult& WithReceiverPrincipal(const Aws::String& value) { SetReceiverPrincipal(value); return *this;} + inline GetDataGrantResult& WithReceiverPrincipal(Aws::String&& value) { SetReceiverPrincipal(std::move(value)); return *this;} + inline GetDataGrantResult& WithReceiverPrincipal(const char* value) { SetReceiverPrincipal(value); return *this;} + ///@} + + ///@{ + /** + *The description of the data grant.
+ */ + inline const Aws::String& GetDescription() const{ return m_description; } + inline void SetDescription(const Aws::String& value) { m_description = value; } + inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } + inline void SetDescription(const char* value) { m_description.assign(value); } + inline GetDataGrantResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + inline GetDataGrantResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + inline GetDataGrantResult& WithDescription(const char* value) { SetDescription(value); return *this;} + ///@} + + ///@{ + /** + *The acceptance state of the data grant.
+ */ + inline const DataGrantAcceptanceState& GetAcceptanceState() const{ return m_acceptanceState; } + inline void SetAcceptanceState(const DataGrantAcceptanceState& value) { m_acceptanceState = value; } + inline void SetAcceptanceState(DataGrantAcceptanceState&& value) { m_acceptanceState = std::move(value); } + inline GetDataGrantResult& WithAcceptanceState(const DataGrantAcceptanceState& value) { SetAcceptanceState(value); return *this;} + inline GetDataGrantResult& WithAcceptanceState(DataGrantAcceptanceState&& value) { SetAcceptanceState(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *The timestamp of when the data grant was accepted.
+ */ + inline const Aws::Utils::DateTime& GetAcceptedAt() const{ return m_acceptedAt; } + inline void SetAcceptedAt(const Aws::Utils::DateTime& value) { m_acceptedAt = value; } + inline void SetAcceptedAt(Aws::Utils::DateTime&& value) { m_acceptedAt = std::move(value); } + inline GetDataGrantResult& WithAcceptedAt(const Aws::Utils::DateTime& value) { SetAcceptedAt(value); return *this;} + inline GetDataGrantResult& WithAcceptedAt(Aws::Utils::DateTime&& value) { SetAcceptedAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *The timestamp of when access to the associated data set ends.
+ */ + inline const Aws::Utils::DateTime& GetEndsAt() const{ return m_endsAt; } + inline void SetEndsAt(const Aws::Utils::DateTime& value) { m_endsAt = value; } + inline void SetEndsAt(Aws::Utils::DateTime&& value) { m_endsAt = std::move(value); } + inline GetDataGrantResult& WithEndsAt(const Aws::Utils::DateTime& value) { SetEndsAt(value); return *this;} + inline GetDataGrantResult& WithEndsAt(Aws::Utils::DateTime&& value) { SetEndsAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *The distribution scope for the data grant.
+ */ + inline const GrantDistributionScope& GetGrantDistributionScope() const{ return m_grantDistributionScope; } + inline void SetGrantDistributionScope(const GrantDistributionScope& value) { m_grantDistributionScope = value; } + inline void SetGrantDistributionScope(GrantDistributionScope&& value) { m_grantDistributionScope = std::move(value); } + inline GetDataGrantResult& WithGrantDistributionScope(const GrantDistributionScope& value) { SetGrantDistributionScope(value); return *this;} + inline GetDataGrantResult& WithGrantDistributionScope(GrantDistributionScope&& value) { SetGrantDistributionScope(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *The ID of the data set associated to the data grant.
+ */ + inline const Aws::String& GetDataSetId() const{ return m_dataSetId; } + inline void SetDataSetId(const Aws::String& value) { m_dataSetId = value; } + inline void SetDataSetId(Aws::String&& value) { m_dataSetId = std::move(value); } + inline void SetDataSetId(const char* value) { m_dataSetId.assign(value); } + inline GetDataGrantResult& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;} + inline GetDataGrantResult& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;} + inline GetDataGrantResult& WithDataSetId(const char* value) { SetDataSetId(value); return *this;} + ///@} + + ///@{ + /** + *The ID of the data set used to create the data grant.
+ */ + inline const Aws::String& GetSourceDataSetId() const{ return m_sourceDataSetId; } + inline void SetSourceDataSetId(const Aws::String& value) { m_sourceDataSetId = value; } + inline void SetSourceDataSetId(Aws::String&& value) { m_sourceDataSetId = std::move(value); } + inline void SetSourceDataSetId(const char* value) { m_sourceDataSetId.assign(value); } + inline GetDataGrantResult& WithSourceDataSetId(const Aws::String& value) { SetSourceDataSetId(value); return *this;} + inline GetDataGrantResult& WithSourceDataSetId(Aws::String&& value) { SetSourceDataSetId(std::move(value)); return *this;} + inline GetDataGrantResult& WithSourceDataSetId(const char* value) { SetSourceDataSetId(value); return *this;} + ///@} + + ///@{ + /** + *The ID of the data grant.
+ */ + inline const Aws::String& GetId() const{ return m_id; } + inline void SetId(const Aws::String& value) { m_id = value; } + inline void SetId(Aws::String&& value) { m_id = std::move(value); } + inline void SetId(const char* value) { m_id.assign(value); } + inline GetDataGrantResult& WithId(const Aws::String& value) { SetId(value); return *this;} + inline GetDataGrantResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline GetDataGrantResult& WithId(const char* value) { SetId(value); return *this;} + ///@} + + ///@{ + /** + *The Amazon Resource Name (ARN) of the data grant.
+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + inline void SetArn(const Aws::String& value) { m_arn = value; } + inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } + inline void SetArn(const char* value) { m_arn.assign(value); } + inline GetDataGrantResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} + inline GetDataGrantResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + inline GetDataGrantResult& WithArn(const char* value) { SetArn(value); return *this;} + ///@} + + ///@{ + /** + *The timestamp of when the data grant was created.
+ */ + inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } + inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; } + inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); } + inline GetDataGrantResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} + inline GetDataGrantResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *The timestamp of when the data grant was last updated.
+ */ + inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } + inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAt = value; } + inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAt = std::move(value); } + inline GetDataGrantResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} + inline GetDataGrantResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *The tags associated to the data grant. A tag is a key-value pair.
+ */ + inline const Aws::MapThe Amazon Resource Name (ARN) of the data grant.
+ */ + inline const Aws::String& GetDataGrantArn() const{ return m_dataGrantArn; } + inline bool DataGrantArnHasBeenSet() const { return m_dataGrantArnHasBeenSet; } + inline void SetDataGrantArn(const Aws::String& value) { m_dataGrantArnHasBeenSet = true; m_dataGrantArn = value; } + inline void SetDataGrantArn(Aws::String&& value) { m_dataGrantArnHasBeenSet = true; m_dataGrantArn = std::move(value); } + inline void SetDataGrantArn(const char* value) { m_dataGrantArnHasBeenSet = true; m_dataGrantArn.assign(value); } + inline GetReceivedDataGrantRequest& WithDataGrantArn(const Aws::String& value) { SetDataGrantArn(value); return *this;} + inline GetReceivedDataGrantRequest& WithDataGrantArn(Aws::String&& value) { SetDataGrantArn(std::move(value)); return *this;} + inline GetReceivedDataGrantRequest& WithDataGrantArn(const char* value) { SetDataGrantArn(value); return *this;} + ///@} + private: + + Aws::String m_dataGrantArn; + bool m_dataGrantArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace DataExchange +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/GetReceivedDataGrantResult.h b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/GetReceivedDataGrantResult.h new file mode 100644 index 00000000000..66215e70891 --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/GetReceivedDataGrantResult.h @@ -0,0 +1,238 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeThe name of the data grant.
+ */ + inline const Aws::String& GetName() const{ return m_name; } + inline void SetName(const Aws::String& value) { m_name = value; } + inline void SetName(Aws::String&& value) { m_name = std::move(value); } + inline void SetName(const char* value) { m_name.assign(value); } + inline GetReceivedDataGrantResult& WithName(const Aws::String& value) { SetName(value); return *this;} + inline GetReceivedDataGrantResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + inline GetReceivedDataGrantResult& WithName(const char* value) { SetName(value); return *this;} + ///@} + + ///@{ + /** + *The Amazon Web Services account ID of the data grant sender.
+ */ + inline const Aws::String& GetSenderPrincipal() const{ return m_senderPrincipal; } + inline void SetSenderPrincipal(const Aws::String& value) { m_senderPrincipal = value; } + inline void SetSenderPrincipal(Aws::String&& value) { m_senderPrincipal = std::move(value); } + inline void SetSenderPrincipal(const char* value) { m_senderPrincipal.assign(value); } + inline GetReceivedDataGrantResult& WithSenderPrincipal(const Aws::String& value) { SetSenderPrincipal(value); return *this;} + inline GetReceivedDataGrantResult& WithSenderPrincipal(Aws::String&& value) { SetSenderPrincipal(std::move(value)); return *this;} + inline GetReceivedDataGrantResult& WithSenderPrincipal(const char* value) { SetSenderPrincipal(value); return *this;} + ///@} + + ///@{ + /** + *The Amazon Web Services account ID of the data grant receiver.
+ */ + inline const Aws::String& GetReceiverPrincipal() const{ return m_receiverPrincipal; } + inline void SetReceiverPrincipal(const Aws::String& value) { m_receiverPrincipal = value; } + inline void SetReceiverPrincipal(Aws::String&& value) { m_receiverPrincipal = std::move(value); } + inline void SetReceiverPrincipal(const char* value) { m_receiverPrincipal.assign(value); } + inline GetReceivedDataGrantResult& WithReceiverPrincipal(const Aws::String& value) { SetReceiverPrincipal(value); return *this;} + inline GetReceivedDataGrantResult& WithReceiverPrincipal(Aws::String&& value) { SetReceiverPrincipal(std::move(value)); return *this;} + inline GetReceivedDataGrantResult& WithReceiverPrincipal(const char* value) { SetReceiverPrincipal(value); return *this;} + ///@} + + ///@{ + /** + *The description of the data grant.
+ */ + inline const Aws::String& GetDescription() const{ return m_description; } + inline void SetDescription(const Aws::String& value) { m_description = value; } + inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } + inline void SetDescription(const char* value) { m_description.assign(value); } + inline GetReceivedDataGrantResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + inline GetReceivedDataGrantResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + inline GetReceivedDataGrantResult& WithDescription(const char* value) { SetDescription(value); return *this;} + ///@} + + ///@{ + /** + *The acceptance state of the data grant.
+ */ + inline const DataGrantAcceptanceState& GetAcceptanceState() const{ return m_acceptanceState; } + inline void SetAcceptanceState(const DataGrantAcceptanceState& value) { m_acceptanceState = value; } + inline void SetAcceptanceState(DataGrantAcceptanceState&& value) { m_acceptanceState = std::move(value); } + inline GetReceivedDataGrantResult& WithAcceptanceState(const DataGrantAcceptanceState& value) { SetAcceptanceState(value); return *this;} + inline GetReceivedDataGrantResult& WithAcceptanceState(DataGrantAcceptanceState&& value) { SetAcceptanceState(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *The timestamp of when the data grant was accepted.
+ */ + inline const Aws::Utils::DateTime& GetAcceptedAt() const{ return m_acceptedAt; } + inline void SetAcceptedAt(const Aws::Utils::DateTime& value) { m_acceptedAt = value; } + inline void SetAcceptedAt(Aws::Utils::DateTime&& value) { m_acceptedAt = std::move(value); } + inline GetReceivedDataGrantResult& WithAcceptedAt(const Aws::Utils::DateTime& value) { SetAcceptedAt(value); return *this;} + inline GetReceivedDataGrantResult& WithAcceptedAt(Aws::Utils::DateTime&& value) { SetAcceptedAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *The timestamp of when access to the associated data set ends.
+ */ + inline const Aws::Utils::DateTime& GetEndsAt() const{ return m_endsAt; } + inline void SetEndsAt(const Aws::Utils::DateTime& value) { m_endsAt = value; } + inline void SetEndsAt(Aws::Utils::DateTime&& value) { m_endsAt = std::move(value); } + inline GetReceivedDataGrantResult& WithEndsAt(const Aws::Utils::DateTime& value) { SetEndsAt(value); return *this;} + inline GetReceivedDataGrantResult& WithEndsAt(Aws::Utils::DateTime&& value) { SetEndsAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *The distribution scope for the data grant.
+ */ + inline const GrantDistributionScope& GetGrantDistributionScope() const{ return m_grantDistributionScope; } + inline void SetGrantDistributionScope(const GrantDistributionScope& value) { m_grantDistributionScope = value; } + inline void SetGrantDistributionScope(GrantDistributionScope&& value) { m_grantDistributionScope = std::move(value); } + inline GetReceivedDataGrantResult& WithGrantDistributionScope(const GrantDistributionScope& value) { SetGrantDistributionScope(value); return *this;} + inline GetReceivedDataGrantResult& WithGrantDistributionScope(GrantDistributionScope&& value) { SetGrantDistributionScope(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *The ID of the data set associated to the data grant.
+ */ + inline const Aws::String& GetDataSetId() const{ return m_dataSetId; } + inline void SetDataSetId(const Aws::String& value) { m_dataSetId = value; } + inline void SetDataSetId(Aws::String&& value) { m_dataSetId = std::move(value); } + inline void SetDataSetId(const char* value) { m_dataSetId.assign(value); } + inline GetReceivedDataGrantResult& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;} + inline GetReceivedDataGrantResult& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;} + inline GetReceivedDataGrantResult& WithDataSetId(const char* value) { SetDataSetId(value); return *this;} + ///@} + + ///@{ + /** + *The ID of the data grant.
+ */ + inline const Aws::String& GetId() const{ return m_id; } + inline void SetId(const Aws::String& value) { m_id = value; } + inline void SetId(Aws::String&& value) { m_id = std::move(value); } + inline void SetId(const char* value) { m_id.assign(value); } + inline GetReceivedDataGrantResult& WithId(const Aws::String& value) { SetId(value); return *this;} + inline GetReceivedDataGrantResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline GetReceivedDataGrantResult& WithId(const char* value) { SetId(value); return *this;} + ///@} + + ///@{ + /** + *The Amazon Resource Name (ARN) of the data grant.
+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + inline void SetArn(const Aws::String& value) { m_arn = value; } + inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } + inline void SetArn(const char* value) { m_arn.assign(value); } + inline GetReceivedDataGrantResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} + inline GetReceivedDataGrantResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + inline GetReceivedDataGrantResult& WithArn(const char* value) { SetArn(value); return *this;} + ///@} + + ///@{ + /** + *The timestamp of when the data grant was created.
+ */ + inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } + inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; } + inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); } + inline GetReceivedDataGrantResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} + inline GetReceivedDataGrantResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *The timestamp of when the data grant was last updated.
+ */ + inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } + inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAt = value; } + inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAt = std::move(value); } + inline GetReceivedDataGrantResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} + inline GetReceivedDataGrantResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(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 GetReceivedDataGrantResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline GetReceivedDataGrantResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline GetReceivedDataGrantResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_name; + + Aws::String m_senderPrincipal; + + Aws::String m_receiverPrincipal; + + Aws::String m_description; + + DataGrantAcceptanceState m_acceptanceState; + + Aws::Utils::DateTime m_acceptedAt; + + Aws::Utils::DateTime m_endsAt; + + GrantDistributionScope m_grantDistributionScope; + + Aws::String m_dataSetId; + + Aws::String m_id; + + Aws::String m_arn; + + Aws::Utils::DateTime m_createdAt; + + Aws::Utils::DateTime m_updatedAt; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace DataExchange +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/GrantDistributionScope.h b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/GrantDistributionScope.h new file mode 100644 index 00000000000..bb1f3992959 --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/GrantDistributionScope.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeThe maximum number of results to be included in the next page.
+ */ + inline int GetMaxResults() const{ return m_maxResults; } + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + inline ListDataGrantsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + ///@} + + ///@{ + /** + *The pagination token used to retrieve the next page of results for this + * operation.
+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + inline ListDataGrantsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListDataGrantsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListDataGrantsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + private: + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + }; + +} // namespace Model +} // namespace DataExchange +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/ListDataGrantsResult.h b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/ListDataGrantsResult.h new file mode 100644 index 00000000000..955bce208db --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/ListDataGrantsResult.h @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeAn object that contains a list of data grant information.
+ */ + inline const Aws::VectorThe pagination token used to retrieve the next page of results for this + * operation.
+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + inline ListDataGrantsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListDataGrantsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListDataGrantsResult& 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 ListDataGrantsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline ListDataGrantsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline ListDataGrantsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::VectorThe maximum number of results to be included in the next page.
+ */ + inline int GetMaxResults() const{ return m_maxResults; } + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + inline ListReceivedDataGrantsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + ///@} + + ///@{ + /** + *The pagination token used to retrieve the next page of results for this + * operation.
+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + inline ListReceivedDataGrantsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListReceivedDataGrantsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListReceivedDataGrantsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + /** + *The acceptance state of the data grants to list.
+ */ + inline const Aws::Vector