AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
DeleteAppRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/resiliencehub/ResilienceHubRequest.h>
10#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace ResilienceHub {
16namespace Model {
17
21 public:
22 AWS_RESILIENCEHUB_API DeleteAppRequest() = 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 "DeleteApp"; }
29
30 AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override;
31
33
42 inline const Aws::String& GetAppArn() const { return m_appArn; }
43 inline bool AppArnHasBeenSet() const { return m_appArnHasBeenSet; }
44 template <typename AppArnT = Aws::String>
45 void SetAppArn(AppArnT&& value) {
46 m_appArnHasBeenSet = true;
47 m_appArn = std::forward<AppArnT>(value);
48 }
49 template <typename AppArnT = Aws::String>
50 DeleteAppRequest& WithAppArn(AppArnT&& value) {
51 SetAppArn(std::forward<AppArnT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::String& GetClientToken() const { return m_clientToken; }
63 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
64 template <typename ClientTokenT = Aws::String>
65 void SetClientToken(ClientTokenT&& value) {
66 m_clientTokenHasBeenSet = true;
67 m_clientToken = std::forward<ClientTokenT>(value);
68 }
69 template <typename ClientTokenT = Aws::String>
70 DeleteAppRequest& WithClientToken(ClientTokenT&& value) {
71 SetClientToken(std::forward<ClientTokenT>(value));
72 return *this;
73 }
75
77
80 inline bool GetForceDelete() const { return m_forceDelete; }
81 inline bool ForceDeleteHasBeenSet() const { return m_forceDeleteHasBeenSet; }
82 inline void SetForceDelete(bool value) {
83 m_forceDeleteHasBeenSet = true;
84 m_forceDelete = value;
85 }
86 inline DeleteAppRequest& WithForceDelete(bool value) {
87 SetForceDelete(value);
88 return *this;
89 }
91 private:
92 Aws::String m_appArn;
93
95
96 bool m_forceDelete{false};
97 bool m_appArnHasBeenSet = false;
98 bool m_clientTokenHasBeenSet = true;
99 bool m_forceDeleteHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace ResilienceHub
104} // namespace Aws
AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override
AWS_RESILIENCEHUB_API DeleteAppRequest()=default
DeleteAppRequest & WithClientToken(ClientTokenT &&value)
virtual const char * GetServiceRequestName() const override
DeleteAppRequest & WithAppArn(AppArnT &&value)
DeleteAppRequest & WithForceDelete(bool value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String