AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
ResetCacheRequest.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3Request.h>
8#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace AmplifyGen3 {
16namespace Model {
17
21 public:
22 AWS_AMPLIFYGEN3_API ResetCacheRequest() = 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 "ResetCache"; }
29
30 AWS_AMPLIFYGEN3_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetAppName() const { return m_appName; }
37 inline bool AppNameHasBeenSet() const { return m_appNameHasBeenSet; }
38 template <typename AppNameT = Aws::String>
39 void SetAppName(AppNameT&& value) {
40 m_appNameHasBeenSet = true;
41 m_appName = std::forward<AppNameT>(value);
42 }
43 template <typename AppNameT = Aws::String>
44 ResetCacheRequest& WithAppName(AppNameT&& value) {
45 SetAppName(std::forward<AppNameT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
55 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
56 template <typename EnvironmentNameT = Aws::String>
57 void SetEnvironmentName(EnvironmentNameT&& value) {
58 m_environmentNameHasBeenSet = true;
59 m_environmentName = std::forward<EnvironmentNameT>(value);
60 }
61 template <typename EnvironmentNameT = Aws::String>
62 ResetCacheRequest& WithEnvironmentName(EnvironmentNameT&& value) {
63 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetDeploymentId() const { return m_deploymentId; }
73 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
74 template <typename DeploymentIdT = Aws::String>
75 void SetDeploymentId(DeploymentIdT&& value) {
76 m_deploymentIdHasBeenSet = true;
77 m_deploymentId = std::forward<DeploymentIdT>(value);
78 }
79 template <typename DeploymentIdT = Aws::String>
80 ResetCacheRequest& WithDeploymentId(DeploymentIdT&& value) {
81 SetDeploymentId(std::forward<DeploymentIdT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::Vector<Aws::String>& GetCacheTags() const { return m_cacheTags; }
91 inline bool CacheTagsHasBeenSet() const { return m_cacheTagsHasBeenSet; }
92 template <typename CacheTagsT = Aws::Vector<Aws::String>>
93 void SetCacheTags(CacheTagsT&& value) {
94 m_cacheTagsHasBeenSet = true;
95 m_cacheTags = std::forward<CacheTagsT>(value);
96 }
97 template <typename CacheTagsT = Aws::Vector<Aws::String>>
98 ResetCacheRequest& WithCacheTags(CacheTagsT&& value) {
99 SetCacheTags(std::forward<CacheTagsT>(value));
100 return *this;
101 }
102 template <typename CacheTagsT = Aws::String>
103 ResetCacheRequest& AddCacheTags(CacheTagsT&& value) {
104 m_cacheTagsHasBeenSet = true;
105 m_cacheTags.emplace_back(std::forward<CacheTagsT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_appName;
111
112 Aws::String m_environmentName;
113
114 Aws::String m_deploymentId;
115
116 Aws::Vector<Aws::String> m_cacheTags;
117 bool m_appNameHasBeenSet = false;
118 bool m_environmentNameHasBeenSet = false;
119 bool m_deploymentIdHasBeenSet = false;
120 bool m_cacheTagsHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace AmplifyGen3
125} // namespace Aws
const Aws::String & GetEnvironmentName() const
ResetCacheRequest & AddCacheTags(CacheTagsT &&value)
AWS_AMPLIFYGEN3_API ResetCacheRequest()=default
const Aws::String & GetDeploymentId() const
void SetEnvironmentName(EnvironmentNameT &&value)
ResetCacheRequest & WithEnvironmentName(EnvironmentNameT &&value)
const Aws::Vector< Aws::String > & GetCacheTags() const
ResetCacheRequest & WithCacheTags(CacheTagsT &&value)
ResetCacheRequest & WithDeploymentId(DeploymentIdT &&value)
AWS_AMPLIFYGEN3_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
ResetCacheRequest & WithAppName(AppNameT &&value)
void SetDeploymentId(DeploymentIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector