AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UserIdentity.h
1
6#pragma once
7#include <aws/kafka/Kafka_EXPORTS.h>
8#include <aws/kafka/model/UserIdentityType.h>
9#include <aws/core/utils/memory/stl/AWSString.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 Kafka
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_KAFKA_API UserIdentity();
39 AWS_KAFKA_API UserIdentity(Aws::Utils::Json::JsonView jsonValue);
41 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
51 inline const UserIdentityType& GetType() const{ return m_type; }
52 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
53 inline void SetType(const UserIdentityType& value) { m_typeHasBeenSet = true; m_type = value; }
54 inline void SetType(UserIdentityType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
55 inline UserIdentity& WithType(const UserIdentityType& value) { SetType(value); return *this;}
56 inline UserIdentity& WithType(UserIdentityType&& value) { SetType(std::move(value)); return *this;}
58
60
66 inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
67 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
68 inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; }
69 inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); }
70 inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); }
71 inline UserIdentity& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
72 inline UserIdentity& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
73 inline UserIdentity& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
75 private:
76
77 UserIdentityType m_type;
78 bool m_typeHasBeenSet = false;
79
80 Aws::String m_principalId;
81 bool m_principalIdHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace Kafka
86} // namespace Aws
UserIdentity & WithPrincipalId(const Aws::String &value)
UserIdentity & WithPrincipalId(const char *value)
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
UserIdentity & WithType(const UserIdentityType &value)
AWS_KAFKA_API UserIdentity & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KAFKA_API UserIdentity(Aws::Utils::Json::JsonView jsonValue)
void SetPrincipalId(const Aws::String &value)
void SetPrincipalId(Aws::String &&value)
UserIdentity & WithPrincipalId(Aws::String &&value)
void SetPrincipalId(const char *value)
UserIdentity & WithType(UserIdentityType &&value)
const UserIdentityType & GetType() const
void SetType(UserIdentityType &&value)
const Aws::String & GetPrincipalId() const
void SetType(const UserIdentityType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue