AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IamActionDefinition.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 IamActionDefinition();
39 AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
47 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
48 inline void SetPolicyArn(const Aws::String& value) { m_policyArnHasBeenSet = true; m_policyArn = value; }
49 inline void SetPolicyArn(Aws::String&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::move(value); }
50 inline void SetPolicyArn(const char* value) { m_policyArnHasBeenSet = true; m_policyArn.assign(value); }
51 inline IamActionDefinition& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
52 inline IamActionDefinition& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
53 inline IamActionDefinition& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
55
57
60 inline const Aws::Vector<Aws::String>& GetRoles() const{ return m_roles; }
61 inline bool RolesHasBeenSet() const { return m_rolesHasBeenSet; }
62 inline void SetRoles(const Aws::Vector<Aws::String>& value) { m_rolesHasBeenSet = true; m_roles = value; }
63 inline void SetRoles(Aws::Vector<Aws::String>&& value) { m_rolesHasBeenSet = true; m_roles = std::move(value); }
64 inline IamActionDefinition& WithRoles(const Aws::Vector<Aws::String>& value) { SetRoles(value); return *this;}
65 inline IamActionDefinition& WithRoles(Aws::Vector<Aws::String>&& value) { SetRoles(std::move(value)); return *this;}
66 inline IamActionDefinition& AddRoles(const Aws::String& value) { m_rolesHasBeenSet = true; m_roles.push_back(value); return *this; }
67 inline IamActionDefinition& AddRoles(Aws::String&& value) { m_rolesHasBeenSet = true; m_roles.push_back(std::move(value)); return *this; }
68 inline IamActionDefinition& AddRoles(const char* value) { m_rolesHasBeenSet = true; m_roles.push_back(value); return *this; }
70
72
75 inline const Aws::Vector<Aws::String>& GetGroups() const{ return m_groups; }
76 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
77 inline void SetGroups(const Aws::Vector<Aws::String>& value) { m_groupsHasBeenSet = true; m_groups = value; }
78 inline void SetGroups(Aws::Vector<Aws::String>&& value) { m_groupsHasBeenSet = true; m_groups = std::move(value); }
79 inline IamActionDefinition& WithGroups(const Aws::Vector<Aws::String>& value) { SetGroups(value); return *this;}
80 inline IamActionDefinition& WithGroups(Aws::Vector<Aws::String>&& value) { SetGroups(std::move(value)); return *this;}
81 inline IamActionDefinition& AddGroups(const Aws::String& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
82 inline IamActionDefinition& AddGroups(Aws::String&& value) { m_groupsHasBeenSet = true; m_groups.push_back(std::move(value)); return *this; }
83 inline IamActionDefinition& AddGroups(const char* value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
85
87
90 inline const Aws::Vector<Aws::String>& GetUsers() const{ return m_users; }
91 inline bool UsersHasBeenSet() const { return m_usersHasBeenSet; }
92 inline void SetUsers(const Aws::Vector<Aws::String>& value) { m_usersHasBeenSet = true; m_users = value; }
93 inline void SetUsers(Aws::Vector<Aws::String>&& value) { m_usersHasBeenSet = true; m_users = std::move(value); }
94 inline IamActionDefinition& WithUsers(const Aws::Vector<Aws::String>& value) { SetUsers(value); return *this;}
95 inline IamActionDefinition& WithUsers(Aws::Vector<Aws::String>&& value) { SetUsers(std::move(value)); return *this;}
96 inline IamActionDefinition& AddUsers(const Aws::String& value) { m_usersHasBeenSet = true; m_users.push_back(value); return *this; }
97 inline IamActionDefinition& AddUsers(Aws::String&& value) { m_usersHasBeenSet = true; m_users.push_back(std::move(value)); return *this; }
98 inline IamActionDefinition& AddUsers(const char* value) { m_usersHasBeenSet = true; m_users.push_back(value); return *this; }
100 private:
101
102 Aws::String m_policyArn;
103 bool m_policyArnHasBeenSet = false;
104
106 bool m_rolesHasBeenSet = false;
107
109 bool m_groupsHasBeenSet = false;
110
112 bool m_usersHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace Budgets
117} // namespace Aws
void SetRoles(const Aws::Vector< Aws::String > &value)
IamActionDefinition & AddRoles(const Aws::String &value)
IamActionDefinition & WithUsers(const Aws::Vector< Aws::String > &value)
void SetGroups(const Aws::Vector< Aws::String > &value)
IamActionDefinition & WithUsers(Aws::Vector< Aws::String > &&value)
IamActionDefinition & AddRoles(Aws::String &&value)
AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const
IamActionDefinition & WithRoles(Aws::Vector< Aws::String > &&value)
IamActionDefinition & AddGroups(Aws::String &&value)
IamActionDefinition & AddGroups(const Aws::String &value)
IamActionDefinition & WithPolicyArn(const char *value)
IamActionDefinition & WithPolicyArn(const Aws::String &value)
const Aws::Vector< Aws::String > & GetGroups() const
void SetUsers(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetRoles() const
const Aws::Vector< Aws::String > & GetUsers() const
AWS_BUDGETS_API IamActionDefinition(Aws::Utils::Json::JsonView jsonValue)
IamActionDefinition & WithGroups(const Aws::Vector< Aws::String > &value)
IamActionDefinition & AddUsers(const char *value)
IamActionDefinition & AddUsers(const Aws::String &value)
AWS_BUDGETS_API IamActionDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
IamActionDefinition & WithGroups(Aws::Vector< Aws::String > &&value)
void SetGroups(Aws::Vector< Aws::String > &&value)
void SetUsers(Aws::Vector< Aws::String > &&value)
void SetRoles(Aws::Vector< Aws::String > &&value)
IamActionDefinition & WithPolicyArn(Aws::String &&value)
IamActionDefinition & AddGroups(const char *value)
IamActionDefinition & AddRoles(const char *value)
IamActionDefinition & AddUsers(Aws::String &&value)
IamActionDefinition & WithRoles(const Aws::Vector< Aws::String > &value)
void SetPolicyArn(const 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