AWS SDK for C++  1.9.132
AWS SDK for C++
AddThingToBillingGroupRequest.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>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace IoT
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "AddThingToBillingGroup"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
38  inline const Aws::String& GetBillingGroupName() const{ return m_billingGroupName; }
39 
43  inline bool BillingGroupNameHasBeenSet() const { return m_billingGroupNameHasBeenSet; }
44 
48  inline void SetBillingGroupName(const Aws::String& value) { m_billingGroupNameHasBeenSet = true; m_billingGroupName = value; }
49 
53  inline void SetBillingGroupName(Aws::String&& value) { m_billingGroupNameHasBeenSet = true; m_billingGroupName = std::move(value); }
54 
58  inline void SetBillingGroupName(const char* value) { m_billingGroupNameHasBeenSet = true; m_billingGroupName.assign(value); }
59 
63  inline AddThingToBillingGroupRequest& WithBillingGroupName(const Aws::String& value) { SetBillingGroupName(value); return *this;}
64 
68  inline AddThingToBillingGroupRequest& WithBillingGroupName(Aws::String&& value) { SetBillingGroupName(std::move(value)); return *this;}
69 
73  inline AddThingToBillingGroupRequest& WithBillingGroupName(const char* value) { SetBillingGroupName(value); return *this;}
74 
75 
79  inline const Aws::String& GetBillingGroupArn() const{ return m_billingGroupArn; }
80 
84  inline bool BillingGroupArnHasBeenSet() const { return m_billingGroupArnHasBeenSet; }
85 
89  inline void SetBillingGroupArn(const Aws::String& value) { m_billingGroupArnHasBeenSet = true; m_billingGroupArn = value; }
90 
94  inline void SetBillingGroupArn(Aws::String&& value) { m_billingGroupArnHasBeenSet = true; m_billingGroupArn = std::move(value); }
95 
99  inline void SetBillingGroupArn(const char* value) { m_billingGroupArnHasBeenSet = true; m_billingGroupArn.assign(value); }
100 
104  inline AddThingToBillingGroupRequest& WithBillingGroupArn(const Aws::String& value) { SetBillingGroupArn(value); return *this;}
105 
109  inline AddThingToBillingGroupRequest& WithBillingGroupArn(Aws::String&& value) { SetBillingGroupArn(std::move(value)); return *this;}
110 
114  inline AddThingToBillingGroupRequest& WithBillingGroupArn(const char* value) { SetBillingGroupArn(value); return *this;}
115 
116 
120  inline const Aws::String& GetThingName() const{ return m_thingName; }
121 
125  inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
126 
130  inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
131 
135  inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
136 
140  inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
141 
145  inline AddThingToBillingGroupRequest& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
146 
150  inline AddThingToBillingGroupRequest& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
151 
155  inline AddThingToBillingGroupRequest& WithThingName(const char* value) { SetThingName(value); return *this;}
156 
157 
161  inline const Aws::String& GetThingArn() const{ return m_thingArn; }
162 
166  inline bool ThingArnHasBeenSet() const { return m_thingArnHasBeenSet; }
167 
171  inline void SetThingArn(const Aws::String& value) { m_thingArnHasBeenSet = true; m_thingArn = value; }
172 
176  inline void SetThingArn(Aws::String&& value) { m_thingArnHasBeenSet = true; m_thingArn = std::move(value); }
177 
181  inline void SetThingArn(const char* value) { m_thingArnHasBeenSet = true; m_thingArn.assign(value); }
182 
186  inline AddThingToBillingGroupRequest& WithThingArn(const Aws::String& value) { SetThingArn(value); return *this;}
187 
191  inline AddThingToBillingGroupRequest& WithThingArn(Aws::String&& value) { SetThingArn(std::move(value)); return *this;}
192 
196  inline AddThingToBillingGroupRequest& WithThingArn(const char* value) { SetThingArn(value); return *this;}
197 
198  private:
199 
200  Aws::String m_billingGroupName;
201  bool m_billingGroupNameHasBeenSet;
202 
203  Aws::String m_billingGroupArn;
204  bool m_billingGroupArnHasBeenSet;
205 
206  Aws::String m_thingName;
207  bool m_thingNameHasBeenSet;
208 
209  Aws::String m_thingArn;
210  bool m_thingArnHasBeenSet;
211  };
212 
213 } // namespace Model
214 } // namespace IoT
215 } // namespace Aws
Aws::IoT::Model::AddThingToBillingGroupRequest::GetBillingGroupName
const Aws::String & GetBillingGroupName() const
Definition: AddThingToBillingGroupRequest.h:38
Aws::IoT::Model::AddThingToBillingGroupRequest::WithBillingGroupArn
AddThingToBillingGroupRequest & WithBillingGroupArn(Aws::String &&value)
Definition: AddThingToBillingGroupRequest.h:109
Aws::IoT::Model::AddThingToBillingGroupRequest::SetThingArn
void SetThingArn(Aws::String &&value)
Definition: AddThingToBillingGroupRequest.h:176
Aws::IoT::Model::AddThingToBillingGroupRequest::WithBillingGroupName
AddThingToBillingGroupRequest & WithBillingGroupName(const char *value)
Definition: AddThingToBillingGroupRequest.h:73
Aws::IoT::Model::AddThingToBillingGroupRequest::WithBillingGroupName
AddThingToBillingGroupRequest & WithBillingGroupName(Aws::String &&value)
Definition: AddThingToBillingGroupRequest.h:68
Aws::IoT::Model::AddThingToBillingGroupRequest::SetBillingGroupName
void SetBillingGroupName(Aws::String &&value)
Definition: AddThingToBillingGroupRequest.h:53
Aws::IoT::Model::AddThingToBillingGroupRequest
Definition: AddThingToBillingGroupRequest.h:22
Aws::IoT::Model::AddThingToBillingGroupRequest::WithBillingGroupArn
AddThingToBillingGroupRequest & WithBillingGroupArn(const char *value)
Definition: AddThingToBillingGroupRequest.h:114
Aws::IoT::Model::AddThingToBillingGroupRequest::WithBillingGroupName
AddThingToBillingGroupRequest & WithBillingGroupName(const Aws::String &value)
Definition: AddThingToBillingGroupRequest.h:63
Aws::IoT::Model::AddThingToBillingGroupRequest::SetBillingGroupArn
void SetBillingGroupArn(Aws::String &&value)
Definition: AddThingToBillingGroupRequest.h:94
Aws::IoT::Model::AddThingToBillingGroupRequest::WithThingArn
AddThingToBillingGroupRequest & WithThingArn(const char *value)
Definition: AddThingToBillingGroupRequest.h:196
Aws::IoT::Model::AddThingToBillingGroupRequest::BillingGroupNameHasBeenSet
bool BillingGroupNameHasBeenSet() const
Definition: AddThingToBillingGroupRequest.h:43
Aws::IoT::Model::AddThingToBillingGroupRequest::WithBillingGroupArn
AddThingToBillingGroupRequest & WithBillingGroupArn(const Aws::String &value)
Definition: AddThingToBillingGroupRequest.h:104
Aws::IoT::Model::AddThingToBillingGroupRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::AddThingToBillingGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AddThingToBillingGroupRequest.h:30
Aws::IoT::Model::AddThingToBillingGroupRequest::WithThingName
AddThingToBillingGroupRequest & WithThingName(Aws::String &&value)
Definition: AddThingToBillingGroupRequest.h:150
Aws::IoT::Model::AddThingToBillingGroupRequest::SetThingName
void SetThingName(Aws::String &&value)
Definition: AddThingToBillingGroupRequest.h:135
Aws::IoT::Model::AddThingToBillingGroupRequest::WithThingArn
AddThingToBillingGroupRequest & WithThingArn(const Aws::String &value)
Definition: AddThingToBillingGroupRequest.h:186
Aws::IoT::Model::AddThingToBillingGroupRequest::WithThingArn
AddThingToBillingGroupRequest & WithThingArn(Aws::String &&value)
Definition: AddThingToBillingGroupRequest.h:191
Aws::IoT::Model::AddThingToBillingGroupRequest::AddThingToBillingGroupRequest
AddThingToBillingGroupRequest()
Aws::IoT::Model::AddThingToBillingGroupRequest::GetBillingGroupArn
const Aws::String & GetBillingGroupArn() const
Definition: AddThingToBillingGroupRequest.h:79
Aws::IoT::Model::AddThingToBillingGroupRequest::WithThingName
AddThingToBillingGroupRequest & WithThingName(const Aws::String &value)
Definition: AddThingToBillingGroupRequest.h:145
Aws::IoT::Model::AddThingToBillingGroupRequest::SetThingName
void SetThingName(const char *value)
Definition: AddThingToBillingGroupRequest.h:140
Aws::IoT::Model::AddThingToBillingGroupRequest::WithThingName
AddThingToBillingGroupRequest & WithThingName(const char *value)
Definition: AddThingToBillingGroupRequest.h:155
Aws::IoT::Model::AddThingToBillingGroupRequest::SetThingArn
void SetThingArn(const Aws::String &value)
Definition: AddThingToBillingGroupRequest.h:171
AWSString.h
Aws::IoT::Model::AddThingToBillingGroupRequest::GetThingArn
const Aws::String & GetThingArn() const
Definition: AddThingToBillingGroupRequest.h:161
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::AddThingToBillingGroupRequest::SetBillingGroupName
void SetBillingGroupName(const Aws::String &value)
Definition: AddThingToBillingGroupRequest.h:48
Aws::IoT::Model::AddThingToBillingGroupRequest::ThingArnHasBeenSet
bool ThingArnHasBeenSet() const
Definition: AddThingToBillingGroupRequest.h:166
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::AddThingToBillingGroupRequest::ThingNameHasBeenSet
bool ThingNameHasBeenSet() const
Definition: AddThingToBillingGroupRequest.h:125
Aws::IoT::Model::AddThingToBillingGroupRequest::GetThingName
const Aws::String & GetThingName() const
Definition: AddThingToBillingGroupRequest.h:120
Aws::IoT::Model::AddThingToBillingGroupRequest::SetBillingGroupArn
void SetBillingGroupArn(const Aws::String &value)
Definition: AddThingToBillingGroupRequest.h:89
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::AddThingToBillingGroupRequest::BillingGroupArnHasBeenSet
bool BillingGroupArnHasBeenSet() const
Definition: AddThingToBillingGroupRequest.h:84
IoTRequest.h
Aws::IoT::Model::AddThingToBillingGroupRequest::SetBillingGroupArn
void SetBillingGroupArn(const char *value)
Definition: AddThingToBillingGroupRequest.h:99
Aws::IoT::Model::AddThingToBillingGroupRequest::SetThingArn
void SetThingArn(const char *value)
Definition: AddThingToBillingGroupRequest.h:181
Aws::IoT::Model::AddThingToBillingGroupRequest::SetThingName
void SetThingName(const Aws::String &value)
Definition: AddThingToBillingGroupRequest.h:130
IoT_EXPORTS.h
Aws::IoT::Model::AddThingToBillingGroupRequest::SetBillingGroupName
void SetBillingGroupName(const char *value)
Definition: AddThingToBillingGroupRequest.h:58