AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
ConfigurableEnvironmentAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/datazone/DataZone_EXPORTS.h>
10#include <aws/datazone/model/ConfigurableActionParameter.h>
11#include <aws/datazone/model/ConfigurableActionTypeAuthorization.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DataZone {
23namespace Model {
24
32 public:
33 AWS_DATAZONE_API ConfigurableEnvironmentAction() = default;
36 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetType() const { return m_type; }
43 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
44 template <typename TypeT = Aws::String>
45 void SetType(TypeT&& value) {
46 m_typeHasBeenSet = true;
47 m_type = std::forward<TypeT>(value);
48 }
49 template <typename TypeT = Aws::String>
51 SetType(std::forward<TypeT>(value));
52 return *this;
53 }
55
57
61 inline ConfigurableActionTypeAuthorization GetAuth() const { return m_auth; }
62 inline bool AuthHasBeenSet() const { return m_authHasBeenSet; }
64 m_authHasBeenSet = true;
65 m_auth = value;
66 }
68 SetAuth(value);
69 return *this;
70 }
72
74
77 inline const Aws::Vector<ConfigurableActionParameter>& GetParameters() const { return m_parameters; }
78 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
79 template <typename ParametersT = Aws::Vector<ConfigurableActionParameter>>
80 void SetParameters(ParametersT&& value) {
81 m_parametersHasBeenSet = true;
82 m_parameters = std::forward<ParametersT>(value);
83 }
84 template <typename ParametersT = Aws::Vector<ConfigurableActionParameter>>
86 SetParameters(std::forward<ParametersT>(value));
87 return *this;
88 }
89 template <typename ParametersT = ConfigurableActionParameter>
91 m_parametersHasBeenSet = true;
92 m_parameters.emplace_back(std::forward<ParametersT>(value));
93 return *this;
94 }
96 private:
97 Aws::String m_type;
98
100
102 bool m_typeHasBeenSet = false;
103 bool m_authHasBeenSet = false;
104 bool m_parametersHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace DataZone
109} // namespace Aws
ConfigurableEnvironmentAction & WithAuth(ConfigurableActionTypeAuthorization value)
AWS_DATAZONE_API ConfigurableEnvironmentAction & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAZONE_API ConfigurableEnvironmentAction()=default
ConfigurableEnvironmentAction & AddParameters(ParametersT &&value)
ConfigurableEnvironmentAction & WithType(TypeT &&value)
const Aws::Vector< ConfigurableActionParameter > & GetParameters() const
void SetAuth(ConfigurableActionTypeAuthorization value)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DATAZONE_API ConfigurableEnvironmentAction(Aws::Utils::Json::JsonView jsonValue)
ConfigurableEnvironmentAction & WithParameters(ParametersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue