AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FacetAttributeUpdate.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/clouddirectory/model/FacetAttribute.h>
9#include <aws/clouddirectory/model/UpdateActionType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CloudDirectory
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CLOUDDIRECTORY_API FacetAttributeUpdate();
37 AWS_CLOUDDIRECTORY_API FacetAttributeUpdate(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDDIRECTORY_API FacetAttributeUpdate& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const FacetAttribute& GetAttribute() const{ return m_attribute; }
47 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
48 inline void SetAttribute(const FacetAttribute& value) { m_attributeHasBeenSet = true; m_attribute = value; }
49 inline void SetAttribute(FacetAttribute&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); }
50 inline FacetAttributeUpdate& WithAttribute(const FacetAttribute& value) { SetAttribute(value); return *this;}
51 inline FacetAttributeUpdate& WithAttribute(FacetAttribute&& value) { SetAttribute(std::move(value)); return *this;}
53
55
58 inline const UpdateActionType& GetAction() const{ return m_action; }
59 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
60 inline void SetAction(const UpdateActionType& value) { m_actionHasBeenSet = true; m_action = value; }
61 inline void SetAction(UpdateActionType&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
62 inline FacetAttributeUpdate& WithAction(const UpdateActionType& value) { SetAction(value); return *this;}
63 inline FacetAttributeUpdate& WithAction(UpdateActionType&& value) { SetAction(std::move(value)); return *this;}
65 private:
66
67 FacetAttribute m_attribute;
68 bool m_attributeHasBeenSet = false;
69
70 UpdateActionType m_action;
71 bool m_actionHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace CloudDirectory
76} // namespace Aws
FacetAttributeUpdate & WithAction(UpdateActionType &&value)
AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const
FacetAttributeUpdate & WithAction(const UpdateActionType &value)
FacetAttributeUpdate & WithAttribute(const FacetAttribute &value)
void SetAction(const UpdateActionType &value)
FacetAttributeUpdate & WithAttribute(FacetAttribute &&value)
AWS_CLOUDDIRECTORY_API FacetAttributeUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDDIRECTORY_API FacetAttributeUpdate(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue