AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SsmAutomation.h
1
6#pragma once
7#include <aws/ssm-incidents/SSMIncidents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/ssm-incidents/model/SsmTargetAccount.h>
11#include <aws/ssm-incidents/model/DynamicSsmParameterValue.h>
12#include <aws/core/utils/memory/stl/AWSVector.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 SSMIncidents
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_SSMINCIDENTS_API SsmAutomation();
40 AWS_SSMINCIDENTS_API SsmAutomation(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SSMINCIDENTS_API SsmAutomation& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetDocumentName() const{ return m_documentName; }
50 inline bool DocumentNameHasBeenSet() const { return m_documentNameHasBeenSet; }
51 inline void SetDocumentName(const Aws::String& value) { m_documentNameHasBeenSet = true; m_documentName = value; }
52 inline void SetDocumentName(Aws::String&& value) { m_documentNameHasBeenSet = true; m_documentName = std::move(value); }
53 inline void SetDocumentName(const char* value) { m_documentNameHasBeenSet = true; m_documentName.assign(value); }
54 inline SsmAutomation& WithDocumentName(const Aws::String& value) { SetDocumentName(value); return *this;}
55 inline SsmAutomation& WithDocumentName(Aws::String&& value) { SetDocumentName(std::move(value)); return *this;}
56 inline SsmAutomation& WithDocumentName(const char* value) { SetDocumentName(value); return *this;}
58
60
63 inline const Aws::String& GetDocumentVersion() const{ return m_documentVersion; }
64 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
65 inline void SetDocumentVersion(const Aws::String& value) { m_documentVersionHasBeenSet = true; m_documentVersion = value; }
66 inline void SetDocumentVersion(Aws::String&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::move(value); }
67 inline void SetDocumentVersion(const char* value) { m_documentVersionHasBeenSet = true; m_documentVersion.assign(value); }
68 inline SsmAutomation& WithDocumentVersion(const Aws::String& value) { SetDocumentVersion(value); return *this;}
69 inline SsmAutomation& WithDocumentVersion(Aws::String&& value) { SetDocumentVersion(std::move(value)); return *this;}
70 inline SsmAutomation& WithDocumentVersion(const char* value) { SetDocumentVersion(value); return *this;}
72
74
78 inline const Aws::Map<Aws::String, DynamicSsmParameterValue>& GetDynamicParameters() const{ return m_dynamicParameters; }
79 inline bool DynamicParametersHasBeenSet() const { return m_dynamicParametersHasBeenSet; }
80 inline void SetDynamicParameters(const Aws::Map<Aws::String, DynamicSsmParameterValue>& value) { m_dynamicParametersHasBeenSet = true; m_dynamicParameters = value; }
81 inline void SetDynamicParameters(Aws::Map<Aws::String, DynamicSsmParameterValue>&& value) { m_dynamicParametersHasBeenSet = true; m_dynamicParameters = std::move(value); }
84 inline SsmAutomation& AddDynamicParameters(const Aws::String& key, const DynamicSsmParameterValue& value) { m_dynamicParametersHasBeenSet = true; m_dynamicParameters.emplace(key, value); return *this; }
85 inline SsmAutomation& AddDynamicParameters(Aws::String&& key, const DynamicSsmParameterValue& value) { m_dynamicParametersHasBeenSet = true; m_dynamicParameters.emplace(std::move(key), value); return *this; }
86 inline SsmAutomation& AddDynamicParameters(const Aws::String& key, DynamicSsmParameterValue&& value) { m_dynamicParametersHasBeenSet = true; m_dynamicParameters.emplace(key, std::move(value)); return *this; }
87 inline SsmAutomation& AddDynamicParameters(Aws::String&& key, DynamicSsmParameterValue&& value) { m_dynamicParametersHasBeenSet = true; m_dynamicParameters.emplace(std::move(key), std::move(value)); return *this; }
88 inline SsmAutomation& AddDynamicParameters(const char* key, DynamicSsmParameterValue&& value) { m_dynamicParametersHasBeenSet = true; m_dynamicParameters.emplace(key, std::move(value)); return *this; }
89 inline SsmAutomation& AddDynamicParameters(const char* key, const DynamicSsmParameterValue& value) { m_dynamicParametersHasBeenSet = true; m_dynamicParameters.emplace(key, value); return *this; }
91
93
97 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetParameters() const{ return m_parameters; }
98 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
99 inline void SetParameters(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
100 inline void SetParameters(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
102 inline SsmAutomation& WithParameters(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetParameters(std::move(value)); return *this;}
103 inline SsmAutomation& AddParameters(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
104 inline SsmAutomation& AddParameters(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
105 inline SsmAutomation& AddParameters(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
106 inline SsmAutomation& AddParameters(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
107 inline SsmAutomation& AddParameters(const char* key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
108 inline SsmAutomation& AddParameters(const char* key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
110
112
116 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
117 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
118 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
119 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
120 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
121 inline SsmAutomation& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
122 inline SsmAutomation& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
123 inline SsmAutomation& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
125
127
131 inline const SsmTargetAccount& GetTargetAccount() const{ return m_targetAccount; }
132 inline bool TargetAccountHasBeenSet() const { return m_targetAccountHasBeenSet; }
133 inline void SetTargetAccount(const SsmTargetAccount& value) { m_targetAccountHasBeenSet = true; m_targetAccount = value; }
134 inline void SetTargetAccount(SsmTargetAccount&& value) { m_targetAccountHasBeenSet = true; m_targetAccount = std::move(value); }
135 inline SsmAutomation& WithTargetAccount(const SsmTargetAccount& value) { SetTargetAccount(value); return *this;}
136 inline SsmAutomation& WithTargetAccount(SsmTargetAccount&& value) { SetTargetAccount(std::move(value)); return *this;}
138 private:
139
140 Aws::String m_documentName;
141 bool m_documentNameHasBeenSet = false;
142
143 Aws::String m_documentVersion;
144 bool m_documentVersionHasBeenSet = false;
145
147 bool m_dynamicParametersHasBeenSet = false;
148
150 bool m_parametersHasBeenSet = false;
151
152 Aws::String m_roleArn;
153 bool m_roleArnHasBeenSet = false;
154
155 SsmTargetAccount m_targetAccount;
156 bool m_targetAccountHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace SSMIncidents
161} // namespace Aws
SsmAutomation & WithRoleArn(const Aws::String &value)
const Aws::String & GetDocumentName() const
SsmAutomation & AddDynamicParameters(const Aws::String &key, DynamicSsmParameterValue &&value)
void SetRoleArn(const Aws::String &value)
const SsmTargetAccount & GetTargetAccount() const
SsmAutomation & AddParameters(Aws::String &&key, const Aws::Vector< Aws::String > &value)
void SetDynamicParameters(const Aws::Map< Aws::String, DynamicSsmParameterValue > &value)
void SetParameters(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
SsmAutomation & WithTargetAccount(SsmTargetAccount &&value)
SsmAutomation & AddParameters(const Aws::String &key, Aws::Vector< Aws::String > &&value)
SsmAutomation & AddDynamicParameters(Aws::String &&key, const DynamicSsmParameterValue &value)
SsmAutomation & WithDocumentName(const char *value)
SsmAutomation & AddDynamicParameters(const char *key, DynamicSsmParameterValue &&value)
SsmAutomation & AddParameters(const Aws::String &key, const Aws::Vector< Aws::String > &value)
SsmAutomation & WithRoleArn(Aws::String &&value)
AWS_SSMINCIDENTS_API SsmAutomation(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
void SetRoleArn(Aws::String &&value)
void SetDocumentName(const Aws::String &value)
SsmAutomation & WithDynamicParameters(const Aws::Map< Aws::String, DynamicSsmParameterValue > &value)
void SetDynamicParameters(Aws::Map< Aws::String, DynamicSsmParameterValue > &&value)
SsmAutomation & WithDocumentName(const Aws::String &value)
SsmAutomation & WithDocumentVersion(const char *value)
SsmAutomation & AddDynamicParameters(const char *key, const DynamicSsmParameterValue &value)
SsmAutomation & AddDynamicParameters(const Aws::String &key, const DynamicSsmParameterValue &value)
void SetTargetAccount(const SsmTargetAccount &value)
AWS_SSMINCIDENTS_API SsmAutomation & operator=(Aws::Utils::Json::JsonView jsonValue)
SsmAutomation & WithDocumentVersion(Aws::String &&value)
const Aws::String & GetRoleArn() const
AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const
SsmAutomation & AddParameters(const char *key, const Aws::Vector< Aws::String > &value)
SsmAutomation & AddParameters(const char *key, Aws::Vector< Aws::String > &&value)
SsmAutomation & WithParameters(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
SsmAutomation & WithParameters(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
AWS_SSMINCIDENTS_API SsmAutomation()
SsmAutomation & WithTargetAccount(const SsmTargetAccount &value)
void SetDocumentName(const char *value)
const Aws::String & GetDocumentVersion() const
SsmAutomation & WithDynamicParameters(Aws::Map< Aws::String, DynamicSsmParameterValue > &&value)
SsmAutomation & WithDocumentVersion(const Aws::String &value)
const Aws::Map< Aws::String, DynamicSsmParameterValue > & GetDynamicParameters() const
SsmAutomation & AddDynamicParameters(Aws::String &&key, DynamicSsmParameterValue &&value)
void SetParameters(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
void SetDocumentVersion(Aws::String &&value)
SsmAutomation & WithDocumentName(Aws::String &&value)
SsmAutomation & AddParameters(Aws::String &&key, Aws::Vector< Aws::String > &&value)
void SetDocumentName(Aws::String &&value)
void SetDocumentVersion(const Aws::String &value)
void SetDocumentVersion(const char *value)
SsmAutomation & WithRoleArn(const char *value)
void SetTargetAccount(SsmTargetAccount &&value)
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