AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
EntityReference.h
1
6#pragma once
7#include <aws/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
8#include <aws/verifiedpermissions/model/EntityIdentifier.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
33 public:
34 AWS_VERIFIEDPERMISSIONS_API EntityReference() = default;
35 AWS_VERIFIEDPERMISSIONS_API EntityReference(Aws::Utils::Json::JsonView jsonValue);
36 AWS_VERIFIEDPERMISSIONS_API EntityReference& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
45 inline bool GetUnspecified() const { return m_unspecified; }
46 inline bool UnspecifiedHasBeenSet() const { return m_unspecifiedHasBeenSet; }
47 inline void SetUnspecified(bool value) {
48 m_unspecifiedHasBeenSet = true;
49 m_unspecified = value;
50 }
51 inline EntityReference& WithUnspecified(bool value) {
52 SetUnspecified(value);
53 return *this;
54 }
56
58
62 inline const EntityIdentifier& GetIdentifier() const { return m_identifier; }
63 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
64 template <typename IdentifierT = EntityIdentifier>
65 void SetIdentifier(IdentifierT&& value) {
66 m_identifierHasBeenSet = true;
67 m_identifier = std::forward<IdentifierT>(value);
68 }
69 template <typename IdentifierT = EntityIdentifier>
70 EntityReference& WithIdentifier(IdentifierT&& value) {
71 SetIdentifier(std::forward<IdentifierT>(value));
72 return *this;
73 }
75 private:
76 bool m_unspecified{false};
77
78 EntityIdentifier m_identifier;
79 bool m_unspecifiedHasBeenSet = false;
80 bool m_identifierHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace VerifiedPermissions
85} // namespace Aws
AWS_VERIFIEDPERMISSIONS_API EntityReference()=default
const EntityIdentifier & GetIdentifier() const
AWS_VERIFIEDPERMISSIONS_API EntityReference & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
EntityReference & WithIdentifier(IdentifierT &&value)
AWS_VERIFIEDPERMISSIONS_API EntityReference(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue