AWS SDK for C++  1.9.123
AWS SDK for C++
ProvisioningHook.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace IoT
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
45  inline const Aws::String& GetPayloadVersion() const{ return m_payloadVersion; }
46 
51  inline bool PayloadVersionHasBeenSet() const { return m_payloadVersionHasBeenSet; }
52 
57  inline void SetPayloadVersion(const Aws::String& value) { m_payloadVersionHasBeenSet = true; m_payloadVersion = value; }
58 
63  inline void SetPayloadVersion(Aws::String&& value) { m_payloadVersionHasBeenSet = true; m_payloadVersion = std::move(value); }
64 
69  inline void SetPayloadVersion(const char* value) { m_payloadVersionHasBeenSet = true; m_payloadVersion.assign(value); }
70 
75  inline ProvisioningHook& WithPayloadVersion(const Aws::String& value) { SetPayloadVersion(value); return *this;}
76 
81  inline ProvisioningHook& WithPayloadVersion(Aws::String&& value) { SetPayloadVersion(std::move(value)); return *this;}
82 
87  inline ProvisioningHook& WithPayloadVersion(const char* value) { SetPayloadVersion(value); return *this;}
88 
89 
94  inline const Aws::String& GetTargetArn() const{ return m_targetArn; }
95 
100  inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
101 
106  inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
107 
112  inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); }
113 
118  inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); }
119 
124  inline ProvisioningHook& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
125 
130  inline ProvisioningHook& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;}
131 
136  inline ProvisioningHook& WithTargetArn(const char* value) { SetTargetArn(value); return *this;}
137 
138  private:
139 
140  Aws::String m_payloadVersion;
141  bool m_payloadVersionHasBeenSet;
142 
143  Aws::String m_targetArn;
144  bool m_targetArnHasBeenSet;
145  };
146 
147 } // namespace Model
148 } // namespace IoT
149 } // namespace Aws
Aws::IoT::Model::ProvisioningHook::SetTargetArn
void SetTargetArn(const char *value)
Definition: ProvisioningHook.h:118
Aws::IoT::Model::ProvisioningHook::ProvisioningHook
ProvisioningHook()
Aws::IoT::Model::ProvisioningHook::SetPayloadVersion
void SetPayloadVersion(const char *value)
Definition: ProvisioningHook.h:69
Aws::IoT::Model::ProvisioningHook::WithTargetArn
ProvisioningHook & WithTargetArn(Aws::String &&value)
Definition: ProvisioningHook.h:130
Aws::IoT::Model::ProvisioningHook::WithTargetArn
ProvisioningHook & WithTargetArn(const Aws::String &value)
Definition: ProvisioningHook.h:124
Aws::IoT::Model::ProvisioningHook::ProvisioningHook
ProvisioningHook(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::ProvisioningHook::WithPayloadVersion
ProvisioningHook & WithPayloadVersion(const char *value)
Definition: ProvisioningHook.h:87
Aws::IoT::Model::ProvisioningHook::WithPayloadVersion
ProvisioningHook & WithPayloadVersion(const Aws::String &value)
Definition: ProvisioningHook.h:75
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::ProvisioningHook::operator=
ProvisioningHook & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::ProvisioningHook::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::ProvisioningHook::SetPayloadVersion
void SetPayloadVersion(Aws::String &&value)
Definition: ProvisioningHook.h:63
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ProvisioningHook::TargetArnHasBeenSet
bool TargetArnHasBeenSet() const
Definition: ProvisioningHook.h:100
Aws::IoT::Model::ProvisioningHook::PayloadVersionHasBeenSet
bool PayloadVersionHasBeenSet() const
Definition: ProvisioningHook.h:51
Aws::IoT::Model::ProvisioningHook::GetPayloadVersion
const Aws::String & GetPayloadVersion() const
Definition: ProvisioningHook.h:45
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::ProvisioningHook::WithTargetArn
ProvisioningHook & WithTargetArn(const char *value)
Definition: ProvisioningHook.h:136
Aws::IoT::Model::ProvisioningHook
Definition: ProvisioningHook.h:33
Aws::IoT::Model::ProvisioningHook::SetPayloadVersion
void SetPayloadVersion(const Aws::String &value)
Definition: ProvisioningHook.h:57
Aws::IoT::Model::ProvisioningHook::WithPayloadVersion
ProvisioningHook & WithPayloadVersion(Aws::String &&value)
Definition: ProvisioningHook.h:81
Aws::IoT::Model::ProvisioningHook::SetTargetArn
void SetTargetArn(Aws::String &&value)
Definition: ProvisioningHook.h:112
Aws::IoT::Model::ProvisioningHook::SetTargetArn
void SetTargetArn(const Aws::String &value)
Definition: ProvisioningHook.h:106
IoT_EXPORTS.h
Aws::IoT::Model::ProvisioningHook::GetTargetArn
const Aws::String & GetTargetArn() const
Definition: ProvisioningHook.h:94