AWS SDK for C++

AWS SDK for C++ Version 1.11.748

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Budgets {
21namespace Model {
22
30 public:
31 AWS_BUDGETS_API ScpActionDefinition() = default;
34 AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetPolicyId() const { return m_policyId; }
41 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
42 template <typename PolicyIdT = Aws::String>
43 void SetPolicyId(PolicyIdT&& value) {
44 m_policyIdHasBeenSet = true;
45 m_policyId = std::forward<PolicyIdT>(value);
46 }
47 template <typename PolicyIdT = Aws::String>
48 ScpActionDefinition& WithPolicyId(PolicyIdT&& value) {
49 SetPolicyId(std::forward<PolicyIdT>(value));
50 return *this;
51 }
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) {
62 m_targetIdsHasBeenSet = true;
63 m_targetIds = std::forward<TargetIdsT>(value);
64 }
65 template <typename TargetIdsT = Aws::Vector<Aws::String>>
66 ScpActionDefinition& WithTargetIds(TargetIdsT&& value) {
67 SetTargetIds(std::forward<TargetIdsT>(value));
68 return *this;
69 }
70 template <typename TargetIdsT = Aws::String>
71 ScpActionDefinition& AddTargetIds(TargetIdsT&& value) {
72 m_targetIdsHasBeenSet = true;
73 m_targetIds.emplace_back(std::forward<TargetIdsT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_policyId;
79
80 Aws::Vector<Aws::String> m_targetIds;
81 bool m_policyIdHasBeenSet = false;
82 bool m_targetIdsHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace Budgets
87} // 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