AWS SDK for C++  1.8.71
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 
42  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
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
UpdateChapCredentialsRequest & WithInitiatorName(const char *value)
UpdateChapCredentialsRequest & WithInitiatorName(Aws::String &&value)
UpdateChapCredentialsRequest & WithSecretToAuthenticateTarget(const Aws::String &value)
UpdateChapCredentialsRequest & WithInitiatorName(const Aws::String &value)
UpdateChapCredentialsRequest & WithTargetARN(const Aws::String &value)
UpdateChapCredentialsRequest & WithSecretToAuthenticateInitiator(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
UpdateChapCredentialsRequest & WithSecretToAuthenticateTarget(const char *value)
UpdateChapCredentialsRequest & WithSecretToAuthenticateTarget(Aws::String &&value)
UpdateChapCredentialsRequest & WithSecretToAuthenticateInitiator(const char *value)
UpdateChapCredentialsRequest & WithTargetARN(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateChapCredentialsRequest & WithTargetARN(Aws::String &&value)
#define AWS_STORAGEGATEWAY_API
UpdateChapCredentialsRequest & WithSecretToAuthenticateInitiator(Aws::String &&value)