AWS SDK for C++  1.9.40
AWS SDK for C++
AddWorkingStorageRequest.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 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "AddWorkingStorage"; }
37 
38  Aws::String SerializePayload() const override;
39 
41 
42 
43 
44  inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; }
45 
46 
47  inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
48 
49 
50  inline void SetGatewayARN(const Aws::String& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; }
51 
52 
53  inline void SetGatewayARN(Aws::String&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = std::move(value); }
54 
55 
56  inline void SetGatewayARN(const char* value) { m_gatewayARNHasBeenSet = true; m_gatewayARN.assign(value); }
57 
58 
59  inline AddWorkingStorageRequest& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;}
60 
61 
62  inline AddWorkingStorageRequest& WithGatewayARN(Aws::String&& value) { SetGatewayARN(std::move(value)); return *this;}
63 
64 
65  inline AddWorkingStorageRequest& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;}
66 
67 
73  inline const Aws::Vector<Aws::String>& GetDiskIds() const{ return m_diskIds; }
74 
80  inline bool DiskIdsHasBeenSet() const { return m_diskIdsHasBeenSet; }
81 
87  inline void SetDiskIds(const Aws::Vector<Aws::String>& value) { m_diskIdsHasBeenSet = true; m_diskIds = value; }
88 
94  inline void SetDiskIds(Aws::Vector<Aws::String>&& value) { m_diskIdsHasBeenSet = true; m_diskIds = std::move(value); }
95 
101  inline AddWorkingStorageRequest& WithDiskIds(const Aws::Vector<Aws::String>& value) { SetDiskIds(value); return *this;}
102 
108  inline AddWorkingStorageRequest& WithDiskIds(Aws::Vector<Aws::String>&& value) { SetDiskIds(std::move(value)); return *this;}
109 
115  inline AddWorkingStorageRequest& AddDiskIds(const Aws::String& value) { m_diskIdsHasBeenSet = true; m_diskIds.push_back(value); return *this; }
116 
122  inline AddWorkingStorageRequest& AddDiskIds(Aws::String&& value) { m_diskIdsHasBeenSet = true; m_diskIds.push_back(std::move(value)); return *this; }
123 
129  inline AddWorkingStorageRequest& AddDiskIds(const char* value) { m_diskIdsHasBeenSet = true; m_diskIds.push_back(value); return *this; }
130 
131  private:
132 
133  Aws::String m_gatewayARN;
134  bool m_gatewayARNHasBeenSet;
135 
136  Aws::Vector<Aws::String> m_diskIds;
137  bool m_diskIdsHasBeenSet;
138  };
139 
140 } // namespace Model
141 } // namespace StorageGateway
142 } // namespace Aws
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::StorageGateway::Model::AddWorkingStorageRequest::DiskIdsHasBeenSet
bool DiskIdsHasBeenSet() const
Definition: AddWorkingStorageRequest.h:80
Aws::StorageGateway::Model::AddWorkingStorageRequest::GatewayARNHasBeenSet
bool GatewayARNHasBeenSet() const
Definition: AddWorkingStorageRequest.h:47
Aws::StorageGateway::Model::AddWorkingStorageRequest::SetGatewayARN
void SetGatewayARN(const char *value)
Definition: AddWorkingStorageRequest.h:56
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::StorageGateway::Model::AddWorkingStorageRequest::WithGatewayARN
AddWorkingStorageRequest & WithGatewayARN(Aws::String &&value)
Definition: AddWorkingStorageRequest.h:62
AWSVector.h
Aws::StorageGateway::Model::AddWorkingStorageRequest::AddDiskIds
AddWorkingStorageRequest & AddDiskIds(const char *value)
Definition: AddWorkingStorageRequest.h:129
Aws::StorageGateway::Model::AddWorkingStorageRequest::GetDiskIds
const Aws::Vector< Aws::String > & GetDiskIds() const
Definition: AddWorkingStorageRequest.h:73
Aws::StorageGateway::Model::AddWorkingStorageRequest::AddWorkingStorageRequest
AddWorkingStorageRequest()
Aws::StorageGateway::Model::AddWorkingStorageRequest::WithDiskIds
AddWorkingStorageRequest & WithDiskIds(Aws::Vector< Aws::String > &&value)
Definition: AddWorkingStorageRequest.h:108
Aws::StorageGateway::Model::AddWorkingStorageRequest::AddDiskIds
AddWorkingStorageRequest & AddDiskIds(Aws::String &&value)
Definition: AddWorkingStorageRequest.h:122
Aws::StorageGateway::Model::AddWorkingStorageRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::StorageGateway::StorageGatewayRequest
Definition: StorageGatewayRequest.h:17
Aws::StorageGateway::Model::AddWorkingStorageRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::StorageGateway::Model::AddWorkingStorageRequest::SetGatewayARN
void SetGatewayARN(Aws::String &&value)
Definition: AddWorkingStorageRequest.h:53
Aws::StorageGateway::Model::AddWorkingStorageRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AddWorkingStorageRequest.h:36
Aws::StorageGateway::Model::AddWorkingStorageRequest::AddDiskIds
AddWorkingStorageRequest & AddDiskIds(const Aws::String &value)
Definition: AddWorkingStorageRequest.h:115
Aws::StorageGateway::Model::AddWorkingStorageRequest
Definition: AddWorkingStorageRequest.h:28
AWSString.h
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::AddWorkingStorageRequest::WithDiskIds
AddWorkingStorageRequest & WithDiskIds(const Aws::Vector< Aws::String > &value)
Definition: AddWorkingStorageRequest.h:101
Aws::StorageGateway::Model::AddWorkingStorageRequest::SetDiskIds
void SetDiskIds(const Aws::Vector< Aws::String > &value)
Definition: AddWorkingStorageRequest.h:87
Aws::StorageGateway::Model::AddWorkingStorageRequest::WithGatewayARN
AddWorkingStorageRequest & WithGatewayARN(const char *value)
Definition: AddWorkingStorageRequest.h:65
StorageGatewayRequest.h
Aws::StorageGateway::Model::AddWorkingStorageRequest::WithGatewayARN
AddWorkingStorageRequest & WithGatewayARN(const Aws::String &value)
Definition: AddWorkingStorageRequest.h:59
Aws
Definition: AccessManagementClient.h:15
Aws::StorageGateway::Model::AddWorkingStorageRequest::SetDiskIds
void SetDiskIds(Aws::Vector< Aws::String > &&value)
Definition: AddWorkingStorageRequest.h:94
StorageGateway_EXPORTS.h
Aws::StorageGateway::Model::AddWorkingStorageRequest::SetGatewayARN
void SetGatewayARN(const Aws::String &value)
Definition: AddWorkingStorageRequest.h:50
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::StorageGateway::Model::AddWorkingStorageRequest::GetGatewayARN
const Aws::String & GetGatewayARN() const
Definition: AddWorkingStorageRequest.h:44