AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
EntityIdentifier.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace VerifiedPermissions {
20namespace Model {
21
39 public:
40 AWS_VERIFIEDPERMISSIONS_API EntityIdentifier() = default;
41 AWS_VERIFIEDPERMISSIONS_API EntityIdentifier(Aws::Utils::Json::JsonView jsonValue);
42 AWS_VERIFIEDPERMISSIONS_API EntityIdentifier& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
50 inline const Aws::String& GetEntityType() const { return m_entityType; }
51 inline bool EntityTypeHasBeenSet() const { return m_entityTypeHasBeenSet; }
52 template <typename EntityTypeT = Aws::String>
53 void SetEntityType(EntityTypeT&& value) {
54 m_entityTypeHasBeenSet = true;
55 m_entityType = std::forward<EntityTypeT>(value);
56 }
57 template <typename EntityTypeT = Aws::String>
58 EntityIdentifier& WithEntityType(EntityTypeT&& value) {
59 SetEntityType(std::forward<EntityTypeT>(value));
60 return *this;
61 }
63
65
69 inline const Aws::String& GetEntityId() const { return m_entityId; }
70 inline bool EntityIdHasBeenSet() const { return m_entityIdHasBeenSet; }
71 template <typename EntityIdT = Aws::String>
72 void SetEntityId(EntityIdT&& value) {
73 m_entityIdHasBeenSet = true;
74 m_entityId = std::forward<EntityIdT>(value);
75 }
76 template <typename EntityIdT = Aws::String>
77 EntityIdentifier& WithEntityId(EntityIdT&& value) {
78 SetEntityId(std::forward<EntityIdT>(value));
79 return *this;
80 }
82 private:
83 Aws::String m_entityType;
84
85 Aws::String m_entityId;
86 bool m_entityTypeHasBeenSet = false;
87 bool m_entityIdHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace VerifiedPermissions
92} // namespace Aws
AWS_VERIFIEDPERMISSIONS_API EntityIdentifier(Aws::Utils::Json::JsonView jsonValue)
EntityIdentifier & WithEntityType(EntityTypeT &&value)
EntityIdentifier & WithEntityId(EntityIdT &&value)
AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_VERIFIEDPERMISSIONS_API EntityIdentifier & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_VERIFIEDPERMISSIONS_API EntityIdentifier()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue