AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateDataSetRequest.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#include <aws/dataexchange/model/AssetType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace DataExchange {
17namespace Model {
18
22 public:
23 AWS_DATAEXCHANGE_API CreateDataSetRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateDataSet"; }
30
31 AWS_DATAEXCHANGE_API Aws::String SerializePayload() const override;
32
34
37 inline AssetType GetAssetType() const { return m_assetType; }
38 inline bool AssetTypeHasBeenSet() const { return m_assetTypeHasBeenSet; }
39 inline void SetAssetType(AssetType value) {
40 m_assetTypeHasBeenSet = true;
41 m_assetType = value;
42 }
44 SetAssetType(value);
45 return *this;
46 }
48
50
54 inline const Aws::String& GetDescription() const { return m_description; }
55 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
56 template <typename DescriptionT = Aws::String>
57 void SetDescription(DescriptionT&& value) {
58 m_descriptionHasBeenSet = true;
59 m_description = std::forward<DescriptionT>(value);
60 }
61 template <typename DescriptionT = Aws::String>
62 CreateDataSetRequest& WithDescription(DescriptionT&& value) {
63 SetDescription(std::forward<DescriptionT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetName() const { return m_name; }
73 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
74 template <typename NameT = Aws::String>
75 void SetName(NameT&& value) {
76 m_nameHasBeenSet = true;
77 m_name = std::forward<NameT>(value);
78 }
79 template <typename NameT = Aws::String>
81 SetName(std::forward<NameT>(value));
82 return *this;
83 }
85
87
93 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
94 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
95 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
96 void SetTags(TagsT&& value) {
97 m_tagsHasBeenSet = true;
98 m_tags = std::forward<TagsT>(value);
99 }
100 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
102 SetTags(std::forward<TagsT>(value));
103 return *this;
104 }
105 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
106 CreateDataSetRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
107 m_tagsHasBeenSet = true;
108 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
109 return *this;
110 }
112 private:
113 AssetType m_assetType{AssetType::NOT_SET};
114
115 Aws::String m_description;
116
117 Aws::String m_name;
118
120 bool m_assetTypeHasBeenSet = false;
121 bool m_descriptionHasBeenSet = false;
122 bool m_nameHasBeenSet = false;
123 bool m_tagsHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace DataExchange
128} // namespace Aws
AWS_DATAEXCHANGE_API Aws::String SerializePayload() const override
CreateDataSetRequest & WithAssetType(AssetType value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateDataSetRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_DATAEXCHANGE_API CreateDataSetRequest()=default
CreateDataSetRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateDataSetRequest & WithName(NameT &&value)
CreateDataSetRequest & WithDescription(DescriptionT &&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