AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Subject.h
1
6#pragma once
7#include <aws/eks-auth/EKSAuth_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace EKSAuth
22{
23namespace Model
24{
25
32 class Subject
33 {
34 public:
35 AWS_EKSAUTH_API Subject() = default;
36 AWS_EKSAUTH_API Subject(Aws::Utils::Json::JsonView jsonValue);
37 AWS_EKSAUTH_API Subject& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_EKSAUTH_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
47 inline const Aws::String& GetNamespace() const { return m_namespace; }
48 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
49 template<typename NamespaceT = Aws::String>
50 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
51 template<typename NamespaceT = Aws::String>
52 Subject& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
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) { m_serviceAccountHasBeenSet = true; m_serviceAccount = std::forward<ServiceAccountT>(value); }
64 template<typename ServiceAccountT = Aws::String>
65 Subject& WithServiceAccount(ServiceAccountT&& value) { SetServiceAccount(std::forward<ServiceAccountT>(value)); return *this;}
67 private:
68
69 Aws::String m_namespace;
70 bool m_namespaceHasBeenSet = false;
71
72 Aws::String m_serviceAccount;
73 bool m_serviceAccountHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace EKSAuth
78} // 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:52
bool NamespaceHasBeenSet() const
Definition Subject.h:48
void SetNamespace(NamespaceT &&value)
Definition Subject.h:50
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:47
Subject & WithServiceAccount(ServiceAccountT &&value)
Definition Subject.h:65
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue