AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateDataSetRequest.h
1
6#pragma once
7#include <aws/dataexchange/DataExchange_EXPORTS.h>
8#include <aws/dataexchange/DataExchangeRequest.h>
9#include <aws/dataexchange/model/AssetType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace DataExchange
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_DATAEXCHANGE_API CreateDataSetRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateDataSet"; }
33
34 AWS_DATAEXCHANGE_API Aws::String SerializePayload() const override;
35
36
38
41 inline AssetType GetAssetType() const { return m_assetType; }
42 inline bool AssetTypeHasBeenSet() const { return m_assetTypeHasBeenSet; }
43 inline void SetAssetType(AssetType value) { m_assetTypeHasBeenSet = true; m_assetType = value; }
44 inline CreateDataSetRequest& WithAssetType(AssetType value) { SetAssetType(value); return *this;}
46
48
52 inline const Aws::String& GetDescription() const { return m_description; }
53 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
54 template<typename DescriptionT = Aws::String>
55 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
56 template<typename DescriptionT = Aws::String>
57 CreateDataSetRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
59
61
64 inline const Aws::String& GetName() const { return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 template<typename NameT = Aws::String>
67 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
68 template<typename NameT = Aws::String>
69 CreateDataSetRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
71
73
79 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
80 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
81 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
82 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
83 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
84 CreateDataSetRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
85 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
86 CreateDataSetRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
87 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
88 }
90 private:
91
92 AssetType m_assetType{AssetType::NOT_SET};
93 bool m_assetTypeHasBeenSet = false;
94
95 Aws::String m_description;
96 bool m_descriptionHasBeenSet = false;
97
98 Aws::String m_name;
99 bool m_nameHasBeenSet = false;
100
102 bool m_tagsHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace DataExchange
107} // 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