AWS SDK for C++  1.9.132
AWS SDK for C++
SigV4Authorization.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 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetSigningRegion() const{ return m_signingRegion; }
46 
50  inline bool SigningRegionHasBeenSet() const { return m_signingRegionHasBeenSet; }
51 
55  inline void SetSigningRegion(const Aws::String& value) { m_signingRegionHasBeenSet = true; m_signingRegion = value; }
56 
60  inline void SetSigningRegion(Aws::String&& value) { m_signingRegionHasBeenSet = true; m_signingRegion = std::move(value); }
61 
65  inline void SetSigningRegion(const char* value) { m_signingRegionHasBeenSet = true; m_signingRegion.assign(value); }
66 
70  inline SigV4Authorization& WithSigningRegion(const Aws::String& value) { SetSigningRegion(value); return *this;}
71 
75  inline SigV4Authorization& WithSigningRegion(Aws::String&& value) { SetSigningRegion(std::move(value)); return *this;}
76 
80  inline SigV4Authorization& WithSigningRegion(const char* value) { SetSigningRegion(value); return *this;}
81 
82 
86  inline const Aws::String& GetServiceName() const{ return m_serviceName; }
87 
91  inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
92 
96  inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
97 
101  inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
102 
106  inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
107 
111  inline SigV4Authorization& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
112 
116  inline SigV4Authorization& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
117 
121  inline SigV4Authorization& WithServiceName(const char* value) { SetServiceName(value); return *this;}
122 
123 
127  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
128 
132  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
133 
137  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
138 
142  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
143 
147  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
148 
152  inline SigV4Authorization& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
153 
157  inline SigV4Authorization& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
158 
162  inline SigV4Authorization& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
163 
164  private:
165 
166  Aws::String m_signingRegion;
167  bool m_signingRegionHasBeenSet;
168 
169  Aws::String m_serviceName;
170  bool m_serviceNameHasBeenSet;
171 
172  Aws::String m_roleArn;
173  bool m_roleArnHasBeenSet;
174  };
175 
176 } // namespace Model
177 } // namespace IoT
178 } // namespace Aws
Aws::IoT::Model::SigV4Authorization::WithServiceName
SigV4Authorization & WithServiceName(Aws::String &&value)
Definition: SigV4Authorization.h:116
Aws::IoT::Model::SigV4Authorization::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::SigV4Authorization::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: SigV4Authorization.h:142
Aws::IoT::Model::SigV4Authorization::SigV4Authorization
SigV4Authorization()
Aws::IoT::Model::SigV4Authorization::GetServiceName
const Aws::String & GetServiceName() const
Definition: SigV4Authorization.h:86
Aws::IoT::Model::SigV4Authorization::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: SigV4Authorization.h:127
Aws::IoT::Model::SigV4Authorization::SigningRegionHasBeenSet
bool SigningRegionHasBeenSet() const
Definition: SigV4Authorization.h:50
Aws::IoT::Model::SigV4Authorization::SetSigningRegion
void SetSigningRegion(const char *value)
Definition: SigV4Authorization.h:65
Aws::IoT::Model::SigV4Authorization::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: SigV4Authorization.h:137
Aws::IoT::Model::SigV4Authorization::WithSigningRegion
SigV4Authorization & WithSigningRegion(const char *value)
Definition: SigV4Authorization.h:80
Aws::IoT::Model::SigV4Authorization::operator=
SigV4Authorization & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::SigV4Authorization::SetServiceName
void SetServiceName(const char *value)
Definition: SigV4Authorization.h:106
Aws::IoT::Model::SigV4Authorization::WithRoleArn
SigV4Authorization & WithRoleArn(const char *value)
Definition: SigV4Authorization.h:162
Aws::IoT::Model::SigV4Authorization::SetServiceName
void SetServiceName(Aws::String &&value)
Definition: SigV4Authorization.h:101
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::IoT::Model::SigV4Authorization::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: SigV4Authorization.h:132
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::SigV4Authorization
Definition: SigV4Authorization.h:34
Aws::IoT::Model::SigV4Authorization::SetSigningRegion
void SetSigningRegion(const Aws::String &value)
Definition: SigV4Authorization.h:55
Aws::IoT::Model::SigV4Authorization::WithRoleArn
SigV4Authorization & WithRoleArn(const Aws::String &value)
Definition: SigV4Authorization.h:152
Aws::IoT::Model::SigV4Authorization::WithServiceName
SigV4Authorization & WithServiceName(const char *value)
Definition: SigV4Authorization.h:121
Aws::IoT::Model::SigV4Authorization::WithServiceName
SigV4Authorization & WithServiceName(const Aws::String &value)
Definition: SigV4Authorization.h:111
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::SigV4Authorization::SetRoleArn
void SetRoleArn(const char *value)
Definition: SigV4Authorization.h:147
Aws::IoT::Model::SigV4Authorization::SetSigningRegion
void SetSigningRegion(Aws::String &&value)
Definition: SigV4Authorization.h:60
Aws::IoT::Model::SigV4Authorization::WithRoleArn
SigV4Authorization & WithRoleArn(Aws::String &&value)
Definition: SigV4Authorization.h:157
Aws::IoT::Model::SigV4Authorization::WithSigningRegion
SigV4Authorization & WithSigningRegion(const Aws::String &value)
Definition: SigV4Authorization.h:70
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::SigV4Authorization::WithSigningRegion
SigV4Authorization & WithSigningRegion(Aws::String &&value)
Definition: SigV4Authorization.h:75
Aws::IoT::Model::SigV4Authorization::SigV4Authorization
SigV4Authorization(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::SigV4Authorization::SetServiceName
void SetServiceName(const Aws::String &value)
Definition: SigV4Authorization.h:96
IoT_EXPORTS.h
Aws::IoT::Model::SigV4Authorization::ServiceNameHasBeenSet
bool ServiceNameHasBeenSet() const
Definition: SigV4Authorization.h:91
Aws::IoT::Model::SigV4Authorization::GetSigningRegion
const Aws::String & GetSigningRegion() const
Definition: SigV4Authorization.h:45