AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
Authentication.h
1
6#pragma once
7#include <aws/cloudextensions/CloudExtensions_EXPORTS.h>
8#include <aws/cloudextensions/model/ExtensionKey.h>
9#include <aws/cloudextensions/model/RuntimeCredentials.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CloudExtensions {
21namespace Model {
22
30 public:
31 AWS_CLOUDEXTENSIONS_API Authentication() = default;
32 AWS_CLOUDEXTENSIONS_API Authentication(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDEXTENSIONS_API Authentication& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDEXTENSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline bool GetNone() const { return m_none; }
42 inline bool NoneHasBeenSet() const { return m_noneHasBeenSet; }
43 inline void SetNone(bool value) {
44 m_noneHasBeenSet = true;
45 m_none = value;
46 }
47 inline Authentication& WithNone(bool value) {
48 SetNone(value);
49 return *this;
50 }
52
54
58 inline const RuntimeCredentials& GetRuntimeCredentials() const { return m_runtimeCredentials; }
59 inline bool RuntimeCredentialsHasBeenSet() const { return m_runtimeCredentialsHasBeenSet; }
60 template <typename RuntimeCredentialsT = RuntimeCredentials>
61 void SetRuntimeCredentials(RuntimeCredentialsT&& value) {
62 m_runtimeCredentialsHasBeenSet = true;
63 m_runtimeCredentials = std::forward<RuntimeCredentialsT>(value);
64 }
65 template <typename RuntimeCredentialsT = RuntimeCredentials>
66 Authentication& WithRuntimeCredentials(RuntimeCredentialsT&& value) {
67 SetRuntimeCredentials(std::forward<RuntimeCredentialsT>(value));
68 return *this;
69 }
71
73
76 inline const ExtensionKey& GetExtensionKey() const { return m_extensionKey; }
77 inline bool ExtensionKeyHasBeenSet() const { return m_extensionKeyHasBeenSet; }
78 template <typename ExtensionKeyT = ExtensionKey>
79 void SetExtensionKey(ExtensionKeyT&& value) {
80 m_extensionKeyHasBeenSet = true;
81 m_extensionKey = std::forward<ExtensionKeyT>(value);
82 }
83 template <typename ExtensionKeyT = ExtensionKey>
84 Authentication& WithExtensionKey(ExtensionKeyT&& value) {
85 SetExtensionKey(std::forward<ExtensionKeyT>(value));
86 return *this;
87 }
89 private:
90 bool m_none{false};
91
92 RuntimeCredentials m_runtimeCredentials;
93
94 ExtensionKey m_extensionKey;
95 bool m_noneHasBeenSet = false;
96 bool m_runtimeCredentialsHasBeenSet = false;
97 bool m_extensionKeyHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace CloudExtensions
102} // namespace Aws
Authentication & WithRuntimeCredentials(RuntimeCredentialsT &&value)
AWS_CLOUDEXTENSIONS_API Authentication()=default
AWS_CLOUDEXTENSIONS_API Authentication(Aws::Utils::Json::JsonView jsonValue)
Authentication & WithNone(bool value)
const ExtensionKey & GetExtensionKey() const
void SetRuntimeCredentials(RuntimeCredentialsT &&value)
AWS_CLOUDEXTENSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
const RuntimeCredentials & GetRuntimeCredentials() const
Authentication & WithExtensionKey(ExtensionKeyT &&value)
AWS_CLOUDEXTENSIONS_API Authentication & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetExtensionKey(ExtensionKeyT &&value)
Aws::Utils::Json::JsonValue JsonValue