AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudDirectory
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_CLOUDDIRECTORY_API PolicyAttachment() = default;
39 AWS_CLOUDDIRECTORY_API PolicyAttachment(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDDIRECTORY_API PolicyAttachment& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetPolicyId() const { return m_policyId; }
49 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
50 template<typename PolicyIdT = Aws::String>
51 void SetPolicyId(PolicyIdT&& value) { m_policyIdHasBeenSet = true; m_policyId = std::forward<PolicyIdT>(value); }
52 template<typename PolicyIdT = Aws::String>
53 PolicyAttachment& WithPolicyId(PolicyIdT&& value) { SetPolicyId(std::forward<PolicyIdT>(value)); return *this;}
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) { m_objectIdentifierHasBeenSet = true; m_objectIdentifier = std::forward<ObjectIdentifierT>(value); }
65 template<typename ObjectIdentifierT = Aws::String>
66 PolicyAttachment& WithObjectIdentifier(ObjectIdentifierT&& value) { SetObjectIdentifier(std::forward<ObjectIdentifierT>(value)); return *this;}
68
70
74 inline const Aws::String& GetPolicyType() const { return m_policyType; }
75 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
76 template<typename PolicyTypeT = Aws::String>
77 void SetPolicyType(PolicyTypeT&& value) { m_policyTypeHasBeenSet = true; m_policyType = std::forward<PolicyTypeT>(value); }
78 template<typename PolicyTypeT = Aws::String>
79 PolicyAttachment& WithPolicyType(PolicyTypeT&& value) { SetPolicyType(std::forward<PolicyTypeT>(value)); return *this;}
81 private:
82
83 Aws::String m_policyId;
84 bool m_policyIdHasBeenSet = false;
85
86 Aws::String m_objectIdentifier;
87 bool m_objectIdentifierHasBeenSet = false;
88
89 Aws::String m_policyType;
90 bool m_policyTypeHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace CloudDirectory
95} // 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