AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
AddUploadBufferRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/storagegateway/StorageGatewayRequest.h>
10#include <aws/storagegateway/StorageGateway_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace StorageGateway {
16namespace Model {
17
21 public:
22 AWS_STORAGEGATEWAY_API AddUploadBufferRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "AddUploadBuffer"; }
29
30 AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override;
31
32 AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
36 inline const Aws::String& GetGatewayARN() const { return m_gatewayARN; }
37 inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
38 template <typename GatewayARNT = Aws::String>
39 void SetGatewayARN(GatewayARNT&& value) {
40 m_gatewayARNHasBeenSet = true;
41 m_gatewayARN = std::forward<GatewayARNT>(value);
42 }
43 template <typename GatewayARNT = Aws::String>
44 AddUploadBufferRequest& WithGatewayARN(GatewayARNT&& value) {
45 SetGatewayARN(std::forward<GatewayARNT>(value));
46 return *this;
47 }
49
51
56 inline const Aws::Vector<Aws::String>& GetDiskIds() const { return m_diskIds; }
57 inline bool DiskIdsHasBeenSet() const { return m_diskIdsHasBeenSet; }
58 template <typename DiskIdsT = Aws::Vector<Aws::String>>
59 void SetDiskIds(DiskIdsT&& value) {
60 m_diskIdsHasBeenSet = true;
61 m_diskIds = std::forward<DiskIdsT>(value);
62 }
63 template <typename DiskIdsT = Aws::Vector<Aws::String>>
65 SetDiskIds(std::forward<DiskIdsT>(value));
66 return *this;
67 }
68 template <typename DiskIdsT = Aws::String>
70 m_diskIdsHasBeenSet = true;
71 m_diskIds.emplace_back(std::forward<DiskIdsT>(value));
72 return *this;
73 }
75 private:
76 Aws::String m_gatewayARN;
77
79 bool m_gatewayARNHasBeenSet = false;
80 bool m_diskIdsHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace StorageGateway
85} // namespace Aws
AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override
AddUploadBufferRequest & AddDiskIds(DiskIdsT &&value)
AddUploadBufferRequest & WithDiskIds(DiskIdsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Aws::String > & GetDiskIds() const
AddUploadBufferRequest & WithGatewayARN(GatewayARNT &&value)
AWS_STORAGEGATEWAY_API AddUploadBufferRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector