AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Facet.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/clouddirectory/model/ObjectType.h>
10#include <aws/clouddirectory/model/FacetStyle.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CloudDirectory
24{
25namespace Model
26{
27
37 class Facet
38 {
39 public:
40 AWS_CLOUDDIRECTORY_API Facet();
41 AWS_CLOUDDIRECTORY_API Facet(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CLOUDDIRECTORY_API Facet& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetName() const{ return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
53 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
54 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
55 inline Facet& WithName(const Aws::String& value) { SetName(value); return *this;}
56 inline Facet& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
57 inline Facet& WithName(const char* value) { SetName(value); return *this;}
59
61
65 inline const ObjectType& GetObjectType() const{ return m_objectType; }
66 inline bool ObjectTypeHasBeenSet() const { return m_objectTypeHasBeenSet; }
67 inline void SetObjectType(const ObjectType& value) { m_objectTypeHasBeenSet = true; m_objectType = value; }
68 inline void SetObjectType(ObjectType&& value) { m_objectTypeHasBeenSet = true; m_objectType = std::move(value); }
69 inline Facet& WithObjectType(const ObjectType& value) { SetObjectType(value); return *this;}
70 inline Facet& WithObjectType(ObjectType&& value) { SetObjectType(std::move(value)); return *this;}
72
74
80 inline const FacetStyle& GetFacetStyle() const{ return m_facetStyle; }
81 inline bool FacetStyleHasBeenSet() const { return m_facetStyleHasBeenSet; }
82 inline void SetFacetStyle(const FacetStyle& value) { m_facetStyleHasBeenSet = true; m_facetStyle = value; }
83 inline void SetFacetStyle(FacetStyle&& value) { m_facetStyleHasBeenSet = true; m_facetStyle = std::move(value); }
84 inline Facet& WithFacetStyle(const FacetStyle& value) { SetFacetStyle(value); return *this;}
85 inline Facet& WithFacetStyle(FacetStyle&& value) { SetFacetStyle(std::move(value)); return *this;}
87 private:
88
89 Aws::String m_name;
90 bool m_nameHasBeenSet = false;
91
92 ObjectType m_objectType;
93 bool m_objectTypeHasBeenSet = false;
94
95 FacetStyle m_facetStyle;
96 bool m_facetStyleHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace CloudDirectory
101} // namespace Aws
Facet & WithObjectType(const ObjectType &value)
Definition Facet.h:69
const Aws::String & GetName() const
Definition Facet.h:50
AWS_CLOUDDIRECTORY_API Facet & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(Aws::String &&value)
Definition Facet.h:53
Facet & WithName(const Aws::String &value)
Definition Facet.h:55
bool ObjectTypeHasBeenSet() const
Definition Facet.h:66
AWS_CLOUDDIRECTORY_API Facet(Aws::Utils::Json::JsonView jsonValue)
void SetName(const char *value)
Definition Facet.h:54
Facet & WithObjectType(ObjectType &&value)
Definition Facet.h:70
void SetFacetStyle(const FacetStyle &value)
Definition Facet.h:82
AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const
const ObjectType & GetObjectType() const
Definition Facet.h:65
void SetFacetStyle(FacetStyle &&value)
Definition Facet.h:83
void SetObjectType(ObjectType &&value)
Definition Facet.h:68
const FacetStyle & GetFacetStyle() const
Definition Facet.h:80
Facet & WithName(const char *value)
Definition Facet.h:57
AWS_CLOUDDIRECTORY_API Facet()
void SetObjectType(const ObjectType &value)
Definition Facet.h:67
Facet & WithFacetStyle(FacetStyle &&value)
Definition Facet.h:85
Facet & WithName(Aws::String &&value)
Definition Facet.h:56
void SetName(const Aws::String &value)
Definition Facet.h:52
bool FacetStyleHasBeenSet() const
Definition Facet.h:81
Facet & WithFacetStyle(const FacetStyle &value)
Definition Facet.h:84
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue