AWS SDK for C++  1.9.102
AWS SDK for C++
AddUploadBufferRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace StorageGateway
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "AddUploadBuffer"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
38 
39  inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; }
40 
41 
42  inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
43 
44 
45  inline void SetGatewayARN(const Aws::String& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; }
46 
47 
48  inline void SetGatewayARN(Aws::String&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = std::move(value); }
49 
50 
51  inline void SetGatewayARN(const char* value) { m_gatewayARNHasBeenSet = true; m_gatewayARN.assign(value); }
52 
53 
54  inline AddUploadBufferRequest& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;}
55 
56 
57  inline AddUploadBufferRequest& WithGatewayARN(Aws::String&& value) { SetGatewayARN(std::move(value)); return *this;}
58 
59 
60  inline AddUploadBufferRequest& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;}
61 
62 
68  inline const Aws::Vector<Aws::String>& GetDiskIds() const{ return m_diskIds; }
69 
75  inline bool DiskIdsHasBeenSet() const { return m_diskIdsHasBeenSet; }
76 
82  inline void SetDiskIds(const Aws::Vector<Aws::String>& value) { m_diskIdsHasBeenSet = true; m_diskIds = value; }
83 
89  inline void SetDiskIds(Aws::Vector<Aws::String>&& value) { m_diskIdsHasBeenSet = true; m_diskIds = std::move(value); }
90 
96  inline AddUploadBufferRequest& WithDiskIds(const Aws::Vector<Aws::String>& value) { SetDiskIds(value); return *this;}
97 
103  inline AddUploadBufferRequest& WithDiskIds(Aws::Vector<Aws::String>&& value) { SetDiskIds(std::move(value)); return *this;}
104 
110  inline AddUploadBufferRequest& AddDiskIds(const Aws::String& value) { m_diskIdsHasBeenSet = true; m_diskIds.push_back(value); return *this; }
111 
117  inline AddUploadBufferRequest& AddDiskIds(Aws::String&& value) { m_diskIdsHasBeenSet = true; m_diskIds.push_back(std::move(value)); return *this; }
118 
124  inline AddUploadBufferRequest& AddDiskIds(const char* value) { m_diskIdsHasBeenSet = true; m_diskIds.push_back(value); return *this; }
125 
126  private:
127 
128  Aws::String m_gatewayARN;
129  bool m_gatewayARNHasBeenSet;
130 
131  Aws::Vector<Aws::String> m_diskIds;
132  bool m_diskIdsHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace StorageGateway
137 } // namespace Aws
Aws::StorageGateway::Model::AddUploadBufferRequest::AddUploadBufferRequest
AddUploadBufferRequest()
Aws::StorageGateway::Model::AddUploadBufferRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::StorageGateway::Model::AddUploadBufferRequest::WithGatewayARN
AddUploadBufferRequest & WithGatewayARN(const Aws::String &value)
Definition: AddUploadBufferRequest.h:54
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::StorageGateway::Model::AddUploadBufferRequest::WithGatewayARN
AddUploadBufferRequest & WithGatewayARN(const char *value)
Definition: AddUploadBufferRequest.h:60
Aws::StorageGateway::Model::AddUploadBufferRequest::GatewayARNHasBeenSet
bool GatewayARNHasBeenSet() const
Definition: AddUploadBufferRequest.h:42
Aws::StorageGateway::Model::AddUploadBufferRequest::SetDiskIds
void SetDiskIds(const Aws::Vector< Aws::String > &value)
Definition: AddUploadBufferRequest.h:82
Aws::StorageGateway::Model::AddUploadBufferRequest::WithDiskIds
AddUploadBufferRequest & WithDiskIds(Aws::Vector< Aws::String > &&value)
Definition: AddUploadBufferRequest.h:103
Aws::StorageGateway::Model::AddUploadBufferRequest::AddDiskIds
AddUploadBufferRequest & AddDiskIds(const Aws::String &value)
Definition: AddUploadBufferRequest.h:110
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::StorageGateway::Model::AddUploadBufferRequest::SetGatewayARN
void SetGatewayARN(const Aws::String &value)
Definition: AddUploadBufferRequest.h:45
Aws::StorageGateway::Model::AddUploadBufferRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::StorageGateway::Model::AddUploadBufferRequest::DiskIdsHasBeenSet
bool DiskIdsHasBeenSet() const
Definition: AddUploadBufferRequest.h:75
Aws::StorageGateway::Model::AddUploadBufferRequest::GetDiskIds
const Aws::Vector< Aws::String > & GetDiskIds() const
Definition: AddUploadBufferRequest.h:68
Aws::StorageGateway::StorageGatewayRequest
Definition: StorageGatewayRequest.h:17
Aws::StorageGateway::Model::AddUploadBufferRequest::AddDiskIds
AddUploadBufferRequest & AddDiskIds(const char *value)
Definition: AddUploadBufferRequest.h:124
Aws::StorageGateway::Model::AddUploadBufferRequest::SetGatewayARN
void SetGatewayARN(const char *value)
Definition: AddUploadBufferRequest.h:51
Aws::StorageGateway::Model::AddUploadBufferRequest::AddDiskIds
AddUploadBufferRequest & AddDiskIds(Aws::String &&value)
Definition: AddUploadBufferRequest.h:117
AWSString.h
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::AddUploadBufferRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AddUploadBufferRequest.h:31
Aws::StorageGateway::Model::AddUploadBufferRequest
Definition: AddUploadBufferRequest.h:23
Aws::StorageGateway::Model::AddUploadBufferRequest::WithDiskIds
AddUploadBufferRequest & WithDiskIds(const Aws::Vector< Aws::String > &value)
Definition: AddUploadBufferRequest.h:96
StorageGatewayRequest.h
Aws
Definition: AccessManagementClient.h:15
StorageGateway_EXPORTS.h
Aws::StorageGateway::Model::AddUploadBufferRequest::WithGatewayARN
AddUploadBufferRequest & WithGatewayARN(Aws::String &&value)
Definition: AddUploadBufferRequest.h:57
Aws::StorageGateway::Model::AddUploadBufferRequest::SetGatewayARN
void SetGatewayARN(Aws::String &&value)
Definition: AddUploadBufferRequest.h:48
Aws::StorageGateway::Model::AddUploadBufferRequest::GetGatewayARN
const Aws::String & GetGatewayARN() const
Definition: AddUploadBufferRequest.h:39
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::StorageGateway::Model::AddUploadBufferRequest::SetDiskIds
void SetDiskIds(Aws::Vector< Aws::String > &&value)
Definition: AddUploadBufferRequest.h:89