AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateDimensionRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot/model/DimensionType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/iot/model/Tag.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace IoT
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_IOT_API CreateDimensionRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateDimension"; }
35
36 AWS_IOT_API Aws::String SerializePayload() const override;
37
38
40
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template<typename NameT = Aws::String>
47 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
48 template<typename NameT = Aws::String>
49 CreateDimensionRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
51
53
57 inline DimensionType GetType() const { return m_type; }
58 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
59 inline void SetType(DimensionType value) { m_typeHasBeenSet = true; m_type = value; }
60 inline CreateDimensionRequest& WithType(DimensionType value) { SetType(value); return *this;}
62
64
69 inline const Aws::Vector<Aws::String>& GetStringValues() const { return m_stringValues; }
70 inline bool StringValuesHasBeenSet() const { return m_stringValuesHasBeenSet; }
71 template<typename StringValuesT = Aws::Vector<Aws::String>>
72 void SetStringValues(StringValuesT&& value) { m_stringValuesHasBeenSet = true; m_stringValues = std::forward<StringValuesT>(value); }
73 template<typename StringValuesT = Aws::Vector<Aws::String>>
74 CreateDimensionRequest& WithStringValues(StringValuesT&& value) { SetStringValues(std::forward<StringValuesT>(value)); return *this;}
75 template<typename StringValuesT = Aws::String>
76 CreateDimensionRequest& AddStringValues(StringValuesT&& value) { m_stringValuesHasBeenSet = true; m_stringValues.emplace_back(std::forward<StringValuesT>(value)); return *this; }
78
80
83 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
84 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
85 template<typename TagsT = Aws::Vector<Tag>>
86 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
87 template<typename TagsT = Aws::Vector<Tag>>
88 CreateDimensionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
89 template<typename TagsT = Tag>
90 CreateDimensionRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
92
94
100 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
101 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
102 template<typename ClientRequestTokenT = Aws::String>
103 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
104 template<typename ClientRequestTokenT = Aws::String>
105 CreateDimensionRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
107 private:
108
109 Aws::String m_name;
110 bool m_nameHasBeenSet = false;
111
113 bool m_typeHasBeenSet = false;
114
115 Aws::Vector<Aws::String> m_stringValues;
116 bool m_stringValuesHasBeenSet = false;
117
118 Aws::Vector<Tag> m_tags;
119 bool m_tagsHasBeenSet = false;
120
121 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
122 bool m_clientRequestTokenHasBeenSet = true;
123 };
124
125} // namespace Model
126} // namespace IoT
127} // namespace Aws
CreateDimensionRequest & AddStringValues(StringValuesT &&value)
CreateDimensionRequest & WithClientRequestToken(ClientRequestTokenT &&value)
const Aws::String & GetClientRequestToken() const
AWS_IOT_API CreateDimensionRequest()=default
CreateDimensionRequest & AddTags(TagsT &&value)
CreateDimensionRequest & WithStringValues(StringValuesT &&value)
virtual const char * GetServiceRequestName() const override
AWS_IOT_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetStringValues() const
void SetClientRequestToken(ClientRequestTokenT &&value)
const Aws::Vector< Tag > & GetTags() const
CreateDimensionRequest & WithName(NameT &&value)
CreateDimensionRequest & WithTags(TagsT &&value)
CreateDimensionRequest & WithType(DimensionType value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector