AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateUsageProfileRequest.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/glue/GlueRequest.h>
10#include <aws/glue/Glue_EXPORTS.h>
11#include <aws/glue/model/ProfileConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Glue {
17namespace Model {
18
22 public:
23 AWS_GLUE_API CreateUsageProfileRequest() = 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 "CreateUsageProfile"; }
30
31 AWS_GLUE_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
76 inline const ProfileConfiguration& GetConfiguration() const { return m_configuration; }
77 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
78 template <typename ConfigurationT = ProfileConfiguration>
79 void SetConfiguration(ConfigurationT&& value) {
80 m_configurationHasBeenSet = true;
81 m_configuration = std::forward<ConfigurationT>(value);
82 }
83 template <typename ConfigurationT = ProfileConfiguration>
85 SetConfiguration(std::forward<ConfigurationT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
95 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
96 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
97 void SetTags(TagsT&& value) {
98 m_tagsHasBeenSet = true;
99 m_tags = std::forward<TagsT>(value);
100 }
101 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
103 SetTags(std::forward<TagsT>(value));
104 return *this;
105 }
106 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
107 CreateUsageProfileRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
108 m_tagsHasBeenSet = true;
109 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
110 return *this;
111 }
113 private:
114 Aws::String m_name;
115
116 Aws::String m_description;
117
118 ProfileConfiguration m_configuration;
119
121 bool m_nameHasBeenSet = false;
122 bool m_descriptionHasBeenSet = false;
123 bool m_configurationHasBeenSet = false;
124 bool m_tagsHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace Glue
129} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateUsageProfileRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateUsageProfileRequest & WithConfiguration(ConfigurationT &&value)
AWS_GLUE_API CreateUsageProfileRequest()=default
CreateUsageProfileRequest & WithName(NameT &&value)
AWS_GLUE_API Aws::String SerializePayload() const override
CreateUsageProfileRequest & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateUsageProfileRequest & WithDescription(DescriptionT &&value)
const ProfileConfiguration & GetConfiguration() const
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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