7#include <aws/drs/Drs_EXPORTS.h>
8#include <aws/drs/DrsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/drs/model/LaunchActionCategory.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/drs/model/LaunchActionParameter.h>
44 template<
typename ActionCodeT = Aws::String>
45 void SetActionCode(ActionCodeT&& value) { m_actionCodeHasBeenSet =
true; m_actionCode = std::forward<ActionCodeT>(value); }
46 template<
typename ActionCodeT = Aws::String>
54 template<
typename ActionIdT = Aws::String>
55 void SetActionId(ActionIdT&& value) { m_actionIdHasBeenSet =
true; m_actionId = std::forward<ActionIdT>(value); }
56 template<
typename ActionIdT = Aws::String>
64 template<
typename ActionVersionT = Aws::String>
65 void SetActionVersion(ActionVersionT&& value) { m_actionVersionHasBeenSet =
true; m_actionVersion = std::forward<ActionVersionT>(value); }
66 template<
typename ActionVersionT = Aws::String>
76 inline void SetActive(
bool value) { m_activeHasBeenSet =
true; m_active = value; }
92 template<
typename DescriptionT = Aws::String>
93 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
94 template<
typename DescriptionT = Aws::String>
102 template<
typename NameT = Aws::String>
103 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
104 template<
typename NameT = Aws::String>
114 inline void SetOptional(
bool value) { m_optionalHasBeenSet =
true; m_optional = value; }
122 inline void SetOrder(
int value) { m_orderHasBeenSet =
true; m_order = value; }
130 template<
typename ParametersT = Aws::Map<Aws::String, LaunchActionParameter>>
131 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet =
true; m_parameters = std::forward<ParametersT>(value); }
132 template<
typename ParametersT = Aws::Map<Aws::String, LaunchActionParameter>>
134 template<
typename ParametersKeyT = Aws::String,
typename ParametersValueT = LaunchActionParameter>
136 m_parametersHasBeenSet =
true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
return *
this;
144 template<
typename ResourceIdT = Aws::String>
145 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet =
true; m_resourceId = std::forward<ResourceIdT>(value); }
146 template<
typename ResourceIdT = Aws::String>
152 bool m_actionCodeHasBeenSet =
false;
155 bool m_actionIdHasBeenSet =
false;
158 bool m_actionVersionHasBeenSet =
false;
160 bool m_active{
false};
161 bool m_activeHasBeenSet =
false;
164 bool m_categoryHasBeenSet =
false;
167 bool m_descriptionHasBeenSet =
false;
170 bool m_nameHasBeenSet =
false;
172 bool m_optional{
false};
173 bool m_optionalHasBeenSet =
false;
176 bool m_orderHasBeenSet =
false;
179 bool m_parametersHasBeenSet =
false;
182 bool m_resourceIdHasBeenSet =
false;
PutLaunchActionRequest & WithDescription(DescriptionT &&value)
void SetActionCode(ActionCodeT &&value)
PutLaunchActionRequest & WithActionId(ActionIdT &&value)
PutLaunchActionRequest & WithActive(bool value)
PutLaunchActionRequest & WithOrder(int value)
AWS_DRS_API PutLaunchActionRequest()=default
bool OrderHasBeenSet() const
bool CategoryHasBeenSet() const
PutLaunchActionRequest & WithOptional(bool value)
PutLaunchActionRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
void SetDescription(DescriptionT &&value)
void SetResourceId(ResourceIdT &&value)
PutLaunchActionRequest & WithResourceId(ResourceIdT &&value)
PutLaunchActionRequest & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
void SetOptional(bool value)
void SetActionId(ActionIdT &&value)
AWS_DRS_API Aws::String SerializePayload() const override
bool ActionCodeHasBeenSet() const
const Aws::String & GetResourceId() const
const Aws::String & GetDescription() const
bool ActionIdHasBeenSet() const
const Aws::String & GetActionCode() const
bool ActiveHasBeenSet() const
void SetActionVersion(ActionVersionT &&value)
void SetParameters(ParametersT &&value)
void SetName(NameT &&value)
void SetCategory(LaunchActionCategory value)
PutLaunchActionRequest & WithCategory(LaunchActionCategory value)
bool ResourceIdHasBeenSet() const
const Aws::Map< Aws::String, LaunchActionParameter > & GetParameters() const
LaunchActionCategory GetCategory() const
const Aws::String & GetActionId() const
const Aws::String & GetName() const
const Aws::String & GetActionVersion() const
bool OptionalHasBeenSet() const
PutLaunchActionRequest & WithActionCode(ActionCodeT &&value)
bool NameHasBeenSet() const
bool ParametersHasBeenSet() const
bool DescriptionHasBeenSet() const
PutLaunchActionRequest & WithParameters(ParametersT &&value)
void SetActive(bool value)
PutLaunchActionRequest & WithActionVersion(ActionVersionT &&value)
bool ActionVersionHasBeenSet() const
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