AWS SDK for C++  1.9.107
AWS SDK for C++
UpdateChapCredentialsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace StorageGateway
15 {
16 namespace Model
17 {
18 
30  {
31  public:
33 
34  // Service request name is the Operation name which will send this request out,
35  // each operation should has unique request name, so that we can get operation's name from this request.
36  // Note: this is not true for response, multiple operations may have the same response name,
37  // so we can not get operation's name from response.
38  inline virtual const char* GetServiceRequestName() const override { return "UpdateChapCredentials"; }
39 
40  Aws::String SerializePayload() const override;
41 
43 
44 
50  inline const Aws::String& GetTargetARN() const{ return m_targetARN; }
51 
57  inline bool TargetARNHasBeenSet() const { return m_targetARNHasBeenSet; }
58 
64  inline void SetTargetARN(const Aws::String& value) { m_targetARNHasBeenSet = true; m_targetARN = value; }
65 
71  inline void SetTargetARN(Aws::String&& value) { m_targetARNHasBeenSet = true; m_targetARN = std::move(value); }
72 
78  inline void SetTargetARN(const char* value) { m_targetARNHasBeenSet = true; m_targetARN.assign(value); }
79 
85  inline UpdateChapCredentialsRequest& WithTargetARN(const Aws::String& value) { SetTargetARN(value); return *this;}
86 
92  inline UpdateChapCredentialsRequest& WithTargetARN(Aws::String&& value) { SetTargetARN(std::move(value)); return *this;}
93 
99  inline UpdateChapCredentialsRequest& WithTargetARN(const char* value) { SetTargetARN(value); return *this;}
100 
101 
107  inline const Aws::String& GetSecretToAuthenticateInitiator() const{ return m_secretToAuthenticateInitiator; }
108 
114  inline bool SecretToAuthenticateInitiatorHasBeenSet() const { return m_secretToAuthenticateInitiatorHasBeenSet; }
115 
121  inline void SetSecretToAuthenticateInitiator(const Aws::String& value) { m_secretToAuthenticateInitiatorHasBeenSet = true; m_secretToAuthenticateInitiator = value; }
122 
128  inline void SetSecretToAuthenticateInitiator(Aws::String&& value) { m_secretToAuthenticateInitiatorHasBeenSet = true; m_secretToAuthenticateInitiator = std::move(value); }
129 
135  inline void SetSecretToAuthenticateInitiator(const char* value) { m_secretToAuthenticateInitiatorHasBeenSet = true; m_secretToAuthenticateInitiator.assign(value); }
136 
142  inline UpdateChapCredentialsRequest& WithSecretToAuthenticateInitiator(const Aws::String& value) { SetSecretToAuthenticateInitiator(value); return *this;}
143 
149  inline UpdateChapCredentialsRequest& WithSecretToAuthenticateInitiator(Aws::String&& value) { SetSecretToAuthenticateInitiator(std::move(value)); return *this;}
150 
156  inline UpdateChapCredentialsRequest& WithSecretToAuthenticateInitiator(const char* value) { SetSecretToAuthenticateInitiator(value); return *this;}
157 
158 
162  inline const Aws::String& GetInitiatorName() const{ return m_initiatorName; }
163 
167  inline bool InitiatorNameHasBeenSet() const { return m_initiatorNameHasBeenSet; }
168 
172  inline void SetInitiatorName(const Aws::String& value) { m_initiatorNameHasBeenSet = true; m_initiatorName = value; }
173 
177  inline void SetInitiatorName(Aws::String&& value) { m_initiatorNameHasBeenSet = true; m_initiatorName = std::move(value); }
178 
182  inline void SetInitiatorName(const char* value) { m_initiatorNameHasBeenSet = true; m_initiatorName.assign(value); }
183 
187  inline UpdateChapCredentialsRequest& WithInitiatorName(const Aws::String& value) { SetInitiatorName(value); return *this;}
188 
192  inline UpdateChapCredentialsRequest& WithInitiatorName(Aws::String&& value) { SetInitiatorName(std::move(value)); return *this;}
193 
197  inline UpdateChapCredentialsRequest& WithInitiatorName(const char* value) { SetInitiatorName(value); return *this;}
198 
199 
206  inline const Aws::String& GetSecretToAuthenticateTarget() const{ return m_secretToAuthenticateTarget; }
207 
214  inline bool SecretToAuthenticateTargetHasBeenSet() const { return m_secretToAuthenticateTargetHasBeenSet; }
215 
222  inline void SetSecretToAuthenticateTarget(const Aws::String& value) { m_secretToAuthenticateTargetHasBeenSet = true; m_secretToAuthenticateTarget = value; }
223 
230  inline void SetSecretToAuthenticateTarget(Aws::String&& value) { m_secretToAuthenticateTargetHasBeenSet = true; m_secretToAuthenticateTarget = std::move(value); }
231 
238  inline void SetSecretToAuthenticateTarget(const char* value) { m_secretToAuthenticateTargetHasBeenSet = true; m_secretToAuthenticateTarget.assign(value); }
239 
246  inline UpdateChapCredentialsRequest& WithSecretToAuthenticateTarget(const Aws::String& value) { SetSecretToAuthenticateTarget(value); return *this;}
247 
254  inline UpdateChapCredentialsRequest& WithSecretToAuthenticateTarget(Aws::String&& value) { SetSecretToAuthenticateTarget(std::move(value)); return *this;}
255 
262  inline UpdateChapCredentialsRequest& WithSecretToAuthenticateTarget(const char* value) { SetSecretToAuthenticateTarget(value); return *this;}
263 
264  private:
265 
266  Aws::String m_targetARN;
267  bool m_targetARNHasBeenSet;
268 
269  Aws::String m_secretToAuthenticateInitiator;
270  bool m_secretToAuthenticateInitiatorHasBeenSet;
271 
272  Aws::String m_initiatorName;
273  bool m_initiatorNameHasBeenSet;
274 
275  Aws::String m_secretToAuthenticateTarget;
276  bool m_secretToAuthenticateTargetHasBeenSet;
277  };
278 
279 } // namespace Model
280 } // namespace StorageGateway
281 } // namespace Aws
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::SetSecretToAuthenticateTarget
void SetSecretToAuthenticateTarget(const Aws::String &value)
Definition: UpdateChapCredentialsRequest.h:222
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::WithSecretToAuthenticateInitiator
UpdateChapCredentialsRequest & WithSecretToAuthenticateInitiator(const char *value)
Definition: UpdateChapCredentialsRequest.h:156
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::SetTargetARN
void SetTargetARN(const Aws::String &value)
Definition: UpdateChapCredentialsRequest.h:64
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::SetSecretToAuthenticateInitiator
void SetSecretToAuthenticateInitiator(Aws::String &&value)
Definition: UpdateChapCredentialsRequest.h:128
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::GetSecretToAuthenticateInitiator
const Aws::String & GetSecretToAuthenticateInitiator() const
Definition: UpdateChapCredentialsRequest.h:107
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::WithTargetARN
UpdateChapCredentialsRequest & WithTargetARN(Aws::String &&value)
Definition: UpdateChapCredentialsRequest.h:92
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::SetSecretToAuthenticateTarget
void SetSecretToAuthenticateTarget(Aws::String &&value)
Definition: UpdateChapCredentialsRequest.h:230
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::WithTargetARN
UpdateChapCredentialsRequest & WithTargetARN(const char *value)
Definition: UpdateChapCredentialsRequest.h:99
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::GetSecretToAuthenticateTarget
const Aws::String & GetSecretToAuthenticateTarget() const
Definition: UpdateChapCredentialsRequest.h:206
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::TargetARNHasBeenSet
bool TargetARNHasBeenSet() const
Definition: UpdateChapCredentialsRequest.h:57
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::SetTargetARN
void SetTargetARN(const char *value)
Definition: UpdateChapCredentialsRequest.h:78
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::WithInitiatorName
UpdateChapCredentialsRequest & WithInitiatorName(Aws::String &&value)
Definition: UpdateChapCredentialsRequest.h:192
Aws::StorageGateway::StorageGatewayRequest
Definition: StorageGatewayRequest.h:17
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::GetTargetARN
const Aws::String & GetTargetARN() const
Definition: UpdateChapCredentialsRequest.h:50
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::WithInitiatorName
UpdateChapCredentialsRequest & WithInitiatorName(const Aws::String &value)
Definition: UpdateChapCredentialsRequest.h:187
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::GetInitiatorName
const Aws::String & GetInitiatorName() const
Definition: UpdateChapCredentialsRequest.h:162
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::SecretToAuthenticateTargetHasBeenSet
bool SecretToAuthenticateTargetHasBeenSet() const
Definition: UpdateChapCredentialsRequest.h:214
AWSString.h
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::InitiatorNameHasBeenSet
bool InitiatorNameHasBeenSet() const
Definition: UpdateChapCredentialsRequest.h:167
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::WithTargetARN
UpdateChapCredentialsRequest & WithTargetARN(const Aws::String &value)
Definition: UpdateChapCredentialsRequest.h:85
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::SecretToAuthenticateInitiatorHasBeenSet
bool SecretToAuthenticateInitiatorHasBeenSet() const
Definition: UpdateChapCredentialsRequest.h:114
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::WithSecretToAuthenticateInitiator
UpdateChapCredentialsRequest & WithSecretToAuthenticateInitiator(const Aws::String &value)
Definition: UpdateChapCredentialsRequest.h:142
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::SetInitiatorName
void SetInitiatorName(Aws::String &&value)
Definition: UpdateChapCredentialsRequest.h:177
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::UpdateChapCredentialsRequest
UpdateChapCredentialsRequest()
StorageGatewayRequest.h
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::WithSecretToAuthenticateTarget
UpdateChapCredentialsRequest & WithSecretToAuthenticateTarget(const Aws::String &value)
Definition: UpdateChapCredentialsRequest.h:246
Aws::StorageGateway::Model::UpdateChapCredentialsRequest
Definition: UpdateChapCredentialsRequest.h:30
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::WithSecretToAuthenticateInitiator
UpdateChapCredentialsRequest & WithSecretToAuthenticateInitiator(Aws::String &&value)
Definition: UpdateChapCredentialsRequest.h:149
Aws
Definition: AccessManagementClient.h:15
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::SetSecretToAuthenticateInitiator
void SetSecretToAuthenticateInitiator(const Aws::String &value)
Definition: UpdateChapCredentialsRequest.h:121
StorageGateway_EXPORTS.h
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::WithInitiatorName
UpdateChapCredentialsRequest & WithInitiatorName(const char *value)
Definition: UpdateChapCredentialsRequest.h:197
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::SetSecretToAuthenticateTarget
void SetSecretToAuthenticateTarget(const char *value)
Definition: UpdateChapCredentialsRequest.h:238
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::SetTargetARN
void SetTargetARN(Aws::String &&value)
Definition: UpdateChapCredentialsRequest.h:71
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::WithSecretToAuthenticateTarget
UpdateChapCredentialsRequest & WithSecretToAuthenticateTarget(Aws::String &&value)
Definition: UpdateChapCredentialsRequest.h:254
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::SetSecretToAuthenticateInitiator
void SetSecretToAuthenticateInitiator(const char *value)
Definition: UpdateChapCredentialsRequest.h:135
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateChapCredentialsRequest.h:38
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::SetInitiatorName
void SetInitiatorName(const Aws::String &value)
Definition: UpdateChapCredentialsRequest.h:172
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::WithSecretToAuthenticateTarget
UpdateChapCredentialsRequest & WithSecretToAuthenticateTarget(const char *value)
Definition: UpdateChapCredentialsRequest.h:262
Aws::StorageGateway::Model::UpdateChapCredentialsRequest::SetInitiatorName
void SetInitiatorName(const char *value)
Definition: UpdateChapCredentialsRequest.h:182