AWS SDK for C++  0.12.9
AWS SDK for C++
DescribeUploadBufferResult.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 {
37  {
38  public:
42 
43 
44  inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; }
45 
46 
47  inline void SetGatewayARN(const Aws::String& value) { m_gatewayARN = value; }
48 
49 
50  inline void SetGatewayARN(Aws::String&& value) { m_gatewayARN = value; }
51 
52 
53  inline void SetGatewayARN(const char* value) { m_gatewayARN.assign(value); }
54 
55 
56  inline DescribeUploadBufferResult& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;}
57 
58 
59  inline DescribeUploadBufferResult& WithGatewayARN(Aws::String&& value) { SetGatewayARN(value); return *this;}
60 
61 
62  inline DescribeUploadBufferResult& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;}
63 
64 
65  inline const Aws::Vector<Aws::String>& GetDiskIds() const{ return m_diskIds; }
66 
67 
68  inline void SetDiskIds(const Aws::Vector<Aws::String>& value) { m_diskIds = value; }
69 
70 
71  inline void SetDiskIds(Aws::Vector<Aws::String>&& value) { m_diskIds = value; }
72 
73 
74  inline DescribeUploadBufferResult& WithDiskIds(const Aws::Vector<Aws::String>& value) { SetDiskIds(value); return *this;}
75 
76 
77  inline DescribeUploadBufferResult& WithDiskIds(Aws::Vector<Aws::String>&& value) { SetDiskIds(value); return *this;}
78 
79 
80  inline DescribeUploadBufferResult& AddDiskIds(const Aws::String& value) { m_diskIds.push_back(value); return *this; }
81 
82 
83  inline DescribeUploadBufferResult& AddDiskIds(Aws::String&& value) { m_diskIds.push_back(value); return *this; }
84 
85 
86  inline DescribeUploadBufferResult& AddDiskIds(const char* value) { m_diskIds.push_back(value); return *this; }
87 
88 
89  inline long long GetUploadBufferUsedInBytes() const{ return m_uploadBufferUsedInBytes; }
90 
91 
92  inline void SetUploadBufferUsedInBytes(long long value) { m_uploadBufferUsedInBytes = value; }
93 
94 
95  inline DescribeUploadBufferResult& WithUploadBufferUsedInBytes(long long value) { SetUploadBufferUsedInBytes(value); return *this;}
96 
97 
98  inline long long GetUploadBufferAllocatedInBytes() const{ return m_uploadBufferAllocatedInBytes; }
99 
100 
101  inline void SetUploadBufferAllocatedInBytes(long long value) { m_uploadBufferAllocatedInBytes = value; }
102 
103 
104  inline DescribeUploadBufferResult& WithUploadBufferAllocatedInBytes(long long value) { SetUploadBufferAllocatedInBytes(value); return *this;}
105 
106  private:
107  Aws::String m_gatewayARN;
108  Aws::Vector<Aws::String> m_diskIds;
109  long long m_uploadBufferUsedInBytes;
110  long long m_uploadBufferAllocatedInBytes;
111  };
112 
113 } // namespace Model
114 } // namespace StorageGateway
115 } // namespace Aws
DescribeUploadBufferResult & WithDiskIds(const Aws::Vector< Aws::String > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DescribeUploadBufferResult & WithGatewayARN(Aws::String &&value)
DescribeUploadBufferResult & WithUploadBufferUsedInBytes(long long value)
DescribeUploadBufferResult & WithUploadBufferAllocatedInBytes(long long value)
void SetDiskIds(const Aws::Vector< Aws::String > &value)
DescribeUploadBufferResult & WithDiskIds(Aws::Vector< Aws::String > &&value)
DescribeUploadBufferResult & AddDiskIds(const Aws::String &value)
DescribeUploadBufferResult & AddDiskIds(Aws::String &&value)
const Aws::Vector< Aws::String > & GetDiskIds() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeUploadBufferResult & WithGatewayARN(const Aws::String &value)
#define AWS_STORAGEGATEWAY_API
JSON (JavaScript Object Notation).
DescribeUploadBufferResult & AddDiskIds(const char *value)
DescribeUploadBufferResult & WithGatewayARN(const char *value)