AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
BatchDetachObject.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/clouddirectory/model/ObjectReference.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CloudDirectory {
21namespace Model {
22
30 public:
31 AWS_CLOUDDIRECTORY_API BatchDetachObject() = default;
32 AWS_CLOUDDIRECTORY_API BatchDetachObject(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDDIRECTORY_API BatchDetachObject& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const ObjectReference& GetParentReference() const { return m_parentReference; }
42 inline bool ParentReferenceHasBeenSet() const { return m_parentReferenceHasBeenSet; }
43 template <typename ParentReferenceT = ObjectReference>
44 void SetParentReference(ParentReferenceT&& value) {
45 m_parentReferenceHasBeenSet = true;
46 m_parentReference = std::forward<ParentReferenceT>(value);
47 }
48 template <typename ParentReferenceT = ObjectReference>
49 BatchDetachObject& WithParentReference(ParentReferenceT&& value) {
50 SetParentReference(std::forward<ParentReferenceT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetLinkName() const { return m_linkName; }
60 inline bool LinkNameHasBeenSet() const { return m_linkNameHasBeenSet; }
61 template <typename LinkNameT = Aws::String>
62 void SetLinkName(LinkNameT&& value) {
63 m_linkNameHasBeenSet = true;
64 m_linkName = std::forward<LinkNameT>(value);
65 }
66 template <typename LinkNameT = Aws::String>
67 BatchDetachObject& WithLinkName(LinkNameT&& value) {
68 SetLinkName(std::forward<LinkNameT>(value));
69 return *this;
70 }
72
74
79 inline const Aws::String& GetBatchReferenceName() const { return m_batchReferenceName; }
80 inline bool BatchReferenceNameHasBeenSet() const { return m_batchReferenceNameHasBeenSet; }
81 template <typename BatchReferenceNameT = Aws::String>
82 void SetBatchReferenceName(BatchReferenceNameT&& value) {
83 m_batchReferenceNameHasBeenSet = true;
84 m_batchReferenceName = std::forward<BatchReferenceNameT>(value);
85 }
86 template <typename BatchReferenceNameT = Aws::String>
87 BatchDetachObject& WithBatchReferenceName(BatchReferenceNameT&& value) {
88 SetBatchReferenceName(std::forward<BatchReferenceNameT>(value));
89 return *this;
90 }
92 private:
93 ObjectReference m_parentReference;
94
95 Aws::String m_linkName;
96
97 Aws::String m_batchReferenceName;
98 bool m_parentReferenceHasBeenSet = false;
99 bool m_linkNameHasBeenSet = false;
100 bool m_batchReferenceNameHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace CloudDirectory
105} // namespace Aws
AWS_CLOUDDIRECTORY_API BatchDetachObject(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetBatchReferenceName() const
AWS_CLOUDDIRECTORY_API BatchDetachObject & operator=(Aws::Utils::Json::JsonView jsonValue)
const ObjectReference & GetParentReference() const
BatchDetachObject & WithLinkName(LinkNameT &&value)
BatchDetachObject & WithParentReference(ParentReferenceT &&value)
void SetBatchReferenceName(BatchReferenceNameT &&value)
AWS_CLOUDDIRECTORY_API BatchDetachObject()=default
BatchDetachObject & WithBatchReferenceName(BatchReferenceNameT &&value)
void SetParentReference(ParentReferenceT &&value)
AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue