AWS SDK for C++  0.14.3
AWS SDK for C++
DescribeWorkingStorageResult.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 template<typename RESULT_TYPE>
23 class AmazonWebServiceResult;
24 
25 namespace Utils
26 {
27 namespace Json
28 {
29  class JsonValue;
30 } // namespace Json
31 } // namespace Utils
32 namespace StorageGateway
33 {
34 namespace Model
35 {
40  {
41  public:
45 
46 
47  inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; }
48 
49 
50  inline void SetGatewayARN(const Aws::String& value) { m_gatewayARN = value; }
51 
52 
53  inline void SetGatewayARN(Aws::String&& value) { m_gatewayARN = value; }
54 
55 
56  inline void SetGatewayARN(const char* value) { m_gatewayARN.assign(value); }
57 
58 
59  inline DescribeWorkingStorageResult& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;}
60 
61 
62  inline DescribeWorkingStorageResult& WithGatewayARN(Aws::String&& value) { SetGatewayARN(value); return *this;}
63 
64 
65  inline DescribeWorkingStorageResult& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;}
66 
73  inline const Aws::Vector<Aws::String>& GetDiskIds() const{ return m_diskIds; }
74 
81  inline void SetDiskIds(const Aws::Vector<Aws::String>& value) { m_diskIds = value; }
82 
89  inline void SetDiskIds(Aws::Vector<Aws::String>&& value) { m_diskIds = value; }
90 
97  inline DescribeWorkingStorageResult& WithDiskIds(const Aws::Vector<Aws::String>& value) { SetDiskIds(value); return *this;}
98 
105  inline DescribeWorkingStorageResult& WithDiskIds(Aws::Vector<Aws::String>&& value) { SetDiskIds(value); return *this;}
106 
113  inline DescribeWorkingStorageResult& AddDiskIds(const Aws::String& value) { m_diskIds.push_back(value); return *this; }
114 
121  inline DescribeWorkingStorageResult& AddDiskIds(Aws::String&& value) { m_diskIds.push_back(value); return *this; }
122 
129  inline DescribeWorkingStorageResult& AddDiskIds(const char* value) { m_diskIds.push_back(value); return *this; }
130 
135  inline long long GetWorkingStorageUsedInBytes() const{ return m_workingStorageUsedInBytes; }
136 
141  inline void SetWorkingStorageUsedInBytes(long long value) { m_workingStorageUsedInBytes = value; }
142 
147  inline DescribeWorkingStorageResult& WithWorkingStorageUsedInBytes(long long value) { SetWorkingStorageUsedInBytes(value); return *this;}
148 
153  inline long long GetWorkingStorageAllocatedInBytes() const{ return m_workingStorageAllocatedInBytes; }
154 
159  inline void SetWorkingStorageAllocatedInBytes(long long value) { m_workingStorageAllocatedInBytes = value; }
160 
165  inline DescribeWorkingStorageResult& WithWorkingStorageAllocatedInBytes(long long value) { SetWorkingStorageAllocatedInBytes(value); return *this;}
166 
167  private:
168  Aws::String m_gatewayARN;
169  Aws::Vector<Aws::String> m_diskIds;
170  long long m_workingStorageUsedInBytes;
171  long long m_workingStorageAllocatedInBytes;
172  };
173 
174 } // namespace Model
175 } // namespace StorageGateway
176 } // namespace Aws
DescribeWorkingStorageResult & WithWorkingStorageAllocatedInBytes(long long value)
DescribeWorkingStorageResult & WithGatewayARN(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DescribeWorkingStorageResult & AddDiskIds(const char *value)
DescribeWorkingStorageResult & WithWorkingStorageUsedInBytes(long long value)
DescribeWorkingStorageResult & WithGatewayARN(const char *value)
void SetDiskIds(const Aws::Vector< Aws::String > &value)
DescribeWorkingStorageResult & AddDiskIds(const Aws::String &value)
DescribeWorkingStorageResult & AddDiskIds(Aws::String &&value)
DescribeWorkingStorageResult & WithGatewayARN(Aws::String &&value)
DescribeWorkingStorageResult & WithDiskIds(Aws::Vector< Aws::String > &&value)
DescribeWorkingStorageResult & WithDiskIds(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_STORAGEGATEWAY_API
JSON (JavaScript Object Notation).