AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AddCacheRequest.h
1
6#pragma once
7#include <aws/storagegateway/StorageGateway_EXPORTS.h>
8#include <aws/storagegateway/StorageGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace StorageGateway
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_STORAGEGATEWAY_API AddCacheRequest() = default;
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 "AddCache"; }
32
33 AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override;
34
35 AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
40 inline const Aws::String& GetGatewayARN() const { return m_gatewayARN; }
41 inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
42 template<typename GatewayARNT = Aws::String>
43 void SetGatewayARN(GatewayARNT&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = std::forward<GatewayARNT>(value); }
44 template<typename GatewayARNT = Aws::String>
45 AddCacheRequest& WithGatewayARN(GatewayARNT&& value) { SetGatewayARN(std::forward<GatewayARNT>(value)); return *this;}
47
49
54 inline const Aws::Vector<Aws::String>& GetDiskIds() const { return m_diskIds; }
55 inline bool DiskIdsHasBeenSet() const { return m_diskIdsHasBeenSet; }
56 template<typename DiskIdsT = Aws::Vector<Aws::String>>
57 void SetDiskIds(DiskIdsT&& value) { m_diskIdsHasBeenSet = true; m_diskIds = std::forward<DiskIdsT>(value); }
58 template<typename DiskIdsT = Aws::Vector<Aws::String>>
59 AddCacheRequest& WithDiskIds(DiskIdsT&& value) { SetDiskIds(std::forward<DiskIdsT>(value)); return *this;}
60 template<typename DiskIdsT = Aws::String>
61 AddCacheRequest& AddDiskIds(DiskIdsT&& value) { m_diskIdsHasBeenSet = true; m_diskIds.emplace_back(std::forward<DiskIdsT>(value)); return *this; }
63 private:
64
65 Aws::String m_gatewayARN;
66 bool m_gatewayARNHasBeenSet = false;
67
69 bool m_diskIdsHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace StorageGateway
74} // namespace Aws
AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override
AddCacheRequest & WithDiskIds(DiskIdsT &&value)
AddCacheRequest & WithGatewayARN(GatewayARNT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetDiskIds() const
const Aws::String & GetGatewayARN() const
AddCacheRequest & AddDiskIds(DiskIdsT &&value)
AWS_STORAGEGATEWAY_API AddCacheRequest()=default
AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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