AWS SDK for C++  1.9.132
AWS SDK for C++
UpdateBillingGroupRequest.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 "UpdateBillingGroup"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
39  inline const Aws::String& GetBillingGroupName() const{ return m_billingGroupName; }
40 
44  inline bool BillingGroupNameHasBeenSet() const { return m_billingGroupNameHasBeenSet; }
45 
49  inline void SetBillingGroupName(const Aws::String& value) { m_billingGroupNameHasBeenSet = true; m_billingGroupName = value; }
50 
54  inline void SetBillingGroupName(Aws::String&& value) { m_billingGroupNameHasBeenSet = true; m_billingGroupName = std::move(value); }
55 
59  inline void SetBillingGroupName(const char* value) { m_billingGroupNameHasBeenSet = true; m_billingGroupName.assign(value); }
60 
64  inline UpdateBillingGroupRequest& WithBillingGroupName(const Aws::String& value) { SetBillingGroupName(value); return *this;}
65 
69  inline UpdateBillingGroupRequest& WithBillingGroupName(Aws::String&& value) { SetBillingGroupName(std::move(value)); return *this;}
70 
74  inline UpdateBillingGroupRequest& WithBillingGroupName(const char* value) { SetBillingGroupName(value); return *this;}
75 
76 
80  inline const BillingGroupProperties& GetBillingGroupProperties() const{ return m_billingGroupProperties; }
81 
85  inline bool BillingGroupPropertiesHasBeenSet() const { return m_billingGroupPropertiesHasBeenSet; }
86 
90  inline void SetBillingGroupProperties(const BillingGroupProperties& value) { m_billingGroupPropertiesHasBeenSet = true; m_billingGroupProperties = value; }
91 
95  inline void SetBillingGroupProperties(BillingGroupProperties&& value) { m_billingGroupPropertiesHasBeenSet = true; m_billingGroupProperties = std::move(value); }
96 
100  inline UpdateBillingGroupRequest& WithBillingGroupProperties(const BillingGroupProperties& value) { SetBillingGroupProperties(value); return *this;}
101 
105  inline UpdateBillingGroupRequest& WithBillingGroupProperties(BillingGroupProperties&& value) { SetBillingGroupProperties(std::move(value)); return *this;}
106 
107 
114  inline long long GetExpectedVersion() const{ return m_expectedVersion; }
115 
122  inline bool ExpectedVersionHasBeenSet() const { return m_expectedVersionHasBeenSet; }
123 
130  inline void SetExpectedVersion(long long value) { m_expectedVersionHasBeenSet = true; m_expectedVersion = value; }
131 
138  inline UpdateBillingGroupRequest& WithExpectedVersion(long long value) { SetExpectedVersion(value); return *this;}
139 
140  private:
141 
142  Aws::String m_billingGroupName;
143  bool m_billingGroupNameHasBeenSet;
144 
145  BillingGroupProperties m_billingGroupProperties;
146  bool m_billingGroupPropertiesHasBeenSet;
147 
148  long long m_expectedVersion;
149  bool m_expectedVersionHasBeenSet;
150  };
151 
152 } // namespace Model
153 } // namespace IoT
154 } // namespace Aws
Aws::IoT::Model::UpdateBillingGroupRequest::GetExpectedVersion
long long GetExpectedVersion() const
Definition: UpdateBillingGroupRequest.h:114
Aws::IoT::Model::UpdateBillingGroupRequest
Definition: UpdateBillingGroupRequest.h:23
Aws::IoT::Model::UpdateBillingGroupRequest::SetExpectedVersion
void SetExpectedVersion(long long value)
Definition: UpdateBillingGroupRequest.h:130
Aws::IoT::Model::UpdateBillingGroupRequest::SetBillingGroupName
void SetBillingGroupName(const char *value)
Definition: UpdateBillingGroupRequest.h:59
Aws::IoT::Model::UpdateBillingGroupRequest::BillingGroupNameHasBeenSet
bool BillingGroupNameHasBeenSet() const
Definition: UpdateBillingGroupRequest.h:44
Aws::IoT::Model::UpdateBillingGroupRequest::BillingGroupPropertiesHasBeenSet
bool BillingGroupPropertiesHasBeenSet() const
Definition: UpdateBillingGroupRequest.h:85
Aws::IoT::Model::UpdateBillingGroupRequest::WithBillingGroupName
UpdateBillingGroupRequest & WithBillingGroupName(const char *value)
Definition: UpdateBillingGroupRequest.h:74
BillingGroupProperties.h
Aws::IoT::Model::UpdateBillingGroupRequest::GetBillingGroupName
const Aws::String & GetBillingGroupName() const
Definition: UpdateBillingGroupRequest.h:39
Aws::IoT::Model::UpdateBillingGroupRequest::WithExpectedVersion
UpdateBillingGroupRequest & WithExpectedVersion(long long value)
Definition: UpdateBillingGroupRequest.h:138
Aws::IoT::Model::UpdateBillingGroupRequest::WithBillingGroupProperties
UpdateBillingGroupRequest & WithBillingGroupProperties(BillingGroupProperties &&value)
Definition: UpdateBillingGroupRequest.h:105
Aws::IoT::Model::UpdateBillingGroupRequest::WithBillingGroupName
UpdateBillingGroupRequest & WithBillingGroupName(Aws::String &&value)
Definition: UpdateBillingGroupRequest.h:69
Aws::IoT::Model::UpdateBillingGroupRequest::WithBillingGroupName
UpdateBillingGroupRequest & WithBillingGroupName(const Aws::String &value)
Definition: UpdateBillingGroupRequest.h:64
Aws::IoT::Model::UpdateBillingGroupRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::BillingGroupProperties
Definition: BillingGroupProperties.h:32
Aws::IoT::Model::UpdateBillingGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateBillingGroupRequest.h:31
Aws::IoT::Model::UpdateBillingGroupRequest::WithBillingGroupProperties
UpdateBillingGroupRequest & WithBillingGroupProperties(const BillingGroupProperties &value)
Definition: UpdateBillingGroupRequest.h:100
Aws::IoT::Model::UpdateBillingGroupRequest::SetBillingGroupName
void SetBillingGroupName(Aws::String &&value)
Definition: UpdateBillingGroupRequest.h:54
Aws::IoT::Model::UpdateBillingGroupRequest::GetBillingGroupProperties
const BillingGroupProperties & GetBillingGroupProperties() const
Definition: UpdateBillingGroupRequest.h:80
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::UpdateBillingGroupRequest::ExpectedVersionHasBeenSet
bool ExpectedVersionHasBeenSet() const
Definition: UpdateBillingGroupRequest.h:122
Aws::IoT::Model::UpdateBillingGroupRequest::UpdateBillingGroupRequest
UpdateBillingGroupRequest()
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::UpdateBillingGroupRequest::SetBillingGroupProperties
void SetBillingGroupProperties(const BillingGroupProperties &value)
Definition: UpdateBillingGroupRequest.h:90
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
IoTRequest.h
Aws::IoT::Model::UpdateBillingGroupRequest::SetBillingGroupName
void SetBillingGroupName(const Aws::String &value)
Definition: UpdateBillingGroupRequest.h:49
Aws::IoT::Model::UpdateBillingGroupRequest::SetBillingGroupProperties
void SetBillingGroupProperties(BillingGroupProperties &&value)
Definition: UpdateBillingGroupRequest.h:95
IoT_EXPORTS.h