AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 UserIdentityType GetType() const { return m_type; }
52 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
53 inline void SetType(UserIdentityType value) { m_typeHasBeenSet = true; m_type = value; }
54 inline UserIdentity& WithType(UserIdentityType value) { SetType(value); return *this;}
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) { m_principalIdHasBeenSet = true; m_principalId = std::forward<PrincipalIdT>(value); }
68 template<typename PrincipalIdT = Aws::String>
69 UserIdentity& WithPrincipalId(PrincipalIdT&& value) { SetPrincipalId(std::forward<PrincipalIdT>(value)); return *this;}
71 private:
72
74 bool m_typeHasBeenSet = false;
75
76 Aws::String m_principalId;
77 bool m_principalIdHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace Kafka
82} // 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