AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
Identity.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/dynamodbstreams/DynamoDBStreams_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace DynamoDBStreams {
20namespace Model {
21
28class Identity {
29 public:
30 AWS_DYNAMODBSTREAMS_API Identity() = default;
31 AWS_DYNAMODBSTREAMS_API Identity(Aws::Utils::Json::JsonView jsonValue);
32 AWS_DYNAMODBSTREAMS_API Identity& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DYNAMODBSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetPrincipalId() const { return m_principalId; }
41 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
42 template <typename PrincipalIdT = Aws::String>
43 void SetPrincipalId(PrincipalIdT&& value) {
44 m_principalIdHasBeenSet = true;
45 m_principalId = std::forward<PrincipalIdT>(value);
46 }
47 template <typename PrincipalIdT = Aws::String>
48 Identity& WithPrincipalId(PrincipalIdT&& value) {
49 SetPrincipalId(std::forward<PrincipalIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetType() const { return m_type; }
59 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
60 template <typename TypeT = Aws::String>
61 void SetType(TypeT&& value) {
62 m_typeHasBeenSet = true;
63 m_type = std::forward<TypeT>(value);
64 }
65 template <typename TypeT = Aws::String>
66 Identity& WithType(TypeT&& value) {
67 SetType(std::forward<TypeT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_principalId;
73
74 Aws::String m_type;
75 bool m_principalIdHasBeenSet = false;
76 bool m_typeHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace DynamoDBStreams
81} // namespace Aws
Identity & WithPrincipalId(PrincipalIdT &&value)
Definition Identity.h:48
AWS_DYNAMODBSTREAMS_API Identity()=default
AWS_DYNAMODBSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetType() const
Definition Identity.h:58
Identity & WithType(TypeT &&value)
Definition Identity.h:66
void SetPrincipalId(PrincipalIdT &&value)
Definition Identity.h:43
AWS_DYNAMODBSTREAMS_API Identity & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPrincipalId() const
Definition Identity.h:40
AWS_DYNAMODBSTREAMS_API Identity(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue