AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ScpActionDefinition.h
1
6#pragma once
7#include <aws/budgets/Budgets_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Budgets
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_BUDGETS_API ScpActionDefinition() = default;
39 AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetPolicyId() const { return m_policyId; }
47 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
48 template<typename PolicyIdT = Aws::String>
49 void SetPolicyId(PolicyIdT&& value) { m_policyIdHasBeenSet = true; m_policyId = std::forward<PolicyIdT>(value); }
50 template<typename PolicyIdT = Aws::String>
51 ScpActionDefinition& WithPolicyId(PolicyIdT&& value) { SetPolicyId(std::forward<PolicyIdT>(value)); return *this;}
53
55
58 inline const Aws::Vector<Aws::String>& GetTargetIds() const { return m_targetIds; }
59 inline bool TargetIdsHasBeenSet() const { return m_targetIdsHasBeenSet; }
60 template<typename TargetIdsT = Aws::Vector<Aws::String>>
61 void SetTargetIds(TargetIdsT&& value) { m_targetIdsHasBeenSet = true; m_targetIds = std::forward<TargetIdsT>(value); }
62 template<typename TargetIdsT = Aws::Vector<Aws::String>>
63 ScpActionDefinition& WithTargetIds(TargetIdsT&& value) { SetTargetIds(std::forward<TargetIdsT>(value)); return *this;}
64 template<typename TargetIdsT = Aws::String>
65 ScpActionDefinition& AddTargetIds(TargetIdsT&& value) { m_targetIdsHasBeenSet = true; m_targetIds.emplace_back(std::forward<TargetIdsT>(value)); return *this; }
67 private:
68
69 Aws::String m_policyId;
70 bool m_policyIdHasBeenSet = false;
71
72 Aws::Vector<Aws::String> m_targetIds;
73 bool m_targetIdsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Budgets
78} // namespace Aws
AWS_BUDGETS_API ScpActionDefinition()=default
AWS_BUDGETS_API ScpActionDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
ScpActionDefinition & WithPolicyId(PolicyIdT &&value)
ScpActionDefinition & AddTargetIds(TargetIdsT &&value)
AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BUDGETS_API ScpActionDefinition(Aws::Utils::Json::JsonView jsonValue)
ScpActionDefinition & WithTargetIds(TargetIdsT &&value)
const Aws::Vector< Aws::String > & GetTargetIds() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue