AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StartCacheReportRequest.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 <aws/storagegateway/model/CacheReportFilter.h>
12#include <aws/storagegateway/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace StorageGateway
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_STORAGEGATEWAY_API StartCacheReportRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "StartCacheReport"; }
34
35 AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override;
36
37 AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
42 inline const Aws::String& GetFileShareARN() const { return m_fileShareARN; }
43 inline bool FileShareARNHasBeenSet() const { return m_fileShareARNHasBeenSet; }
44 template<typename FileShareARNT = Aws::String>
45 void SetFileShareARN(FileShareARNT&& value) { m_fileShareARNHasBeenSet = true; m_fileShareARN = std::forward<FileShareARNT>(value); }
46 template<typename FileShareARNT = Aws::String>
47 StartCacheReportRequest& WithFileShareARN(FileShareARNT&& value) { SetFileShareARN(std::forward<FileShareARNT>(value)); return *this;}
49
51
54 inline const Aws::String& GetRole() const { return m_role; }
55 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
56 template<typename RoleT = Aws::String>
57 void SetRole(RoleT&& value) { m_roleHasBeenSet = true; m_role = std::forward<RoleT>(value); }
58 template<typename RoleT = Aws::String>
59 StartCacheReportRequest& WithRole(RoleT&& value) { SetRole(std::forward<RoleT>(value)); return *this;}
61
63
69 inline const Aws::String& GetLocationARN() const { return m_locationARN; }
70 inline bool LocationARNHasBeenSet() const { return m_locationARNHasBeenSet; }
71 template<typename LocationARNT = Aws::String>
72 void SetLocationARN(LocationARNT&& value) { m_locationARNHasBeenSet = true; m_locationARN = std::forward<LocationARNT>(value); }
73 template<typename LocationARNT = Aws::String>
74 StartCacheReportRequest& WithLocationARN(LocationARNT&& value) { SetLocationARN(std::forward<LocationARNT>(value)); return *this;}
76
78
82 inline const Aws::String& GetBucketRegion() const { return m_bucketRegion; }
83 inline bool BucketRegionHasBeenSet() const { return m_bucketRegionHasBeenSet; }
84 template<typename BucketRegionT = Aws::String>
85 void SetBucketRegion(BucketRegionT&& value) { m_bucketRegionHasBeenSet = true; m_bucketRegion = std::forward<BucketRegionT>(value); }
86 template<typename BucketRegionT = Aws::String>
87 StartCacheReportRequest& WithBucketRegion(BucketRegionT&& value) { SetBucketRegion(std::forward<BucketRegionT>(value)); return *this;}
89
91
95 inline const Aws::String& GetVPCEndpointDNSName() const { return m_vPCEndpointDNSName; }
96 inline bool VPCEndpointDNSNameHasBeenSet() const { return m_vPCEndpointDNSNameHasBeenSet; }
97 template<typename VPCEndpointDNSNameT = Aws::String>
98 void SetVPCEndpointDNSName(VPCEndpointDNSNameT&& value) { m_vPCEndpointDNSNameHasBeenSet = true; m_vPCEndpointDNSName = std::forward<VPCEndpointDNSNameT>(value); }
99 template<typename VPCEndpointDNSNameT = Aws::String>
100 StartCacheReportRequest& WithVPCEndpointDNSName(VPCEndpointDNSNameT&& value) { SetVPCEndpointDNSName(std::forward<VPCEndpointDNSNameT>(value)); return *this;}
102
104
110 inline const Aws::Vector<CacheReportFilter>& GetInclusionFilters() const { return m_inclusionFilters; }
111 inline bool InclusionFiltersHasBeenSet() const { return m_inclusionFiltersHasBeenSet; }
112 template<typename InclusionFiltersT = Aws::Vector<CacheReportFilter>>
113 void SetInclusionFilters(InclusionFiltersT&& value) { m_inclusionFiltersHasBeenSet = true; m_inclusionFilters = std::forward<InclusionFiltersT>(value); }
114 template<typename InclusionFiltersT = Aws::Vector<CacheReportFilter>>
115 StartCacheReportRequest& WithInclusionFilters(InclusionFiltersT&& value) { SetInclusionFilters(std::forward<InclusionFiltersT>(value)); return *this;}
116 template<typename InclusionFiltersT = CacheReportFilter>
117 StartCacheReportRequest& AddInclusionFilters(InclusionFiltersT&& value) { m_inclusionFiltersHasBeenSet = true; m_inclusionFilters.emplace_back(std::forward<InclusionFiltersT>(value)); return *this; }
119
121
127 inline const Aws::Vector<CacheReportFilter>& GetExclusionFilters() const { return m_exclusionFilters; }
128 inline bool ExclusionFiltersHasBeenSet() const { return m_exclusionFiltersHasBeenSet; }
129 template<typename ExclusionFiltersT = Aws::Vector<CacheReportFilter>>
130 void SetExclusionFilters(ExclusionFiltersT&& value) { m_exclusionFiltersHasBeenSet = true; m_exclusionFilters = std::forward<ExclusionFiltersT>(value); }
131 template<typename ExclusionFiltersT = Aws::Vector<CacheReportFilter>>
132 StartCacheReportRequest& WithExclusionFilters(ExclusionFiltersT&& value) { SetExclusionFilters(std::forward<ExclusionFiltersT>(value)); return *this;}
133 template<typename ExclusionFiltersT = CacheReportFilter>
134 StartCacheReportRequest& AddExclusionFilters(ExclusionFiltersT&& value) { m_exclusionFiltersHasBeenSet = true; m_exclusionFilters.emplace_back(std::forward<ExclusionFiltersT>(value)); return *this; }
136
138
144 inline const Aws::String& GetClientToken() const { return m_clientToken; }
145 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
146 template<typename ClientTokenT = Aws::String>
147 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
148 template<typename ClientTokenT = Aws::String>
149 StartCacheReportRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
151
153
158 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
159 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
160 template<typename TagsT = Aws::Vector<Tag>>
161 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
162 template<typename TagsT = Aws::Vector<Tag>>
163 StartCacheReportRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
164 template<typename TagsT = Tag>
165 StartCacheReportRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
167 private:
168
169 Aws::String m_fileShareARN;
170 bool m_fileShareARNHasBeenSet = false;
171
172 Aws::String m_role;
173 bool m_roleHasBeenSet = false;
174
175 Aws::String m_locationARN;
176 bool m_locationARNHasBeenSet = false;
177
178 Aws::String m_bucketRegion;
179 bool m_bucketRegionHasBeenSet = false;
180
181 Aws::String m_vPCEndpointDNSName;
182 bool m_vPCEndpointDNSNameHasBeenSet = false;
183
184 Aws::Vector<CacheReportFilter> m_inclusionFilters;
185 bool m_inclusionFiltersHasBeenSet = false;
186
187 Aws::Vector<CacheReportFilter> m_exclusionFilters;
188 bool m_exclusionFiltersHasBeenSet = false;
189
190 Aws::String m_clientToken;
191 bool m_clientTokenHasBeenSet = false;
192
193 Aws::Vector<Tag> m_tags;
194 bool m_tagsHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace StorageGateway
199} // namespace Aws
StartCacheReportRequest & WithRole(RoleT &&value)
StartCacheReportRequest & WithClientToken(ClientTokenT &&value)
StartCacheReportRequest & AddExclusionFilters(ExclusionFiltersT &&value)
StartCacheReportRequest & AddInclusionFilters(InclusionFiltersT &&value)
AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartCacheReportRequest & WithTags(TagsT &&value)
StartCacheReportRequest & WithInclusionFilters(InclusionFiltersT &&value)
StartCacheReportRequest & WithLocationARN(LocationARNT &&value)
StartCacheReportRequest & WithExclusionFilters(ExclusionFiltersT &&value)
const Aws::Vector< CacheReportFilter > & GetExclusionFilters() const
AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override
AWS_STORAGEGATEWAY_API StartCacheReportRequest()=default
virtual const char * GetServiceRequestName() const override
StartCacheReportRequest & WithVPCEndpointDNSName(VPCEndpointDNSNameT &&value)
const Aws::Vector< CacheReportFilter > & GetInclusionFilters() const
StartCacheReportRequest & WithFileShareARN(FileShareARNT &&value)
StartCacheReportRequest & WithBucketRegion(BucketRegionT &&value)
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