AWS SDK for C++

AWS SDK for C++ Version 1.11.550

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches
GetDocumentRequest.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ssm/model/DocumentFormat.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SSM
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_SSM_API GetDocumentRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "GetDocument"; }
32
33 AWS_SSM_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template<typename NameT = Aws::String>
45 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
46 template<typename NameT = Aws::String>
47 GetDocumentRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
49
51
56 inline const Aws::String& GetVersionName() const { return m_versionName; }
57 inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
58 template<typename VersionNameT = Aws::String>
59 void SetVersionName(VersionNameT&& value) { m_versionNameHasBeenSet = true; m_versionName = std::forward<VersionNameT>(value); }
60 template<typename VersionNameT = Aws::String>
61 GetDocumentRequest& WithVersionName(VersionNameT&& value) { SetVersionName(std::forward<VersionNameT>(value)); return *this;}
63
65
68 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
69 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
70 template<typename DocumentVersionT = Aws::String>
71 void SetDocumentVersion(DocumentVersionT&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::forward<DocumentVersionT>(value); }
72 template<typename DocumentVersionT = Aws::String>
73 GetDocumentRequest& WithDocumentVersion(DocumentVersionT&& value) { SetDocumentVersion(std::forward<DocumentVersionT>(value)); return *this;}
75
77
81 inline DocumentFormat GetDocumentFormat() const { return m_documentFormat; }
82 inline bool DocumentFormatHasBeenSet() const { return m_documentFormatHasBeenSet; }
83 inline void SetDocumentFormat(DocumentFormat value) { m_documentFormatHasBeenSet = true; m_documentFormat = value; }
86 private:
87
88 Aws::String m_name;
89 bool m_nameHasBeenSet = false;
90
91 Aws::String m_versionName;
92 bool m_versionNameHasBeenSet = false;
93
94 Aws::String m_documentVersion;
95 bool m_documentVersionHasBeenSet = false;
96
98 bool m_documentFormatHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace SSM
103} // 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