AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchDetachPolicy.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 BatchDetachPolicy();
37 AWS_CLOUDDIRECTORY_API BatchDetachPolicy(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDDIRECTORY_API BatchDetachPolicy& 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 BatchDetachPolicy& WithPolicyReference(const ObjectReference& value) { SetPolicyReference(value); return *this;}
51 inline BatchDetachPolicy& 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 BatchDetachPolicy& WithObjectReference(const ObjectReference& value) { SetObjectReference(value); return *this;}
64 inline BatchDetachPolicy& 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
void SetObjectReference(const ObjectReference &value)
AWS_CLOUDDIRECTORY_API BatchDetachPolicy(Aws::Utils::Json::JsonView jsonValue)
const ObjectReference & GetPolicyReference() const
const ObjectReference & GetObjectReference() const
AWS_CLOUDDIRECTORY_API BatchDetachPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchDetachPolicy & WithPolicyReference(ObjectReference &&value)
void SetObjectReference(ObjectReference &&value)
BatchDetachPolicy & WithPolicyReference(const ObjectReference &value)
void SetPolicyReference(ObjectReference &&value)
void SetPolicyReference(const ObjectReference &value)
BatchDetachPolicy & WithObjectReference(const ObjectReference &value)
AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const
BatchDetachPolicy & WithObjectReference(ObjectReference &&value)
Aws::Utils::Json::JsonValue JsonValue