AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
ChapInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/storagegateway/StorageGateway_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace StorageGateway {
20namespace Model {
21
29class ChapInfo {
30 public:
31 AWS_STORAGEGATEWAY_API ChapInfo() = default;
32 AWS_STORAGEGATEWAY_API ChapInfo(Aws::Utils::Json::JsonView jsonValue);
33 AWS_STORAGEGATEWAY_API ChapInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetTargetARN() const { return m_targetARN; }
42 inline bool TargetARNHasBeenSet() const { return m_targetARNHasBeenSet; }
43 template <typename TargetARNT = Aws::String>
44 void SetTargetARN(TargetARNT&& value) {
45 m_targetARNHasBeenSet = true;
46 m_targetARN = std::forward<TargetARNT>(value);
47 }
48 template <typename TargetARNT = Aws::String>
49 ChapInfo& WithTargetARN(TargetARNT&& value) {
50 SetTargetARN(std::forward<TargetARNT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetSecretToAuthenticateInitiator() const { return m_secretToAuthenticateInitiator; }
61 inline bool SecretToAuthenticateInitiatorHasBeenSet() const { return m_secretToAuthenticateInitiatorHasBeenSet; }
62 template <typename SecretToAuthenticateInitiatorT = Aws::String>
63 void SetSecretToAuthenticateInitiator(SecretToAuthenticateInitiatorT&& value) {
64 m_secretToAuthenticateInitiatorHasBeenSet = true;
65 m_secretToAuthenticateInitiator = std::forward<SecretToAuthenticateInitiatorT>(value);
66 }
67 template <typename SecretToAuthenticateInitiatorT = Aws::String>
68 ChapInfo& WithSecretToAuthenticateInitiator(SecretToAuthenticateInitiatorT&& value) {
69 SetSecretToAuthenticateInitiator(std::forward<SecretToAuthenticateInitiatorT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetInitiatorName() const { return m_initiatorName; }
79 inline bool InitiatorNameHasBeenSet() const { return m_initiatorNameHasBeenSet; }
80 template <typename InitiatorNameT = Aws::String>
81 void SetInitiatorName(InitiatorNameT&& value) {
82 m_initiatorNameHasBeenSet = true;
83 m_initiatorName = std::forward<InitiatorNameT>(value);
84 }
85 template <typename InitiatorNameT = Aws::String>
86 ChapInfo& WithInitiatorName(InitiatorNameT&& value) {
87 SetInitiatorName(std::forward<InitiatorNameT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetSecretToAuthenticateTarget() const { return m_secretToAuthenticateTarget; }
98 inline bool SecretToAuthenticateTargetHasBeenSet() const { return m_secretToAuthenticateTargetHasBeenSet; }
99 template <typename SecretToAuthenticateTargetT = Aws::String>
100 void SetSecretToAuthenticateTarget(SecretToAuthenticateTargetT&& value) {
101 m_secretToAuthenticateTargetHasBeenSet = true;
102 m_secretToAuthenticateTarget = std::forward<SecretToAuthenticateTargetT>(value);
103 }
104 template <typename SecretToAuthenticateTargetT = Aws::String>
105 ChapInfo& WithSecretToAuthenticateTarget(SecretToAuthenticateTargetT&& value) {
106 SetSecretToAuthenticateTarget(std::forward<SecretToAuthenticateTargetT>(value));
107 return *this;
108 }
110 private:
111 Aws::String m_targetARN;
112
113 Aws::String m_secretToAuthenticateInitiator;
114
115 Aws::String m_initiatorName;
116
117 Aws::String m_secretToAuthenticateTarget;
118 bool m_targetARNHasBeenSet = false;
119 bool m_secretToAuthenticateInitiatorHasBeenSet = false;
120 bool m_initiatorNameHasBeenSet = false;
121 bool m_secretToAuthenticateTargetHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace StorageGateway
126} // namespace Aws
ChapInfo & WithSecretToAuthenticateInitiator(SecretToAuthenticateInitiatorT &&value)
Definition ChapInfo.h:68
const Aws::String & GetSecretToAuthenticateTarget() const
Definition ChapInfo.h:97
AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSecretToAuthenticateTarget(SecretToAuthenticateTargetT &&value)
Definition ChapInfo.h:100
ChapInfo & WithSecretToAuthenticateTarget(SecretToAuthenticateTargetT &&value)
Definition ChapInfo.h:105
ChapInfo & WithTargetARN(TargetARNT &&value)
Definition ChapInfo.h:49
AWS_STORAGEGATEWAY_API ChapInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSecretToAuthenticateInitiator(SecretToAuthenticateInitiatorT &&value)
Definition ChapInfo.h:63
void SetInitiatorName(InitiatorNameT &&value)
Definition ChapInfo.h:81
bool SecretToAuthenticateInitiatorHasBeenSet() const
Definition ChapInfo.h:61
const Aws::String & GetSecretToAuthenticateInitiator() const
Definition ChapInfo.h:60
void SetTargetARN(TargetARNT &&value)
Definition ChapInfo.h:44
ChapInfo & WithInitiatorName(InitiatorNameT &&value)
Definition ChapInfo.h:86
AWS_STORAGEGATEWAY_API ChapInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_STORAGEGATEWAY_API ChapInfo()=default
const Aws::String & GetInitiatorName() const
Definition ChapInfo.h:78
bool SecretToAuthenticateTargetHasBeenSet() const
Definition ChapInfo.h:98
const Aws::String & GetTargetARN() const
Definition ChapInfo.h:41
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue