AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
PolicyAttachment.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CloudDirectory {
20namespace Model {
21
32 public:
33 AWS_CLOUDDIRECTORY_API PolicyAttachment() = default;
34 AWS_CLOUDDIRECTORY_API PolicyAttachment(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CLOUDDIRECTORY_API PolicyAttachment& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetPolicyId() const { return m_policyId; }
43 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
44 template <typename PolicyIdT = Aws::String>
45 void SetPolicyId(PolicyIdT&& value) {
46 m_policyIdHasBeenSet = true;
47 m_policyId = std::forward<PolicyIdT>(value);
48 }
49 template <typename PolicyIdT = Aws::String>
50 PolicyAttachment& WithPolicyId(PolicyIdT&& value) {
51 SetPolicyId(std::forward<PolicyIdT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetObjectIdentifier() const { return m_objectIdentifier; }
62 inline bool ObjectIdentifierHasBeenSet() const { return m_objectIdentifierHasBeenSet; }
63 template <typename ObjectIdentifierT = Aws::String>
64 void SetObjectIdentifier(ObjectIdentifierT&& value) {
65 m_objectIdentifierHasBeenSet = true;
66 m_objectIdentifier = std::forward<ObjectIdentifierT>(value);
67 }
68 template <typename ObjectIdentifierT = Aws::String>
69 PolicyAttachment& WithObjectIdentifier(ObjectIdentifierT&& value) {
70 SetObjectIdentifier(std::forward<ObjectIdentifierT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetPolicyType() const { return m_policyType; }
81 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
82 template <typename PolicyTypeT = Aws::String>
83 void SetPolicyType(PolicyTypeT&& value) {
84 m_policyTypeHasBeenSet = true;
85 m_policyType = std::forward<PolicyTypeT>(value);
86 }
87 template <typename PolicyTypeT = Aws::String>
88 PolicyAttachment& WithPolicyType(PolicyTypeT&& value) {
89 SetPolicyType(std::forward<PolicyTypeT>(value));
90 return *this;
91 }
93 private:
94 Aws::String m_policyId;
95
96 Aws::String m_objectIdentifier;
97
98 Aws::String m_policyType;
99 bool m_policyIdHasBeenSet = false;
100 bool m_objectIdentifierHasBeenSet = false;
101 bool m_policyTypeHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace CloudDirectory
106} // namespace Aws
void SetObjectIdentifier(ObjectIdentifierT &&value)
PolicyAttachment & WithPolicyId(PolicyIdT &&value)
PolicyAttachment & WithPolicyType(PolicyTypeT &&value)
AWS_CLOUDDIRECTORY_API PolicyAttachment()=default
AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDDIRECTORY_API PolicyAttachment(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDDIRECTORY_API PolicyAttachment & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetObjectIdentifier() const
PolicyAttachment & WithObjectIdentifier(ObjectIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue