AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
47 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
48 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
49 inline CreateDimensionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
50 inline CreateDimensionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
51 inline CreateDimensionRequest& WithName(const char* value) { SetName(value); return *this;}
53
55
59 inline const DimensionType& GetType() const{ return m_type; }
60 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
61 inline void SetType(const DimensionType& value) { m_typeHasBeenSet = true; m_type = value; }
62 inline void SetType(DimensionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
63 inline CreateDimensionRequest& WithType(const DimensionType& value) { SetType(value); return *this;}
64 inline CreateDimensionRequest& WithType(DimensionType&& value) { SetType(std::move(value)); return *this;}
66
68
73 inline const Aws::Vector<Aws::String>& GetStringValues() const{ return m_stringValues; }
74 inline bool StringValuesHasBeenSet() const { return m_stringValuesHasBeenSet; }
75 inline void SetStringValues(const Aws::Vector<Aws::String>& value) { m_stringValuesHasBeenSet = true; m_stringValues = value; }
76 inline void SetStringValues(Aws::Vector<Aws::String>&& value) { m_stringValuesHasBeenSet = true; m_stringValues = std::move(value); }
78 inline CreateDimensionRequest& WithStringValues(Aws::Vector<Aws::String>&& value) { SetStringValues(std::move(value)); return *this;}
79 inline CreateDimensionRequest& AddStringValues(const Aws::String& value) { m_stringValuesHasBeenSet = true; m_stringValues.push_back(value); return *this; }
80 inline CreateDimensionRequest& AddStringValues(Aws::String&& value) { m_stringValuesHasBeenSet = true; m_stringValues.push_back(std::move(value)); return *this; }
81 inline CreateDimensionRequest& AddStringValues(const char* value) { m_stringValuesHasBeenSet = true; m_stringValues.push_back(value); return *this; }
83
85
88 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
89 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
90 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
91 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
92 inline CreateDimensionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
93 inline CreateDimensionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
94 inline CreateDimensionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
95 inline CreateDimensionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
97
99
105 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
106 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
107 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
108 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
109 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
111 inline CreateDimensionRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
112 inline CreateDimensionRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
114 private:
115
116 Aws::String m_name;
117 bool m_nameHasBeenSet = false;
118
119 DimensionType m_type;
120 bool m_typeHasBeenSet = false;
121
122 Aws::Vector<Aws::String> m_stringValues;
123 bool m_stringValuesHasBeenSet = false;
124
125 Aws::Vector<Tag> m_tags;
126 bool m_tagsHasBeenSet = false;
127
128 Aws::String m_clientRequestToken;
129 bool m_clientRequestTokenHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace IoT
134} // namespace Aws
CreateDimensionRequest & WithType(DimensionType &&value)
CreateDimensionRequest & WithName(const char *value)
void SetStringValues(Aws::Vector< Aws::String > &&value)
const Aws::String & GetClientRequestToken() const
CreateDimensionRequest & AddStringValues(const char *value)
CreateDimensionRequest & AddStringValues(Aws::String &&value)
CreateDimensionRequest & AddTags(Tag &&value)
CreateDimensionRequest & WithTags(const Aws::Vector< Tag > &value)
CreateDimensionRequest & WithType(const DimensionType &value)
void SetTags(const Aws::Vector< Tag > &value)
void SetTags(Aws::Vector< Tag > &&value)
CreateDimensionRequest & AddStringValues(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateDimensionRequest & WithStringValues(Aws::Vector< Aws::String > &&value)
void SetStringValues(const Aws::Vector< Aws::String > &value)
void SetType(const DimensionType &value)
CreateDimensionRequest & WithClientRequestToken(Aws::String &&value)
CreateDimensionRequest & WithStringValues(const Aws::Vector< Aws::String > &value)
AWS_IOT_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetStringValues() const
CreateDimensionRequest & WithClientRequestToken(const Aws::String &value)
CreateDimensionRequest & WithName(const Aws::String &value)
CreateDimensionRequest & WithName(Aws::String &&value)
void SetClientRequestToken(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
CreateDimensionRequest & WithTags(Aws::Vector< Tag > &&value)
CreateDimensionRequest & AddTags(const Tag &value)
CreateDimensionRequest & WithClientRequestToken(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector