AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
50 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
51 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
52 inline Subject& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
53 inline Subject& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
54 inline Subject& WithNamespace(const char* value) { SetNamespace(value); return *this;}
56
58
62 inline const Aws::String& GetServiceAccount() const{ return m_serviceAccount; }
63 inline bool ServiceAccountHasBeenSet() const { return m_serviceAccountHasBeenSet; }
64 inline void SetServiceAccount(const Aws::String& value) { m_serviceAccountHasBeenSet = true; m_serviceAccount = value; }
65 inline void SetServiceAccount(Aws::String&& value) { m_serviceAccountHasBeenSet = true; m_serviceAccount = std::move(value); }
66 inline void SetServiceAccount(const char* value) { m_serviceAccountHasBeenSet = true; m_serviceAccount.assign(value); }
67 inline Subject& WithServiceAccount(const Aws::String& value) { SetServiceAccount(value); return *this;}
68 inline Subject& WithServiceAccount(Aws::String&& value) { SetServiceAccount(std::move(value)); return *this;}
69 inline Subject& WithServiceAccount(const char* value) { SetServiceAccount(value); return *this;}
71 private:
72
73 Aws::String m_namespace;
74 bool m_namespaceHasBeenSet = false;
75
76 Aws::String m_serviceAccount;
77 bool m_serviceAccountHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace EKSAuth
82} // namespace Aws
void SetServiceAccount(const char *value)
Definition Subject.h:66
void SetServiceAccount(const Aws::String &value)
Definition Subject.h:64
AWS_EKSAUTH_API Subject()
AWS_EKSAUTH_API Subject(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetServiceAccount() const
Definition Subject.h:62
Subject & WithServiceAccount(const Aws::String &value)
Definition Subject.h:67
Subject & WithServiceAccount(Aws::String &&value)
Definition Subject.h:68
bool NamespaceHasBeenSet() const
Definition Subject.h:48
void SetNamespace(const Aws::String &value)
Definition Subject.h:49
AWS_EKSAUTH_API Subject & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetServiceAccount(Aws::String &&value)
Definition Subject.h:65
Subject & WithServiceAccount(const char *value)
Definition Subject.h:69
void SetNamespace(const char *value)
Definition Subject.h:51
Subject & WithNamespace(const Aws::String &value)
Definition Subject.h:52
Subject & WithNamespace(Aws::String &&value)
Definition Subject.h:53
bool ServiceAccountHasBeenSet() const
Definition Subject.h:63
void SetNamespace(Aws::String &&value)
Definition Subject.h:50
AWS_EKSAUTH_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetNamespace() const
Definition Subject.h:47
Subject & WithNamespace(const char *value)
Definition Subject.h:54
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue