AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DeleteDocumentRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/ssm/SSM_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace SSM {
15namespace Model {
16
20 public:
21 AWS_SSM_API DeleteDocumentRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "DeleteDocument"; }
28
29 AWS_SSM_API Aws::String SerializePayload() const override;
30
32
34
37 inline const Aws::String& GetName() const { return m_name; }
38 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
39 template <typename NameT = Aws::String>
40 void SetName(NameT&& value) {
41 m_nameHasBeenSet = true;
42 m_name = std::forward<NameT>(value);
43 }
44 template <typename NameT = Aws::String>
46 SetName(std::forward<NameT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
57 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
58 template <typename DocumentVersionT = Aws::String>
59 void SetDocumentVersion(DocumentVersionT&& value) {
60 m_documentVersionHasBeenSet = true;
61 m_documentVersion = std::forward<DocumentVersionT>(value);
62 }
63 template <typename DocumentVersionT = Aws::String>
64 DeleteDocumentRequest& WithDocumentVersion(DocumentVersionT&& value) {
65 SetDocumentVersion(std::forward<DocumentVersionT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::String& GetVersionName() const { return m_versionName; }
76 inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
77 template <typename VersionNameT = Aws::String>
78 void SetVersionName(VersionNameT&& value) {
79 m_versionNameHasBeenSet = true;
80 m_versionName = std::forward<VersionNameT>(value);
81 }
82 template <typename VersionNameT = Aws::String>
83 DeleteDocumentRequest& WithVersionName(VersionNameT&& value) {
84 SetVersionName(std::forward<VersionNameT>(value));
85 return *this;
86 }
88
90
97 inline bool GetForce() const { return m_force; }
98 inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
99 inline void SetForce(bool value) {
100 m_forceHasBeenSet = true;
101 m_force = value;
102 }
103 inline DeleteDocumentRequest& WithForce(bool value) {
104 SetForce(value);
105 return *this;
106 }
108 private:
109 Aws::String m_name;
110
111 Aws::String m_documentVersion;
112
113 Aws::String m_versionName;
114
115 bool m_force{false};
116 bool m_nameHasBeenSet = false;
117 bool m_documentVersionHasBeenSet = false;
118 bool m_versionNameHasBeenSet = false;
119 bool m_forceHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace SSM
124} // namespace Aws
const Aws::String & GetDocumentVersion() const
AWS_SSM_API DeleteDocumentRequest()=default
virtual const char * GetServiceRequestName() const override
DeleteDocumentRequest & WithName(NameT &&value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DeleteDocumentRequest & WithForce(bool value)
void SetDocumentVersion(DocumentVersionT &&value)
DeleteDocumentRequest & WithDocumentVersion(DocumentVersionT &&value)
AWS_SSM_API Aws::String SerializePayload() const override
DeleteDocumentRequest & WithVersionName(VersionNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String