AWS SDK for C++  0.12.9
AWS SDK for C++
UpdateChapCredentialsRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace StorageGateway
23 {
24 namespace Model
25 {
26 
35  {
36  public:
38  Aws::String SerializePayload() const override;
39 
40  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41 
47  inline const Aws::String& GetTargetARN() const{ return m_targetARN; }
48 
54  inline void SetTargetARN(const Aws::String& value) { m_targetARNHasBeenSet = true; m_targetARN = value; }
55 
61  inline void SetTargetARN(Aws::String&& value) { m_targetARNHasBeenSet = true; m_targetARN = value; }
62 
68  inline void SetTargetARN(const char* value) { m_targetARNHasBeenSet = true; m_targetARN.assign(value); }
69 
75  inline UpdateChapCredentialsRequest& WithTargetARN(const Aws::String& value) { SetTargetARN(value); return *this;}
76 
82  inline UpdateChapCredentialsRequest& WithTargetARN(Aws::String&& value) { SetTargetARN(value); return *this;}
83 
89  inline UpdateChapCredentialsRequest& WithTargetARN(const char* value) { SetTargetARN(value); return *this;}
90 
96  inline const Aws::String& GetSecretToAuthenticateInitiator() const{ return m_secretToAuthenticateInitiator; }
97 
103  inline void SetSecretToAuthenticateInitiator(const Aws::String& value) { m_secretToAuthenticateInitiatorHasBeenSet = true; m_secretToAuthenticateInitiator = value; }
104 
110  inline void SetSecretToAuthenticateInitiator(Aws::String&& value) { m_secretToAuthenticateInitiatorHasBeenSet = true; m_secretToAuthenticateInitiator = value; }
111 
117  inline void SetSecretToAuthenticateInitiator(const char* value) { m_secretToAuthenticateInitiatorHasBeenSet = true; m_secretToAuthenticateInitiator.assign(value); }
118 
124  inline UpdateChapCredentialsRequest& WithSecretToAuthenticateInitiator(const Aws::String& value) { SetSecretToAuthenticateInitiator(value); return *this;}
125 
131  inline UpdateChapCredentialsRequest& WithSecretToAuthenticateInitiator(Aws::String&& value) { SetSecretToAuthenticateInitiator(value); return *this;}
132 
138  inline UpdateChapCredentialsRequest& WithSecretToAuthenticateInitiator(const char* value) { SetSecretToAuthenticateInitiator(value); return *this;}
139 
143  inline const Aws::String& GetInitiatorName() const{ return m_initiatorName; }
144 
148  inline void SetInitiatorName(const Aws::String& value) { m_initiatorNameHasBeenSet = true; m_initiatorName = value; }
149 
153  inline void SetInitiatorName(Aws::String&& value) { m_initiatorNameHasBeenSet = true; m_initiatorName = value; }
154 
158  inline void SetInitiatorName(const char* value) { m_initiatorNameHasBeenSet = true; m_initiatorName.assign(value); }
159 
163  inline UpdateChapCredentialsRequest& WithInitiatorName(const Aws::String& value) { SetInitiatorName(value); return *this;}
164 
168  inline UpdateChapCredentialsRequest& WithInitiatorName(Aws::String&& value) { SetInitiatorName(value); return *this;}
169 
173  inline UpdateChapCredentialsRequest& WithInitiatorName(const char* value) { SetInitiatorName(value); return *this;}
174 
181  inline const Aws::String& GetSecretToAuthenticateTarget() const{ return m_secretToAuthenticateTarget; }
182 
189  inline void SetSecretToAuthenticateTarget(const Aws::String& value) { m_secretToAuthenticateTargetHasBeenSet = true; m_secretToAuthenticateTarget = value; }
190 
197  inline void SetSecretToAuthenticateTarget(Aws::String&& value) { m_secretToAuthenticateTargetHasBeenSet = true; m_secretToAuthenticateTarget = value; }
198 
205  inline void SetSecretToAuthenticateTarget(const char* value) { m_secretToAuthenticateTargetHasBeenSet = true; m_secretToAuthenticateTarget.assign(value); }
206 
213  inline UpdateChapCredentialsRequest& WithSecretToAuthenticateTarget(const Aws::String& value) { SetSecretToAuthenticateTarget(value); return *this;}
214 
221  inline UpdateChapCredentialsRequest& WithSecretToAuthenticateTarget(Aws::String&& value) { SetSecretToAuthenticateTarget(value); return *this;}
222 
229  inline UpdateChapCredentialsRequest& WithSecretToAuthenticateTarget(const char* value) { SetSecretToAuthenticateTarget(value); return *this;}
230 
231  private:
232  Aws::String m_targetARN;
233  bool m_targetARNHasBeenSet;
234  Aws::String m_secretToAuthenticateInitiator;
235  bool m_secretToAuthenticateInitiatorHasBeenSet;
236  Aws::String m_initiatorName;
237  bool m_initiatorNameHasBeenSet;
238  Aws::String m_secretToAuthenticateTarget;
239  bool m_secretToAuthenticateTargetHasBeenSet;
240  };
241 
242 } // namespace Model
243 } // namespace StorageGateway
244 } // 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:63
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)
JSON (JavaScript Object Notation).