AWS SDK for C++  1.9.132
AWS SDK for C++
UpdateDimensionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace IoT
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "UpdateDimension"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
40  inline const Aws::String& GetName() const{ return m_name; }
41 
46  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 
52  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
53 
58  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
59 
64  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 
70  inline UpdateDimensionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
71 
76  inline UpdateDimensionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
77 
82  inline UpdateDimensionRequest& WithName(const char* value) { SetName(value); return *this;}
83 
84 
90  inline const Aws::Vector<Aws::String>& GetStringValues() const{ return m_stringValues; }
91 
97  inline bool StringValuesHasBeenSet() const { return m_stringValuesHasBeenSet; }
98 
104  inline void SetStringValues(const Aws::Vector<Aws::String>& value) { m_stringValuesHasBeenSet = true; m_stringValues = value; }
105 
111  inline void SetStringValues(Aws::Vector<Aws::String>&& value) { m_stringValuesHasBeenSet = true; m_stringValues = std::move(value); }
112 
118  inline UpdateDimensionRequest& WithStringValues(const Aws::Vector<Aws::String>& value) { SetStringValues(value); return *this;}
119 
125  inline UpdateDimensionRequest& WithStringValues(Aws::Vector<Aws::String>&& value) { SetStringValues(std::move(value)); return *this;}
126 
132  inline UpdateDimensionRequest& AddStringValues(const Aws::String& value) { m_stringValuesHasBeenSet = true; m_stringValues.push_back(value); return *this; }
133 
139  inline UpdateDimensionRequest& AddStringValues(Aws::String&& value) { m_stringValuesHasBeenSet = true; m_stringValues.push_back(std::move(value)); return *this; }
140 
146  inline UpdateDimensionRequest& AddStringValues(const char* value) { m_stringValuesHasBeenSet = true; m_stringValues.push_back(value); return *this; }
147 
148  private:
149 
150  Aws::String m_name;
151  bool m_nameHasBeenSet;
152 
153  Aws::Vector<Aws::String> m_stringValues;
154  bool m_stringValuesHasBeenSet;
155  };
156 
157 } // namespace Model
158 } // namespace IoT
159 } // namespace Aws
Aws::IoT::Model::UpdateDimensionRequest::SetName
void SetName(const char *value)
Definition: UpdateDimensionRequest.h:64
Aws::IoT::Model::UpdateDimensionRequest::AddStringValues
UpdateDimensionRequest & AddStringValues(Aws::String &&value)
Definition: UpdateDimensionRequest.h:139
Aws::IoT::Model::UpdateDimensionRequest::StringValuesHasBeenSet
bool StringValuesHasBeenSet() const
Definition: UpdateDimensionRequest.h:97
Aws::IoT::Model::UpdateDimensionRequest::UpdateDimensionRequest
UpdateDimensionRequest()
Aws::IoT::Model::UpdateDimensionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::UpdateDimensionRequest::SetName
void SetName(Aws::String &&value)
Definition: UpdateDimensionRequest.h:58
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::UpdateDimensionRequest
Definition: UpdateDimensionRequest.h:23
AWSVector.h
Aws::IoT::Model::UpdateDimensionRequest::GetStringValues
const Aws::Vector< Aws::String > & GetStringValues() const
Definition: UpdateDimensionRequest.h:90
Aws::IoT::Model::UpdateDimensionRequest::AddStringValues
UpdateDimensionRequest & AddStringValues(const char *value)
Definition: UpdateDimensionRequest.h:146
Aws::IoT::Model::UpdateDimensionRequest::WithStringValues
UpdateDimensionRequest & WithStringValues(Aws::Vector< Aws::String > &&value)
Definition: UpdateDimensionRequest.h:125
Aws::IoT::Model::UpdateDimensionRequest::WithName
UpdateDimensionRequest & WithName(Aws::String &&value)
Definition: UpdateDimensionRequest.h:76
Aws::IoT::Model::UpdateDimensionRequest::SetStringValues
void SetStringValues(Aws::Vector< Aws::String > &&value)
Definition: UpdateDimensionRequest.h:111
AWSString.h
Aws::IoT::Model::UpdateDimensionRequest::WithStringValues
UpdateDimensionRequest & WithStringValues(const Aws::Vector< Aws::String > &value)
Definition: UpdateDimensionRequest.h:118
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::UpdateDimensionRequest::AddStringValues
UpdateDimensionRequest & AddStringValues(const Aws::String &value)
Definition: UpdateDimensionRequest.h:132
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::UpdateDimensionRequest::GetName
const Aws::String & GetName() const
Definition: UpdateDimensionRequest.h:40
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::UpdateDimensionRequest::SetName
void SetName(const Aws::String &value)
Definition: UpdateDimensionRequest.h:52
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::UpdateDimensionRequest::SetStringValues
void SetStringValues(const Aws::Vector< Aws::String > &value)
Definition: UpdateDimensionRequest.h:104
Aws::IoT::Model::UpdateDimensionRequest::WithName
UpdateDimensionRequest & WithName(const char *value)
Definition: UpdateDimensionRequest.h:82
IoTRequest.h
Aws::IoT::Model::UpdateDimensionRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: UpdateDimensionRequest.h:46
Aws::IoT::Model::UpdateDimensionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateDimensionRequest.h:31
IoT_EXPORTS.h
Aws::IoT::Model::UpdateDimensionRequest::WithName
UpdateDimensionRequest & WithName(const Aws::String &value)
Definition: UpdateDimensionRequest.h:70