AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateRevisionRequest.h
1
6#pragma once
7#include <aws/dataexchange/DataExchange_EXPORTS.h>
8#include <aws/dataexchange/DataExchangeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace DataExchange
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_DATAEXCHANGE_API CreateRevisionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateRevision"; }
32
33 AWS_DATAEXCHANGE_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetComment() const { return m_comment; }
41 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
42 template<typename CommentT = Aws::String>
43 void SetComment(CommentT&& value) { m_commentHasBeenSet = true; m_comment = std::forward<CommentT>(value); }
44 template<typename CommentT = Aws::String>
45 CreateRevisionRequest& WithComment(CommentT&& value) { SetComment(std::forward<CommentT>(value)); return *this;}
47
49
52 inline const Aws::String& GetDataSetId() const { return m_dataSetId; }
53 inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
54 template<typename DataSetIdT = Aws::String>
55 void SetDataSetId(DataSetIdT&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::forward<DataSetIdT>(value); }
56 template<typename DataSetIdT = Aws::String>
57 CreateRevisionRequest& WithDataSetId(DataSetIdT&& value) { SetDataSetId(std::forward<DataSetIdT>(value)); return *this;}
59
61
67 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
68 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
69 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
70 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
71 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
72 CreateRevisionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
73 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
74 CreateRevisionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
75 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
76 }
78 private:
79
80 Aws::String m_comment;
81 bool m_commentHasBeenSet = false;
82
83 Aws::String m_dataSetId;
84 bool m_dataSetIdHasBeenSet = false;
85
87 bool m_tagsHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace DataExchange
92} // 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