AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UserIdentity.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kafka/Kafka_EXPORTS.h>
9#include <aws/kafka/model/UserIdentityType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Kafka {
21namespace Model {
22
32 public:
33 AWS_KAFKA_API UserIdentity() = default;
34 AWS_KAFKA_API UserIdentity(Aws::Utils::Json::JsonView jsonValue);
36 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
45 inline UserIdentityType GetType() const { return m_type; }
46 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
47 inline void SetType(UserIdentityType value) {
48 m_typeHasBeenSet = true;
49 m_type = value;
50 }
52 SetType(value);
53 return *this;
54 }
56
58
64 inline const Aws::String& GetPrincipalId() const { return m_principalId; }
65 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
66 template <typename PrincipalIdT = Aws::String>
67 void SetPrincipalId(PrincipalIdT&& value) {
68 m_principalIdHasBeenSet = true;
69 m_principalId = std::forward<PrincipalIdT>(value);
70 }
71 template <typename PrincipalIdT = Aws::String>
72 UserIdentity& WithPrincipalId(PrincipalIdT&& value) {
73 SetPrincipalId(std::forward<PrincipalIdT>(value));
74 return *this;
75 }
77 private:
79
80 Aws::String m_principalId;
81 bool m_typeHasBeenSet = false;
82 bool m_principalIdHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace Kafka
87} // namespace Aws
AWS_KAFKA_API UserIdentity()=default
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
UserIdentity & WithType(UserIdentityType value)
void SetPrincipalId(PrincipalIdT &&value)
AWS_KAFKA_API UserIdentity & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KAFKA_API UserIdentity(Aws::Utils::Json::JsonView jsonValue)
UserIdentity & WithPrincipalId(PrincipalIdT &&value)
UserIdentityType GetType() const
void SetType(UserIdentityType value)
const Aws::String & GetPrincipalId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue