AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchAttachPolicy.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/clouddirectory/model/ObjectReference.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
34 {
35 public:
36 AWS_CLOUDDIRECTORY_API BatchAttachPolicy();
37 AWS_CLOUDDIRECTORY_API BatchAttachPolicy(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDDIRECTORY_API BatchAttachPolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const ObjectReference& GetPolicyReference() const{ return m_policyReference; }
47 inline bool PolicyReferenceHasBeenSet() const { return m_policyReferenceHasBeenSet; }
48 inline void SetPolicyReference(const ObjectReference& value) { m_policyReferenceHasBeenSet = true; m_policyReference = value; }
49 inline void SetPolicyReference(ObjectReference&& value) { m_policyReferenceHasBeenSet = true; m_policyReference = std::move(value); }
50 inline BatchAttachPolicy& WithPolicyReference(const ObjectReference& value) { SetPolicyReference(value); return *this;}
51 inline BatchAttachPolicy& WithPolicyReference(ObjectReference&& value) { SetPolicyReference(std::move(value)); return *this;}
53
55
59 inline const ObjectReference& GetObjectReference() const{ return m_objectReference; }
60 inline bool ObjectReferenceHasBeenSet() const { return m_objectReferenceHasBeenSet; }
61 inline void SetObjectReference(const ObjectReference& value) { m_objectReferenceHasBeenSet = true; m_objectReference = value; }
62 inline void SetObjectReference(ObjectReference&& value) { m_objectReferenceHasBeenSet = true; m_objectReference = std::move(value); }
63 inline BatchAttachPolicy& WithObjectReference(const ObjectReference& value) { SetObjectReference(value); return *this;}
64 inline BatchAttachPolicy& WithObjectReference(ObjectReference&& value) { SetObjectReference(std::move(value)); return *this;}
66 private:
67
68 ObjectReference m_policyReference;
69 bool m_policyReferenceHasBeenSet = false;
70
71 ObjectReference m_objectReference;
72 bool m_objectReferenceHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace CloudDirectory
77} // namespace Aws
AWS_CLOUDDIRECTORY_API BatchAttachPolicy(Aws::Utils::Json::JsonView jsonValue)
BatchAttachPolicy & WithObjectReference(const ObjectReference &value)
void SetPolicyReference(ObjectReference &&value)
BatchAttachPolicy & WithObjectReference(ObjectReference &&value)
void SetObjectReference(ObjectReference &&value)
void SetPolicyReference(const ObjectReference &value)
BatchAttachPolicy & WithPolicyReference(const ObjectReference &value)
AWS_CLOUDDIRECTORY_API BatchAttachPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const
BatchAttachPolicy & WithPolicyReference(ObjectReference &&value)
const ObjectReference & GetPolicyReference() const
void SetObjectReference(const ObjectReference &value)
const ObjectReference & GetObjectReference() const
Aws::Utils::Json::JsonValue JsonValue