AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SigV4Authorization.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoT
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_IOT_API SigV4Authorization();
40
41
43
46 inline const Aws::String& GetSigningRegion() const{ return m_signingRegion; }
47 inline bool SigningRegionHasBeenSet() const { return m_signingRegionHasBeenSet; }
48 inline void SetSigningRegion(const Aws::String& value) { m_signingRegionHasBeenSet = true; m_signingRegion = value; }
49 inline void SetSigningRegion(Aws::String&& value) { m_signingRegionHasBeenSet = true; m_signingRegion = std::move(value); }
50 inline void SetSigningRegion(const char* value) { m_signingRegionHasBeenSet = true; m_signingRegion.assign(value); }
51 inline SigV4Authorization& WithSigningRegion(const Aws::String& value) { SetSigningRegion(value); return *this;}
52 inline SigV4Authorization& WithSigningRegion(Aws::String&& value) { SetSigningRegion(std::move(value)); return *this;}
53 inline SigV4Authorization& WithSigningRegion(const char* value) { SetSigningRegion(value); return *this;}
55
57
60 inline const Aws::String& GetServiceName() const{ return m_serviceName; }
61 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
62 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
63 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
64 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
65 inline SigV4Authorization& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
66 inline SigV4Authorization& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
67 inline SigV4Authorization& WithServiceName(const char* value) { SetServiceName(value); return *this;}
69
71
74 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
75 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
76 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
77 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
78 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
79 inline SigV4Authorization& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
80 inline SigV4Authorization& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
81 inline SigV4Authorization& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
83 private:
84
85 Aws::String m_signingRegion;
86 bool m_signingRegionHasBeenSet = false;
87
88 Aws::String m_serviceName;
89 bool m_serviceNameHasBeenSet = false;
90
91 Aws::String m_roleArn;
92 bool m_roleArnHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace IoT
97} // namespace Aws
const Aws::String & GetSigningRegion() const
void SetRoleArn(const Aws::String &value)
AWS_IOT_API SigV4Authorization & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSigningRegion(const Aws::String &value)
SigV4Authorization & WithServiceName(const char *value)
SigV4Authorization & WithSigningRegion(const Aws::String &value)
void SetRoleArn(Aws::String &&value)
SigV4Authorization & WithRoleArn(Aws::String &&value)
void SetServiceName(Aws::String &&value)
void SetSigningRegion(Aws::String &&value)
SigV4Authorization & WithSigningRegion(const char *value)
SigV4Authorization & WithSigningRegion(Aws::String &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRoleArn() const
SigV4Authorization & WithServiceName(const Aws::String &value)
SigV4Authorization & WithRoleArn(const char *value)
SigV4Authorization & WithRoleArn(const Aws::String &value)
void SetSigningRegion(const char *value)
void SetServiceName(const Aws::String &value)
SigV4Authorization & WithServiceName(Aws::String &&value)
AWS_IOT_API SigV4Authorization(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetServiceName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue