AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
40
41
43
46 inline const Aws::String& GetSigningRegion() const { return m_signingRegion; }
47 inline bool SigningRegionHasBeenSet() const { return m_signingRegionHasBeenSet; }
48 template<typename SigningRegionT = Aws::String>
49 void SetSigningRegion(SigningRegionT&& value) { m_signingRegionHasBeenSet = true; m_signingRegion = std::forward<SigningRegionT>(value); }
50 template<typename SigningRegionT = Aws::String>
51 SigV4Authorization& WithSigningRegion(SigningRegionT&& value) { SetSigningRegion(std::forward<SigningRegionT>(value)); return *this;}
53
55
58 inline const Aws::String& GetServiceName() const { return m_serviceName; }
59 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
60 template<typename ServiceNameT = Aws::String>
61 void SetServiceName(ServiceNameT&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::forward<ServiceNameT>(value); }
62 template<typename ServiceNameT = Aws::String>
63 SigV4Authorization& WithServiceName(ServiceNameT&& value) { SetServiceName(std::forward<ServiceNameT>(value)); return *this;}
65
67
70 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
71 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
72 template<typename RoleArnT = Aws::String>
73 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
74 template<typename RoleArnT = Aws::String>
75 SigV4Authorization& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
77 private:
78
79 Aws::String m_signingRegion;
80 bool m_signingRegionHasBeenSet = false;
81
82 Aws::String m_serviceName;
83 bool m_serviceNameHasBeenSet = false;
84
85 Aws::String m_roleArn;
86 bool m_roleArnHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace IoT
91} // namespace Aws
const Aws::String & GetSigningRegion() const
AWS_IOT_API SigV4Authorization & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSigningRegion(SigningRegionT &&value)
SigV4Authorization & WithServiceName(ServiceNameT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRoleArn() const
void SetServiceName(ServiceNameT &&value)
AWS_IOT_API SigV4Authorization()=default
AWS_IOT_API SigV4Authorization(Aws::Utils::Json::JsonView jsonValue)
SigV4Authorization & WithRoleArn(RoleArnT &&value)
SigV4Authorization & WithSigningRegion(SigningRegionT &&value)
const Aws::String & GetServiceName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue