AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPolicyId(const Aws::String& value) { m_policyIdHasBeenSet = true; m_policyId = value; }
49 inline void SetPolicyId(Aws::String&& value) { m_policyIdHasBeenSet = true; m_policyId = std::move(value); }
50 inline void SetPolicyId(const char* value) { m_policyIdHasBeenSet = true; m_policyId.assign(value); }
51 inline ScpActionDefinition& WithPolicyId(const Aws::String& value) { SetPolicyId(value); return *this;}
52 inline ScpActionDefinition& WithPolicyId(Aws::String&& value) { SetPolicyId(std::move(value)); return *this;}
53 inline ScpActionDefinition& WithPolicyId(const char* value) { SetPolicyId(value); return *this;}
55
57
60 inline const Aws::Vector<Aws::String>& GetTargetIds() const{ return m_targetIds; }
61 inline bool TargetIdsHasBeenSet() const { return m_targetIdsHasBeenSet; }
62 inline void SetTargetIds(const Aws::Vector<Aws::String>& value) { m_targetIdsHasBeenSet = true; m_targetIds = value; }
63 inline void SetTargetIds(Aws::Vector<Aws::String>&& value) { m_targetIdsHasBeenSet = true; m_targetIds = std::move(value); }
64 inline ScpActionDefinition& WithTargetIds(const Aws::Vector<Aws::String>& value) { SetTargetIds(value); return *this;}
65 inline ScpActionDefinition& WithTargetIds(Aws::Vector<Aws::String>&& value) { SetTargetIds(std::move(value)); return *this;}
66 inline ScpActionDefinition& AddTargetIds(const Aws::String& value) { m_targetIdsHasBeenSet = true; m_targetIds.push_back(value); return *this; }
67 inline ScpActionDefinition& AddTargetIds(Aws::String&& value) { m_targetIdsHasBeenSet = true; m_targetIds.push_back(std::move(value)); return *this; }
68 inline ScpActionDefinition& AddTargetIds(const char* value) { m_targetIdsHasBeenSet = true; m_targetIds.push_back(value); return *this; }
70 private:
71
72 Aws::String m_policyId;
73 bool m_policyIdHasBeenSet = false;
74
75 Aws::Vector<Aws::String> m_targetIds;
76 bool m_targetIdsHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace Budgets
81} // namespace Aws
ScpActionDefinition & WithPolicyId(const char *value)
ScpActionDefinition & WithPolicyId(const Aws::String &value)
ScpActionDefinition & AddTargetIds(Aws::String &&value)
ScpActionDefinition & AddTargetIds(const Aws::String &value)
ScpActionDefinition & AddTargetIds(const char *value)
AWS_BUDGETS_API ScpActionDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTargetIds(Aws::Vector< Aws::String > &&value)
ScpActionDefinition & WithPolicyId(Aws::String &&value)
AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BUDGETS_API ScpActionDefinition(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetTargetIds() const
void SetPolicyId(const Aws::String &value)
ScpActionDefinition & WithTargetIds(Aws::Vector< Aws::String > &&value)
void SetTargetIds(const Aws::Vector< Aws::String > &value)
ScpActionDefinition & WithTargetIds(const Aws::Vector< Aws::String > &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