/** * 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 DataExchange { namespace Model { /** */ class CreateRevisionRequest : public DataExchangeRequest { public: AWS_DATAEXCHANGE_API CreateRevisionRequest(); // 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 "CreateRevision"; } AWS_DATAEXCHANGE_API Aws::String SerializePayload() const override; /** *

An optional comment about the revision.

*/ inline const Aws::String& GetComment() const{ return m_comment; } /** *

An optional comment about the revision.

*/ inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; } /** *

An optional comment about the revision.

*/ inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; } /** *

An optional comment about the revision.

*/ inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); } /** *

An optional comment about the revision.

*/ inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); } /** *

An optional comment about the revision.

*/ inline CreateRevisionRequest& WithComment(const Aws::String& value) { SetComment(value); return *this;} /** *

An optional comment about the revision.

*/ inline CreateRevisionRequest& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;} /** *

An optional comment about the revision.

*/ inline CreateRevisionRequest& WithComment(const char* value) { SetComment(value); return *this;} /** *

The unique identifier for a data set.

*/ inline const Aws::String& GetDataSetId() const{ return m_dataSetId; } /** *

The unique identifier for a data set.

*/ inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; } /** *

The unique identifier for a data set.

*/ inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; } /** *

The unique identifier for a data set.

*/ inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); } /** *

The unique identifier for a data set.

*/ inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); } /** *

The unique identifier for a data set.

*/ inline CreateRevisionRequest& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;} /** *

The unique identifier for a data set.

*/ inline CreateRevisionRequest& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;} /** *

The unique identifier for a data set.

*/ inline CreateRevisionRequest& WithDataSetId(const char* value) { SetDataSetId(value); return *this;} /** *

A revision tag is an optional label that you can assign to a revision when * you create it. Each tag consists of a key and an optional value, both of which * you define. When you use tagging, you can also use tag-based access control in * IAM policies to control access to these data sets and revisions.

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

A revision tag is an optional label that you can assign to a revision when * you create it. Each tag consists of a key and an optional value, both of which * you define. When you use tagging, you can also use tag-based access control in * IAM policies to control access to these data sets and revisions.

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

A revision tag is an optional label that you can assign to a revision when * you create it. Each tag consists of a key and an optional value, both of which * you define. When you use tagging, you can also use tag-based access control in * IAM policies to control access to these data sets and revisions.

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

A revision tag is an optional label that you can assign to a revision when * you create it. Each tag consists of a key and an optional value, both of which * you define. When you use tagging, you can also use tag-based access control in * IAM policies to control access to these data sets and revisions.

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

A revision tag is an optional label that you can assign to a revision when * you create it. Each tag consists of a key and an optional value, both of which * you define. When you use tagging, you can also use tag-based access control in * IAM policies to control access to these data sets and revisions.

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

A revision tag is an optional label that you can assign to a revision when * you create it. Each tag consists of a key and an optional value, both of which * you define. When you use tagging, you can also use tag-based access control in * IAM policies to control access to these data sets and revisions.

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

A revision tag is an optional label that you can assign to a revision when * you create it. Each tag consists of a key and an optional value, both of which * you define. When you use tagging, you can also use tag-based access control in * IAM policies to control access to these data sets and revisions.

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

A revision tag is an optional label that you can assign to a revision when * you create it. Each tag consists of a key and an optional value, both of which * you define. When you use tagging, you can also use tag-based access control in * IAM policies to control access to these data sets and revisions.

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

A revision tag is an optional label that you can assign to a revision when * you create it. Each tag consists of a key and an optional value, both of which * you define. When you use tagging, you can also use tag-based access control in * IAM policies to control access to these data sets and revisions.

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

A revision tag is an optional label that you can assign to a revision when * you create it. Each tag consists of a key and an optional value, both of which * you define. When you use tagging, you can also use tag-based access control in * IAM policies to control access to these data sets and revisions.

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

A revision tag is an optional label that you can assign to a revision when * you create it. Each tag consists of a key and an optional value, both of which * you define. When you use tagging, you can also use tag-based access control in * IAM policies to control access to these data sets and revisions.

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

A revision tag is an optional label that you can assign to a revision when * you create it. Each tag consists of a key and an optional value, both of which * you define. When you use tagging, you can also use tag-based access control in * IAM policies to control access to these data sets and revisions.

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

A revision tag is an optional label that you can assign to a revision when * you create it. Each tag consists of a key and an optional value, both of which * you define. When you use tagging, you can also use tag-based access control in * IAM policies to control access to these data sets and revisions.

*/ inline CreateRevisionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_comment; bool m_commentHasBeenSet = false; Aws::String m_dataSetId; bool m_dataSetIdHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace DataExchange } // namespace Aws