AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const AssetType& GetAssetType() const{ return m_assetType; }
42 inline bool AssetTypeHasBeenSet() const { return m_assetTypeHasBeenSet; }
43 inline void SetAssetType(const AssetType& value) { m_assetTypeHasBeenSet = true; m_assetType = value; }
44 inline void SetAssetType(AssetType&& value) { m_assetTypeHasBeenSet = true; m_assetType = std::move(value); }
45 inline CreateDataSetRequest& WithAssetType(const AssetType& value) { SetAssetType(value); return *this;}
46 inline CreateDataSetRequest& WithAssetType(AssetType&& value) { SetAssetType(std::move(value)); return *this;}
48
50
54 inline const Aws::String& GetDescription() const{ return m_description; }
55 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
56 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
57 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
58 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
59 inline CreateDataSetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
60 inline CreateDataSetRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
61 inline CreateDataSetRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
63
65
68 inline const Aws::String& GetName() const{ return m_name; }
69 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
70 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
71 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
72 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
73 inline CreateDataSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
74 inline CreateDataSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
75 inline CreateDataSetRequest& WithName(const char* value) { SetName(value); return *this;}
77
79
85 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
86 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
87 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
88 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
89 inline CreateDataSetRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
90 inline CreateDataSetRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
91 inline CreateDataSetRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
92 inline CreateDataSetRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
93 inline CreateDataSetRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
94 inline CreateDataSetRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
95 inline CreateDataSetRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
96 inline CreateDataSetRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
97 inline CreateDataSetRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
99 private:
100
101 AssetType m_assetType;
102 bool m_assetTypeHasBeenSet = false;
103
104 Aws::String m_description;
105 bool m_descriptionHasBeenSet = false;
106
107 Aws::String m_name;
108 bool m_nameHasBeenSet = false;
109
111 bool m_tagsHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace DataExchange
116} // namespace Aws
CreateDataSetRequest & WithName(const char *value)
CreateDataSetRequest & AddTags(Aws::String &&key, const Aws::String &value)
AWS_DATAEXCHANGE_API Aws::String SerializePayload() const override
CreateDataSetRequest & WithAssetType(const AssetType &value)
CreateDataSetRequest & WithName(Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateDataSetRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateDataSetRequest & WithDescription(Aws::String &&value)
CreateDataSetRequest & WithAssetType(AssetType &&value)
virtual const char * GetServiceRequestName() const override
CreateDataSetRequest & WithName(const Aws::String &value)
CreateDataSetRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateDataSetRequest & AddTags(Aws::String &&key, Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateDataSetRequest & WithDescription(const char *value)
CreateDataSetRequest & AddTags(Aws::String &&key, const char *value)
CreateDataSetRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateDataSetRequest & AddTags(const char *key, const char *value)
CreateDataSetRequest & WithDescription(const Aws::String &value)
CreateDataSetRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateDataSetRequest & AddTags(const char *key, Aws::String &&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