AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
45 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
46 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
47 inline GetDocumentRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
48 inline GetDocumentRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
49 inline GetDocumentRequest& WithName(const char* value) { SetName(value); return *this;}
51
53
58 inline const Aws::String& GetVersionName() const{ return m_versionName; }
59 inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
60 inline void SetVersionName(const Aws::String& value) { m_versionNameHasBeenSet = true; m_versionName = value; }
61 inline void SetVersionName(Aws::String&& value) { m_versionNameHasBeenSet = true; m_versionName = std::move(value); }
62 inline void SetVersionName(const char* value) { m_versionNameHasBeenSet = true; m_versionName.assign(value); }
63 inline GetDocumentRequest& WithVersionName(const Aws::String& value) { SetVersionName(value); return *this;}
64 inline GetDocumentRequest& WithVersionName(Aws::String&& value) { SetVersionName(std::move(value)); return *this;}
65 inline GetDocumentRequest& WithVersionName(const char* value) { SetVersionName(value); return *this;}
67
69
72 inline const Aws::String& GetDocumentVersion() const{ return m_documentVersion; }
73 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
74 inline void SetDocumentVersion(const Aws::String& value) { m_documentVersionHasBeenSet = true; m_documentVersion = value; }
75 inline void SetDocumentVersion(Aws::String&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::move(value); }
76 inline void SetDocumentVersion(const char* value) { m_documentVersionHasBeenSet = true; m_documentVersion.assign(value); }
77 inline GetDocumentRequest& WithDocumentVersion(const Aws::String& value) { SetDocumentVersion(value); return *this;}
78 inline GetDocumentRequest& WithDocumentVersion(Aws::String&& value) { SetDocumentVersion(std::move(value)); return *this;}
79 inline GetDocumentRequest& WithDocumentVersion(const char* value) { SetDocumentVersion(value); return *this;}
81
83
87 inline const DocumentFormat& GetDocumentFormat() const{ return m_documentFormat; }
88 inline bool DocumentFormatHasBeenSet() const { return m_documentFormatHasBeenSet; }
89 inline void SetDocumentFormat(const DocumentFormat& value) { m_documentFormatHasBeenSet = true; m_documentFormat = value; }
90 inline void SetDocumentFormat(DocumentFormat&& value) { m_documentFormatHasBeenSet = true; m_documentFormat = std::move(value); }
91 inline GetDocumentRequest& WithDocumentFormat(const DocumentFormat& value) { SetDocumentFormat(value); return *this;}
92 inline GetDocumentRequest& WithDocumentFormat(DocumentFormat&& value) { SetDocumentFormat(std::move(value)); return *this;}
94 private:
95
96 Aws::String m_name;
97 bool m_nameHasBeenSet = false;
98
99 Aws::String m_versionName;
100 bool m_versionNameHasBeenSet = false;
101
102 Aws::String m_documentVersion;
103 bool m_documentVersionHasBeenSet = false;
104
105 DocumentFormat m_documentFormat;
106 bool m_documentFormatHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace SSM
111} // namespace Aws
const Aws::String & GetVersionName() const
GetDocumentRequest & WithName(const char *value)
void SetVersionName(const Aws::String &value)
void SetDocumentVersion(const char *value)
void SetDocumentFormat(const DocumentFormat &value)
AWS_SSM_API Aws::String SerializePayload() const override
const DocumentFormat & GetDocumentFormat() const
GetDocumentRequest & WithVersionName(const char *value)
GetDocumentRequest & WithVersionName(Aws::String &&value)
GetDocumentRequest & WithDocumentFormat(const DocumentFormat &value)
GetDocumentRequest & WithDocumentFormat(DocumentFormat &&value)
GetDocumentRequest & WithName(Aws::String &&value)
GetDocumentRequest & WithDocumentVersion(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
GetDocumentRequest & WithVersionName(const Aws::String &value)
GetDocumentRequest & WithDocumentVersion(Aws::String &&value)
const Aws::String & GetName() const
void SetVersionName(Aws::String &&value)
const Aws::String & GetDocumentVersion() const
void SetDocumentVersion(Aws::String &&value)
GetDocumentRequest & WithDocumentVersion(const char *value)
GetDocumentRequest & WithName(const Aws::String &value)
void SetDocumentVersion(const Aws::String &value)
void SetDocumentFormat(DocumentFormat &&value)
void SetName(const Aws::String &value)
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