AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SsmActionDefinition.h
1
6#pragma once
7#include <aws/budgets/Budgets_EXPORTS.h>
8#include <aws/budgets/model/ActionSubType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Budgets
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_BUDGETS_API SsmActionDefinition() = default;
40 AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline ActionSubType GetActionSubType() const { return m_actionSubType; }
48 inline bool ActionSubTypeHasBeenSet() const { return m_actionSubTypeHasBeenSet; }
49 inline void SetActionSubType(ActionSubType value) { m_actionSubTypeHasBeenSet = true; m_actionSubType = value; }
52
54
57 inline const Aws::String& GetRegion() const { return m_region; }
58 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
59 template<typename RegionT = Aws::String>
60 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
61 template<typename RegionT = Aws::String>
62 SsmActionDefinition& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
64
66
69 inline const Aws::Vector<Aws::String>& GetInstanceIds() const { return m_instanceIds; }
70 inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
71 template<typename InstanceIdsT = Aws::Vector<Aws::String>>
72 void SetInstanceIds(InstanceIdsT&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::forward<InstanceIdsT>(value); }
73 template<typename InstanceIdsT = Aws::Vector<Aws::String>>
74 SsmActionDefinition& WithInstanceIds(InstanceIdsT&& value) { SetInstanceIds(std::forward<InstanceIdsT>(value)); return *this;}
75 template<typename InstanceIdsT = Aws::String>
76 SsmActionDefinition& AddInstanceIds(InstanceIdsT&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.emplace_back(std::forward<InstanceIdsT>(value)); return *this; }
78 private:
79
81 bool m_actionSubTypeHasBeenSet = false;
82
83 Aws::String m_region;
84 bool m_regionHasBeenSet = false;
85
86 Aws::Vector<Aws::String> m_instanceIds;
87 bool m_instanceIdsHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace Budgets
92} // namespace Aws
SsmActionDefinition & WithRegion(RegionT &&value)
const Aws::Vector< Aws::String > & GetInstanceIds() const
AWS_BUDGETS_API SsmActionDefinition()=default
SsmActionDefinition & WithActionSubType(ActionSubType value)
AWS_BUDGETS_API SsmActionDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
SsmActionDefinition & WithInstanceIds(InstanceIdsT &&value)
AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const
SsmActionDefinition & AddInstanceIds(InstanceIdsT &&value)
AWS_BUDGETS_API SsmActionDefinition(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue