AWS SDK for C++  0.12.9
AWS SDK for C++
AddWorkingStorageRequest.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
20 
21 namespace Aws
22 {
23 namespace StorageGateway
24 {
25 namespace Model
26 {
27 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
40 
41  inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; }
42 
43 
44  inline void SetGatewayARN(const Aws::String& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; }
45 
46 
47  inline void SetGatewayARN(Aws::String&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; }
48 
49 
50  inline void SetGatewayARN(const char* value) { m_gatewayARNHasBeenSet = true; m_gatewayARN.assign(value); }
51 
52 
53  inline AddWorkingStorageRequest& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;}
54 
55 
56  inline AddWorkingStorageRequest& WithGatewayARN(Aws::String&& value) { SetGatewayARN(value); return *this;}
57 
58 
59  inline AddWorkingStorageRequest& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;}
60 
66  inline const Aws::Vector<Aws::String>& GetDiskIds() const{ return m_diskIds; }
67 
73  inline void SetDiskIds(const Aws::Vector<Aws::String>& value) { m_diskIdsHasBeenSet = true; m_diskIds = value; }
74 
80  inline void SetDiskIds(Aws::Vector<Aws::String>&& value) { m_diskIdsHasBeenSet = true; m_diskIds = value; }
81 
87  inline AddWorkingStorageRequest& WithDiskIds(const Aws::Vector<Aws::String>& value) { SetDiskIds(value); return *this;}
88 
94  inline AddWorkingStorageRequest& WithDiskIds(Aws::Vector<Aws::String>&& value) { SetDiskIds(value); return *this;}
95 
101  inline AddWorkingStorageRequest& AddDiskIds(const Aws::String& value) { m_diskIdsHasBeenSet = true; m_diskIds.push_back(value); return *this; }
102 
108  inline AddWorkingStorageRequest& AddDiskIds(Aws::String&& value) { m_diskIdsHasBeenSet = true; m_diskIds.push_back(value); return *this; }
109 
115  inline AddWorkingStorageRequest& AddDiskIds(const char* value) { m_diskIdsHasBeenSet = true; m_diskIds.push_back(value); return *this; }
116 
117  private:
118  Aws::String m_gatewayARN;
119  bool m_gatewayARNHasBeenSet;
120  Aws::Vector<Aws::String> m_diskIds;
121  bool m_diskIdsHasBeenSet;
122  };
123 
124 } // namespace Model
125 } // namespace StorageGateway
126 } // namespace Aws
AddWorkingStorageRequest & WithDiskIds(const Aws::Vector< Aws::String > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
AddWorkingStorageRequest & AddDiskIds(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
const Aws::Vector< Aws::String > & GetDiskIds() const
AddWorkingStorageRequest & WithDiskIds(Aws::Vector< Aws::String > &&value)
void SetDiskIds(Aws::Vector< Aws::String > &&value)
AddWorkingStorageRequest & AddDiskIds(const Aws::String &value)
AddWorkingStorageRequest & WithGatewayARN(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AddWorkingStorageRequest & WithGatewayARN(Aws::String &&value)
AddWorkingStorageRequest & AddDiskIds(Aws::String &&value)
#define AWS_STORAGEGATEWAY_API
void SetDiskIds(const Aws::Vector< Aws::String > &value)
AddWorkingStorageRequest & WithGatewayARN(const char *value)
JSON (JavaScript Object Notation).