/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace StorageGateway { namespace Model { class DescribeUploadBufferResult { public: AWS_STORAGEGATEWAY_API DescribeUploadBufferResult(); AWS_STORAGEGATEWAY_API DescribeUploadBufferResult(const Aws::AmazonWebServiceResult& result); AWS_STORAGEGATEWAY_API DescribeUploadBufferResult& operator=(const Aws::AmazonWebServiceResult& result); inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; } inline void SetGatewayARN(const Aws::String& value) { m_gatewayARN = value; } inline void SetGatewayARN(Aws::String&& value) { m_gatewayARN = std::move(value); } inline void SetGatewayARN(const char* value) { m_gatewayARN.assign(value); } inline DescribeUploadBufferResult& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;} inline DescribeUploadBufferResult& WithGatewayARN(Aws::String&& value) { SetGatewayARN(std::move(value)); return *this;} inline DescribeUploadBufferResult& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;} /** *

An array of the gateway's local disk IDs that are configured as working * storage. Each local disk ID is specified as a string (minimum length of 1 and * maximum length of 300). If no local disks are configured as working storage, * then the DiskIds array is empty.

*/ inline const Aws::Vector& GetDiskIds() const{ return m_diskIds; } /** *

An array of the gateway's local disk IDs that are configured as working * storage. Each local disk ID is specified as a string (minimum length of 1 and * maximum length of 300). If no local disks are configured as working storage, * then the DiskIds array is empty.

*/ inline void SetDiskIds(const Aws::Vector& value) { m_diskIds = value; } /** *

An array of the gateway's local disk IDs that are configured as working * storage. Each local disk ID is specified as a string (minimum length of 1 and * maximum length of 300). If no local disks are configured as working storage, * then the DiskIds array is empty.

*/ inline void SetDiskIds(Aws::Vector&& value) { m_diskIds = std::move(value); } /** *

An array of the gateway's local disk IDs that are configured as working * storage. Each local disk ID is specified as a string (minimum length of 1 and * maximum length of 300). If no local disks are configured as working storage, * then the DiskIds array is empty.

*/ inline DescribeUploadBufferResult& WithDiskIds(const Aws::Vector& value) { SetDiskIds(value); return *this;} /** *

An array of the gateway's local disk IDs that are configured as working * storage. Each local disk ID is specified as a string (minimum length of 1 and * maximum length of 300). If no local disks are configured as working storage, * then the DiskIds array is empty.

*/ inline DescribeUploadBufferResult& WithDiskIds(Aws::Vector&& value) { SetDiskIds(std::move(value)); return *this;} /** *

An array of the gateway's local disk IDs that are configured as working * storage. Each local disk ID is specified as a string (minimum length of 1 and * maximum length of 300). If no local disks are configured as working storage, * then the DiskIds array is empty.

*/ inline DescribeUploadBufferResult& AddDiskIds(const Aws::String& value) { m_diskIds.push_back(value); return *this; } /** *

An array of the gateway's local disk IDs that are configured as working * storage. Each local disk ID is specified as a string (minimum length of 1 and * maximum length of 300). If no local disks are configured as working storage, * then the DiskIds array is empty.

*/ inline DescribeUploadBufferResult& AddDiskIds(Aws::String&& value) { m_diskIds.push_back(std::move(value)); return *this; } /** *

An array of the gateway's local disk IDs that are configured as working * storage. Each local disk ID is specified as a string (minimum length of 1 and * maximum length of 300). If no local disks are configured as working storage, * then the DiskIds array is empty.

*/ inline DescribeUploadBufferResult& AddDiskIds(const char* value) { m_diskIds.push_back(value); return *this; } /** *

The total number of bytes being used in the gateway's upload buffer.

*/ inline long long GetUploadBufferUsedInBytes() const{ return m_uploadBufferUsedInBytes; } /** *

The total number of bytes being used in the gateway's upload buffer.

*/ inline void SetUploadBufferUsedInBytes(long long value) { m_uploadBufferUsedInBytes = value; } /** *

The total number of bytes being used in the gateway's upload buffer.

*/ inline DescribeUploadBufferResult& WithUploadBufferUsedInBytes(long long value) { SetUploadBufferUsedInBytes(value); return *this;} /** *

The total number of bytes allocated in the gateway's as upload buffer.

*/ inline long long GetUploadBufferAllocatedInBytes() const{ return m_uploadBufferAllocatedInBytes; } /** *

The total number of bytes allocated in the gateway's as upload buffer.

*/ inline void SetUploadBufferAllocatedInBytes(long long value) { m_uploadBufferAllocatedInBytes = value; } /** *

The total number of bytes allocated in the gateway's as upload buffer.

*/ inline DescribeUploadBufferResult& WithUploadBufferAllocatedInBytes(long long value) { SetUploadBufferAllocatedInBytes(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeUploadBufferResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeUploadBufferResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeUploadBufferResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_gatewayARN; Aws::Vector m_diskIds; long long m_uploadBufferUsedInBytes; long long m_uploadBufferAllocatedInBytes; Aws::String m_requestId; }; } // namespace Model } // namespace StorageGateway } // namespace Aws