AWS SDK for C++  0.12.9
AWS SDK for C++
DeleteChapCredentialsRequest.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 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
45  inline const Aws::String& GetTargetARN() const{ return m_targetARN; }
46 
52  inline void SetTargetARN(const Aws::String& value) { m_targetARNHasBeenSet = true; m_targetARN = value; }
53 
59  inline void SetTargetARN(Aws::String&& value) { m_targetARNHasBeenSet = true; m_targetARN = value; }
60 
66  inline void SetTargetARN(const char* value) { m_targetARNHasBeenSet = true; m_targetARN.assign(value); }
67 
73  inline DeleteChapCredentialsRequest& WithTargetARN(const Aws::String& value) { SetTargetARN(value); return *this;}
74 
80  inline DeleteChapCredentialsRequest& WithTargetARN(Aws::String&& value) { SetTargetARN(value); return *this;}
81 
87  inline DeleteChapCredentialsRequest& WithTargetARN(const char* value) { SetTargetARN(value); return *this;}
88 
92  inline const Aws::String& GetInitiatorName() const{ return m_initiatorName; }
93 
97  inline void SetInitiatorName(const Aws::String& value) { m_initiatorNameHasBeenSet = true; m_initiatorName = value; }
98 
102  inline void SetInitiatorName(Aws::String&& value) { m_initiatorNameHasBeenSet = true; m_initiatorName = value; }
103 
107  inline void SetInitiatorName(const char* value) { m_initiatorNameHasBeenSet = true; m_initiatorName.assign(value); }
108 
112  inline DeleteChapCredentialsRequest& WithInitiatorName(const Aws::String& value) { SetInitiatorName(value); return *this;}
113 
117  inline DeleteChapCredentialsRequest& WithInitiatorName(Aws::String&& value) { SetInitiatorName(value); return *this;}
118 
122  inline DeleteChapCredentialsRequest& WithInitiatorName(const char* value) { SetInitiatorName(value); return *this;}
123 
124  private:
125  Aws::String m_targetARN;
126  bool m_targetARNHasBeenSet;
127  Aws::String m_initiatorName;
128  bool m_initiatorNameHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace StorageGateway
133 } // namespace Aws
DeleteChapCredentialsRequest & WithTargetARN(Aws::String &&value)
DeleteChapCredentialsRequest & WithTargetARN(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
DeleteChapCredentialsRequest & WithInitiatorName(const char *value)
DeleteChapCredentialsRequest & WithTargetARN(const char *value)
DeleteChapCredentialsRequest & WithInitiatorName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_STORAGEGATEWAY_API
DeleteChapCredentialsRequest & WithInitiatorName(Aws::String &&value)
JSON (JavaScript Object Notation).