AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ArgoCdRoleMapping.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/eks/EKS_EXPORTS.h>
9#include <aws/eks/model/ArgoCdRole.h>
10#include <aws/eks/model/SsoIdentity.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace EKS {
22namespace Model {
23
32 public:
33 AWS_EKS_API ArgoCdRoleMapping() = default;
37
39
45 inline ArgoCdRole GetRole() const { return m_role; }
46 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
47 inline void SetRole(ArgoCdRole value) {
48 m_roleHasBeenSet = true;
49 m_role = value;
50 }
52 SetRole(value);
53 return *this;
54 }
56
58
62 inline const Aws::Vector<SsoIdentity>& GetIdentities() const { return m_identities; }
63 inline bool IdentitiesHasBeenSet() const { return m_identitiesHasBeenSet; }
64 template <typename IdentitiesT = Aws::Vector<SsoIdentity>>
65 void SetIdentities(IdentitiesT&& value) {
66 m_identitiesHasBeenSet = true;
67 m_identities = std::forward<IdentitiesT>(value);
68 }
69 template <typename IdentitiesT = Aws::Vector<SsoIdentity>>
70 ArgoCdRoleMapping& WithIdentities(IdentitiesT&& value) {
71 SetIdentities(std::forward<IdentitiesT>(value));
72 return *this;
73 }
74 template <typename IdentitiesT = SsoIdentity>
75 ArgoCdRoleMapping& AddIdentities(IdentitiesT&& value) {
76 m_identitiesHasBeenSet = true;
77 m_identities.emplace_back(std::forward<IdentitiesT>(value));
78 return *this;
79 }
81 private:
83
84 Aws::Vector<SsoIdentity> m_identities;
85 bool m_roleHasBeenSet = false;
86 bool m_identitiesHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace EKS
91} // namespace Aws
void SetIdentities(IdentitiesT &&value)
AWS_EKS_API ArgoCdRoleMapping & operator=(Aws::Utils::Json::JsonView jsonValue)
ArgoCdRoleMapping & AddIdentities(IdentitiesT &&value)
AWS_EKS_API ArgoCdRoleMapping(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< SsoIdentity > & GetIdentities() const
ArgoCdRoleMapping & WithIdentities(IdentitiesT &&value)
AWS_EKS_API ArgoCdRoleMapping()=default
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
ArgoCdRoleMapping & WithRole(ArgoCdRole value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue