AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
UpdateChapCredentialsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/storagegateway/StorageGatewayRequest.h>
9#include <aws/storagegateway/StorageGateway_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace StorageGateway {
15namespace Model {
16
28 public:
29 AWS_STORAGEGATEWAY_API UpdateChapCredentialsRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdateChapCredentials"; }
36
37 AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override;
38
39 AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
42
47 inline const Aws::String& GetTargetARN() const { return m_targetARN; }
48 inline bool TargetARNHasBeenSet() const { return m_targetARNHasBeenSet; }
49 template <typename TargetARNT = Aws::String>
50 void SetTargetARN(TargetARNT&& value) {
51 m_targetARNHasBeenSet = true;
52 m_targetARN = std::forward<TargetARNT>(value);
53 }
54 template <typename TargetARNT = Aws::String>
56 SetTargetARN(std::forward<TargetARNT>(value));
57 return *this;
58 }
60
62
67 inline const Aws::String& GetSecretToAuthenticateInitiator() const { return m_secretToAuthenticateInitiator; }
68 inline bool SecretToAuthenticateInitiatorHasBeenSet() const { return m_secretToAuthenticateInitiatorHasBeenSet; }
69 template <typename SecretToAuthenticateInitiatorT = Aws::String>
70 void SetSecretToAuthenticateInitiator(SecretToAuthenticateInitiatorT&& value) {
71 m_secretToAuthenticateInitiatorHasBeenSet = true;
72 m_secretToAuthenticateInitiator = std::forward<SecretToAuthenticateInitiatorT>(value);
73 }
74 template <typename SecretToAuthenticateInitiatorT = Aws::String>
75 UpdateChapCredentialsRequest& WithSecretToAuthenticateInitiator(SecretToAuthenticateInitiatorT&& value) {
76 SetSecretToAuthenticateInitiator(std::forward<SecretToAuthenticateInitiatorT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetInitiatorName() const { return m_initiatorName; }
86 inline bool InitiatorNameHasBeenSet() const { return m_initiatorNameHasBeenSet; }
87 template <typename InitiatorNameT = Aws::String>
88 void SetInitiatorName(InitiatorNameT&& value) {
89 m_initiatorNameHasBeenSet = true;
90 m_initiatorName = std::forward<InitiatorNameT>(value);
91 }
92 template <typename InitiatorNameT = Aws::String>
94 SetInitiatorName(std::forward<InitiatorNameT>(value));
95 return *this;
96 }
98
100
106 inline const Aws::String& GetSecretToAuthenticateTarget() const { return m_secretToAuthenticateTarget; }
107 inline bool SecretToAuthenticateTargetHasBeenSet() const { return m_secretToAuthenticateTargetHasBeenSet; }
108 template <typename SecretToAuthenticateTargetT = Aws::String>
109 void SetSecretToAuthenticateTarget(SecretToAuthenticateTargetT&& value) {
110 m_secretToAuthenticateTargetHasBeenSet = true;
111 m_secretToAuthenticateTarget = std::forward<SecretToAuthenticateTargetT>(value);
112 }
113 template <typename SecretToAuthenticateTargetT = Aws::String>
114 UpdateChapCredentialsRequest& WithSecretToAuthenticateTarget(SecretToAuthenticateTargetT&& value) {
115 SetSecretToAuthenticateTarget(std::forward<SecretToAuthenticateTargetT>(value));
116 return *this;
117 }
119 private:
120 Aws::String m_targetARN;
121
122 Aws::String m_secretToAuthenticateInitiator;
123
124 Aws::String m_initiatorName;
125
126 Aws::String m_secretToAuthenticateTarget;
127 bool m_targetARNHasBeenSet = false;
128 bool m_secretToAuthenticateInitiatorHasBeenSet = false;
129 bool m_initiatorNameHasBeenSet = false;
130 bool m_secretToAuthenticateTargetHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace StorageGateway
135} // namespace Aws
AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateChapCredentialsRequest & WithSecretToAuthenticateTarget(SecretToAuthenticateTargetT &&value)
AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override
void SetSecretToAuthenticateInitiator(SecretToAuthenticateInitiatorT &&value)
UpdateChapCredentialsRequest & WithTargetARN(TargetARNT &&value)
UpdateChapCredentialsRequest & WithInitiatorName(InitiatorNameT &&value)
UpdateChapCredentialsRequest & WithSecretToAuthenticateInitiator(SecretToAuthenticateInitiatorT &&value)
void SetSecretToAuthenticateTarget(SecretToAuthenticateTargetT &&value)
AWS_STORAGEGATEWAY_API UpdateChapCredentialsRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String