AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
Subject.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/eks-auth/EKSAuth_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace EKSAuth {
20namespace Model {
21
28class Subject {
29 public:
30 AWS_EKSAUTH_API Subject() = default;
31 AWS_EKSAUTH_API Subject(Aws::Utils::Json::JsonView jsonValue);
32 AWS_EKSAUTH_API Subject& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_EKSAUTH_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
41 inline const Aws::String& GetNamespace() const { return m_namespace; }
42 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
43 template <typename NamespaceT = Aws::String>
44 void SetNamespace(NamespaceT&& value) {
45 m_namespaceHasBeenSet = true;
46 m_namespace = std::forward<NamespaceT>(value);
47 }
48 template <typename NamespaceT = Aws::String>
49 Subject& WithNamespace(NamespaceT&& value) {
50 SetNamespace(std::forward<NamespaceT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetServiceAccount() const { return m_serviceAccount; }
61 inline bool ServiceAccountHasBeenSet() const { return m_serviceAccountHasBeenSet; }
62 template <typename ServiceAccountT = Aws::String>
63 void SetServiceAccount(ServiceAccountT&& value) {
64 m_serviceAccountHasBeenSet = true;
65 m_serviceAccount = std::forward<ServiceAccountT>(value);
66 }
67 template <typename ServiceAccountT = Aws::String>
68 Subject& WithServiceAccount(ServiceAccountT&& value) {
69 SetServiceAccount(std::forward<ServiceAccountT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_namespace;
75
76 Aws::String m_serviceAccount;
77 bool m_namespaceHasBeenSet = false;
78 bool m_serviceAccountHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace EKSAuth
83} // namespace Aws
AWS_EKSAUTH_API Subject(Aws::Utils::Json::JsonView jsonValue)
void SetServiceAccount(ServiceAccountT &&value)
Definition Subject.h:63
AWS_EKSAUTH_API Subject()=default
const Aws::String & GetServiceAccount() const
Definition Subject.h:60
Subject & WithNamespace(NamespaceT &&value)
Definition Subject.h:49
bool NamespaceHasBeenSet() const
Definition Subject.h:42
void SetNamespace(NamespaceT &&value)
Definition Subject.h:44
AWS_EKSAUTH_API Subject & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ServiceAccountHasBeenSet() const
Definition Subject.h:61
AWS_EKSAUTH_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetNamespace() const
Definition Subject.h:41
Subject & WithServiceAccount(ServiceAccountT &&value)
Definition Subject.h:68
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue