AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateRevisionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dataexchange/DataExchangeRequest.h>
10#include <aws/dataexchange/DataExchange_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace DataExchange {
16namespace Model {
17
21 public:
22 AWS_DATAEXCHANGE_API CreateRevisionRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateRevision"; }
29
30 AWS_DATAEXCHANGE_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetComment() const { return m_comment; }
37 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
38 template <typename CommentT = Aws::String>
39 void SetComment(CommentT&& value) {
40 m_commentHasBeenSet = true;
41 m_comment = std::forward<CommentT>(value);
42 }
43 template <typename CommentT = Aws::String>
45 SetComment(std::forward<CommentT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetDataSetId() const { return m_dataSetId; }
55 inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
56 template <typename DataSetIdT = Aws::String>
57 void SetDataSetId(DataSetIdT&& value) {
58 m_dataSetIdHasBeenSet = true;
59 m_dataSetId = std::forward<DataSetIdT>(value);
60 }
61 template <typename DataSetIdT = Aws::String>
62 CreateRevisionRequest& WithDataSetId(DataSetIdT&& value) {
63 SetDataSetId(std::forward<DataSetIdT>(value));
64 return *this;
65 }
67
69
75 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
76 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
77 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
78 void SetTags(TagsT&& value) {
79 m_tagsHasBeenSet = true;
80 m_tags = std::forward<TagsT>(value);
81 }
82 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
84 SetTags(std::forward<TagsT>(value));
85 return *this;
86 }
87 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
88 CreateRevisionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
89 m_tagsHasBeenSet = true;
90 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_comment;
96
97 Aws::String m_dataSetId;
98
100 bool m_commentHasBeenSet = false;
101 bool m_dataSetIdHasBeenSet = false;
102 bool m_tagsHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace DataExchange
107} // namespace Aws
AWS_DATAEXCHANGE_API Aws::String SerializePayload() const override
CreateRevisionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateRevisionRequest & WithDataSetId(DataSetIdT &&value)
AWS_DATAEXCHANGE_API CreateRevisionRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
virtual const char * GetServiceRequestName() const override
CreateRevisionRequest & WithComment(CommentT &&value)
CreateRevisionRequest & WithTags(TagsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String