AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetDocumentRequest.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#include <aws/ssm/model/DocumentFormat.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SSM {
16namespace Model {
17
21 public:
22 AWS_SSM_API GetDocumentRequest() = 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 "GetDocument"; }
29
30 AWS_SSM_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
46 GetDocumentRequest& WithName(NameT&& value) {
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
58 inline const Aws::String& GetVersionName() const { return m_versionName; }
59 inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
60 template <typename VersionNameT = Aws::String>
61 void SetVersionName(VersionNameT&& value) {
62 m_versionNameHasBeenSet = true;
63 m_versionName = std::forward<VersionNameT>(value);
64 }
65 template <typename VersionNameT = Aws::String>
66 GetDocumentRequest& WithVersionName(VersionNameT&& value) {
67 SetVersionName(std::forward<VersionNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
77 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
78 template <typename DocumentVersionT = Aws::String>
79 void SetDocumentVersion(DocumentVersionT&& value) {
80 m_documentVersionHasBeenSet = true;
81 m_documentVersion = std::forward<DocumentVersionT>(value);
82 }
83 template <typename DocumentVersionT = Aws::String>
84 GetDocumentRequest& WithDocumentVersion(DocumentVersionT&& value) {
85 SetDocumentVersion(std::forward<DocumentVersionT>(value));
86 return *this;
87 }
89
91
95 inline DocumentFormat GetDocumentFormat() const { return m_documentFormat; }
96 inline bool DocumentFormatHasBeenSet() const { return m_documentFormatHasBeenSet; }
97 inline void SetDocumentFormat(DocumentFormat value) {
98 m_documentFormatHasBeenSet = true;
99 m_documentFormat = value;
100 }
102 SetDocumentFormat(value);
103 return *this;
104 }
106 private:
107 Aws::String m_name;
108
109 Aws::String m_versionName;
110
111 Aws::String m_documentVersion;
112
113 DocumentFormat m_documentFormat{DocumentFormat::NOT_SET};
114 bool m_nameHasBeenSet = false;
115 bool m_versionNameHasBeenSet = false;
116 bool m_documentVersionHasBeenSet = false;
117 bool m_documentFormatHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace SSM
122} // namespace Aws
void SetDocumentVersion(DocumentVersionT &&value)
GetDocumentRequest & WithVersionName(VersionNameT &&value)
GetDocumentRequest & WithName(NameT &&value)
const Aws::String & GetVersionName() const
GetDocumentRequest & WithDocumentVersion(DocumentVersionT &&value)
AWS_SSM_API Aws::String SerializePayload() const override
void SetDocumentFormat(DocumentFormat value)
void SetVersionName(VersionNameT &&value)
virtual const char * GetServiceRequestName() const override
GetDocumentRequest & WithDocumentFormat(DocumentFormat value)
AWS_SSM_API GetDocumentRequest()=default
const Aws::String & GetName() const
const Aws::String & GetDocumentVersion() const
AWS_SSM_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