AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FacetAttribute.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/FacetAttributeDefinition.h>
10#include <aws/clouddirectory/model/FacetAttributeReference.h>
11#include <aws/clouddirectory/model/RequiredAttributeBehavior.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CloudDirectory
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_CLOUDDIRECTORY_API FacetAttribute();
39 AWS_CLOUDDIRECTORY_API FacetAttribute(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDDIRECTORY_API FacetAttribute& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetName() const{ return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline FacetAttribute& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline FacetAttribute& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline FacetAttribute& WithName(const char* value) { SetName(value); return *this;}
57
59
65 inline const FacetAttributeDefinition& GetAttributeDefinition() const{ return m_attributeDefinition; }
66 inline bool AttributeDefinitionHasBeenSet() const { return m_attributeDefinitionHasBeenSet; }
67 inline void SetAttributeDefinition(const FacetAttributeDefinition& value) { m_attributeDefinitionHasBeenSet = true; m_attributeDefinition = value; }
68 inline void SetAttributeDefinition(FacetAttributeDefinition&& value) { m_attributeDefinitionHasBeenSet = true; m_attributeDefinition = std::move(value); }
72
74
79 inline const FacetAttributeReference& GetAttributeReference() const{ return m_attributeReference; }
80 inline bool AttributeReferenceHasBeenSet() const { return m_attributeReferenceHasBeenSet; }
81 inline void SetAttributeReference(const FacetAttributeReference& value) { m_attributeReferenceHasBeenSet = true; m_attributeReference = value; }
82 inline void SetAttributeReference(FacetAttributeReference&& value) { m_attributeReferenceHasBeenSet = true; m_attributeReference = std::move(value); }
84 inline FacetAttribute& WithAttributeReference(FacetAttributeReference&& value) { SetAttributeReference(std::move(value)); return *this;}
86
88
91 inline const RequiredAttributeBehavior& GetRequiredBehavior() const{ return m_requiredBehavior; }
92 inline bool RequiredBehaviorHasBeenSet() const { return m_requiredBehaviorHasBeenSet; }
93 inline void SetRequiredBehavior(const RequiredAttributeBehavior& value) { m_requiredBehaviorHasBeenSet = true; m_requiredBehavior = value; }
94 inline void SetRequiredBehavior(RequiredAttributeBehavior&& value) { m_requiredBehaviorHasBeenSet = true; m_requiredBehavior = std::move(value); }
96 inline FacetAttribute& WithRequiredBehavior(RequiredAttributeBehavior&& value) { SetRequiredBehavior(std::move(value)); return *this;}
98 private:
99
100 Aws::String m_name;
101 bool m_nameHasBeenSet = false;
102
103 FacetAttributeDefinition m_attributeDefinition;
104 bool m_attributeDefinitionHasBeenSet = false;
105
106 FacetAttributeReference m_attributeReference;
107 bool m_attributeReferenceHasBeenSet = false;
108
109 RequiredAttributeBehavior m_requiredBehavior;
110 bool m_requiredBehaviorHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace CloudDirectory
115} // namespace Aws
FacetAttribute & WithName(const Aws::String &value)
AWS_CLOUDDIRECTORY_API FacetAttribute(Aws::Utils::Json::JsonView jsonValue)
FacetAttribute & WithAttributeDefinition(const FacetAttributeDefinition &value)
const FacetAttributeDefinition & GetAttributeDefinition() const
FacetAttribute & WithAttributeReference(FacetAttributeReference &&value)
FacetAttribute & WithAttributeDefinition(FacetAttributeDefinition &&value)
FacetAttribute & WithRequiredBehavior(const RequiredAttributeBehavior &value)
AWS_CLOUDDIRECTORY_API FacetAttribute & operator=(Aws::Utils::Json::JsonView jsonValue)
FacetAttribute & WithRequiredBehavior(RequiredAttributeBehavior &&value)
FacetAttribute & WithAttributeReference(const FacetAttributeReference &value)
FacetAttribute & WithName(Aws::String &&value)
void SetAttributeDefinition(const FacetAttributeDefinition &value)
void SetName(const Aws::String &value)
AWS_CLOUDDIRECTORY_API FacetAttribute()
const FacetAttributeReference & GetAttributeReference() const
void SetRequiredBehavior(const RequiredAttributeBehavior &value)
AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAttributeReference(FacetAttributeReference &&value)
FacetAttribute & WithName(const char *value)
void SetAttributeReference(const FacetAttributeReference &value)
void SetRequiredBehavior(RequiredAttributeBehavior &&value)
const RequiredAttributeBehavior & GetRequiredBehavior() const
void SetAttributeDefinition(FacetAttributeDefinition &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue