AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SsmDocument.h
1
6#pragma once
7#include <aws/mgn/Mgn_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/mgn/model/SsmExternalParameter.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/mgn/model/SsmParameterStoreParameter.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace mgn
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_MGN_API SsmDocument();
42
43
45
48 inline const Aws::String& GetActionName() const{ return m_actionName; }
49 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
50 inline void SetActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName = value; }
51 inline void SetActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName = std::move(value); }
52 inline void SetActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.assign(value); }
53 inline SsmDocument& WithActionName(const Aws::String& value) { SetActionName(value); return *this;}
54 inline SsmDocument& WithActionName(Aws::String&& value) { SetActionName(std::move(value)); return *this;}
55 inline SsmDocument& WithActionName(const char* value) { SetActionName(value); return *this;}
57
59
62 inline const Aws::Map<Aws::String, SsmExternalParameter>& GetExternalParameters() const{ return m_externalParameters; }
63 inline bool ExternalParametersHasBeenSet() const { return m_externalParametersHasBeenSet; }
64 inline void SetExternalParameters(const Aws::Map<Aws::String, SsmExternalParameter>& value) { m_externalParametersHasBeenSet = true; m_externalParameters = value; }
65 inline void SetExternalParameters(Aws::Map<Aws::String, SsmExternalParameter>&& value) { m_externalParametersHasBeenSet = true; m_externalParameters = std::move(value); }
68 inline SsmDocument& AddExternalParameters(const Aws::String& key, const SsmExternalParameter& value) { m_externalParametersHasBeenSet = true; m_externalParameters.emplace(key, value); return *this; }
69 inline SsmDocument& AddExternalParameters(Aws::String&& key, const SsmExternalParameter& value) { m_externalParametersHasBeenSet = true; m_externalParameters.emplace(std::move(key), value); return *this; }
70 inline SsmDocument& AddExternalParameters(const Aws::String& key, SsmExternalParameter&& value) { m_externalParametersHasBeenSet = true; m_externalParameters.emplace(key, std::move(value)); return *this; }
71 inline SsmDocument& AddExternalParameters(Aws::String&& key, SsmExternalParameter&& value) { m_externalParametersHasBeenSet = true; m_externalParameters.emplace(std::move(key), std::move(value)); return *this; }
72 inline SsmDocument& AddExternalParameters(const char* key, SsmExternalParameter&& value) { m_externalParametersHasBeenSet = true; m_externalParameters.emplace(key, std::move(value)); return *this; }
73 inline SsmDocument& AddExternalParameters(const char* key, const SsmExternalParameter& value) { m_externalParametersHasBeenSet = true; m_externalParameters.emplace(key, value); return *this; }
75
77
80 inline bool GetMustSucceedForCutover() const{ return m_mustSucceedForCutover; }
81 inline bool MustSucceedForCutoverHasBeenSet() const { return m_mustSucceedForCutoverHasBeenSet; }
82 inline void SetMustSucceedForCutover(bool value) { m_mustSucceedForCutoverHasBeenSet = true; m_mustSucceedForCutover = value; }
83 inline SsmDocument& WithMustSucceedForCutover(bool value) { SetMustSucceedForCutover(value); return *this;}
85
87
91 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
92 inline void SetParameters(const Aws::Map<Aws::String, Aws::Vector<SsmParameterStoreParameter>>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
93 inline void SetParameters(Aws::Map<Aws::String, Aws::Vector<SsmParameterStoreParameter>>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
96 inline SsmDocument& AddParameters(const Aws::String& key, const Aws::Vector<SsmParameterStoreParameter>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
97 inline SsmDocument& AddParameters(Aws::String&& key, const Aws::Vector<SsmParameterStoreParameter>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
98 inline SsmDocument& AddParameters(const Aws::String& key, Aws::Vector<SsmParameterStoreParameter>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
99 inline SsmDocument& AddParameters(Aws::String&& key, Aws::Vector<SsmParameterStoreParameter>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
100 inline SsmDocument& AddParameters(const char* key, Aws::Vector<SsmParameterStoreParameter>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
101 inline SsmDocument& AddParameters(const char* key, const Aws::Vector<SsmParameterStoreParameter>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
103
105
108 inline const Aws::String& GetSsmDocumentName() const{ return m_ssmDocumentName; }
109 inline bool SsmDocumentNameHasBeenSet() const { return m_ssmDocumentNameHasBeenSet; }
110 inline void SetSsmDocumentName(const Aws::String& value) { m_ssmDocumentNameHasBeenSet = true; m_ssmDocumentName = value; }
111 inline void SetSsmDocumentName(Aws::String&& value) { m_ssmDocumentNameHasBeenSet = true; m_ssmDocumentName = std::move(value); }
112 inline void SetSsmDocumentName(const char* value) { m_ssmDocumentNameHasBeenSet = true; m_ssmDocumentName.assign(value); }
113 inline SsmDocument& WithSsmDocumentName(const Aws::String& value) { SetSsmDocumentName(value); return *this;}
114 inline SsmDocument& WithSsmDocumentName(Aws::String&& value) { SetSsmDocumentName(std::move(value)); return *this;}
115 inline SsmDocument& WithSsmDocumentName(const char* value) { SetSsmDocumentName(value); return *this;}
117
119
122 inline int GetTimeoutSeconds() const{ return m_timeoutSeconds; }
123 inline bool TimeoutSecondsHasBeenSet() const { return m_timeoutSecondsHasBeenSet; }
124 inline void SetTimeoutSeconds(int value) { m_timeoutSecondsHasBeenSet = true; m_timeoutSeconds = value; }
125 inline SsmDocument& WithTimeoutSeconds(int value) { SetTimeoutSeconds(value); return *this;}
127 private:
128
129 Aws::String m_actionName;
130 bool m_actionNameHasBeenSet = false;
131
133 bool m_externalParametersHasBeenSet = false;
134
135 bool m_mustSucceedForCutover;
136 bool m_mustSucceedForCutoverHasBeenSet = false;
137
139 bool m_parametersHasBeenSet = false;
140
141 Aws::String m_ssmDocumentName;
142 bool m_ssmDocumentNameHasBeenSet = false;
143
144 int m_timeoutSeconds;
145 bool m_timeoutSecondsHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace mgn
150} // namespace Aws
SsmDocument & WithSsmDocumentName(const char *value)
void SetSsmDocumentName(Aws::String &&value)
SsmDocument & AddParameters(const char *key, const Aws::Vector< SsmParameterStoreParameter > &value)
bool GetMustSucceedForCutover() const
Definition SsmDocument.h:80
bool TimeoutSecondsHasBeenSet() const
const Aws::String & GetSsmDocumentName() const
void SetExternalParameters(Aws::Map< Aws::String, SsmExternalParameter > &&value)
Definition SsmDocument.h:65
SsmDocument & AddExternalParameters(Aws::String &&key, const SsmExternalParameter &value)
Definition SsmDocument.h:69
void SetMustSucceedForCutover(bool value)
Definition SsmDocument.h:82
SsmDocument & WithSsmDocumentName(const Aws::String &value)
SsmDocument & AddParameters(const Aws::String &key, Aws::Vector< SsmParameterStoreParameter > &&value)
Definition SsmDocument.h:98
SsmDocument & AddExternalParameters(const char *key, const SsmExternalParameter &value)
Definition SsmDocument.h:73
SsmDocument & WithMustSucceedForCutover(bool value)
Definition SsmDocument.h:83
SsmDocument & WithParameters(Aws::Map< Aws::String, Aws::Vector< SsmParameterStoreParameter > > &&value)
Definition SsmDocument.h:95
const Aws::Map< Aws::String, Aws::Vector< SsmParameterStoreParameter > > & GetParameters() const
Definition SsmDocument.h:90
SsmDocument & AddParameters(Aws::String &&key, Aws::Vector< SsmParameterStoreParameter > &&value)
Definition SsmDocument.h:99
SsmDocument & WithExternalParameters(Aws::Map< Aws::String, SsmExternalParameter > &&value)
Definition SsmDocument.h:67
SsmDocument & WithSsmDocumentName(Aws::String &&value)
SsmDocument & WithExternalParameters(const Aws::Map< Aws::String, SsmExternalParameter > &value)
Definition SsmDocument.h:66
bool ParametersHasBeenSet() const
Definition SsmDocument.h:91
void SetExternalParameters(const Aws::Map< Aws::String, SsmExternalParameter > &value)
Definition SsmDocument.h:64
SsmDocument & AddParameters(const char *key, Aws::Vector< SsmParameterStoreParameter > &&value)
void SetActionName(const char *value)
Definition SsmDocument.h:52
const Aws::String & GetActionName() const
Definition SsmDocument.h:48
bool ActionNameHasBeenSet() const
Definition SsmDocument.h:49
void SetParameters(Aws::Map< Aws::String, Aws::Vector< SsmParameterStoreParameter > > &&value)
Definition SsmDocument.h:93
SsmDocument & AddExternalParameters(const Aws::String &key, const SsmExternalParameter &value)
Definition SsmDocument.h:68
AWS_MGN_API SsmDocument & operator=(Aws::Utils::Json::JsonView jsonValue)
SsmDocument & AddExternalParameters(const char *key, SsmExternalParameter &&value)
Definition SsmDocument.h:72
void SetParameters(const Aws::Map< Aws::String, Aws::Vector< SsmParameterStoreParameter > > &value)
Definition SsmDocument.h:92
bool SsmDocumentNameHasBeenSet() const
bool ExternalParametersHasBeenSet() const
Definition SsmDocument.h:63
SsmDocument & AddParameters(const Aws::String &key, const Aws::Vector< SsmParameterStoreParameter > &value)
Definition SsmDocument.h:96
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTimeoutSeconds(int value)
SsmDocument & AddExternalParameters(const Aws::String &key, SsmExternalParameter &&value)
Definition SsmDocument.h:70
const Aws::Map< Aws::String, SsmExternalParameter > & GetExternalParameters() const
Definition SsmDocument.h:62
void SetActionName(Aws::String &&value)
Definition SsmDocument.h:51
bool MustSucceedForCutoverHasBeenSet() const
Definition SsmDocument.h:81
SsmDocument & WithTimeoutSeconds(int value)
SsmDocument & WithActionName(const Aws::String &value)
Definition SsmDocument.h:53
SsmDocument & AddParameters(Aws::String &&key, const Aws::Vector< SsmParameterStoreParameter > &value)
Definition SsmDocument.h:97
SsmDocument & WithActionName(const char *value)
Definition SsmDocument.h:55
SsmDocument & WithActionName(Aws::String &&value)
Definition SsmDocument.h:54
AWS_MGN_API SsmDocument(Aws::Utils::Json::JsonView jsonValue)
void SetActionName(const Aws::String &value)
Definition SsmDocument.h:50
void SetSsmDocumentName(const Aws::String &value)
void SetSsmDocumentName(const char *value)
SsmDocument & WithParameters(const Aws::Map< Aws::String, Aws::Vector< SsmParameterStoreParameter > > &value)
Definition SsmDocument.h:94
SsmDocument & AddExternalParameters(Aws::String &&key, SsmExternalParameter &&value)
Definition SsmDocument.h:71
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue