AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DocumentAttributeConfiguration.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qbusiness/model/AttributeType.h>
10#include <aws/qbusiness/model/Status.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 QBusiness
24{
25namespace Model
26{
27
39 {
40 public:
41 AWS_QBUSINESS_API DocumentAttributeConfiguration() = default;
44 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetName() const { return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 template<typename NameT = Aws::String>
54 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
55 template<typename NameT = Aws::String>
56 DocumentAttributeConfiguration& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
58
60
63 inline AttributeType GetType() const { return m_type; }
64 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
65 inline void SetType(AttributeType value) { m_typeHasBeenSet = true; m_type = value; }
66 inline DocumentAttributeConfiguration& WithType(AttributeType value) { SetType(value); return *this;}
68
70
74 inline Status GetSearch() const { return m_search; }
75 inline bool SearchHasBeenSet() const { return m_searchHasBeenSet; }
76 inline void SetSearch(Status value) { m_searchHasBeenSet = true; m_search = value; }
77 inline DocumentAttributeConfiguration& WithSearch(Status value) { SetSearch(value); return *this;}
79 private:
80
81 Aws::String m_name;
82 bool m_nameHasBeenSet = false;
83
85 bool m_typeHasBeenSet = false;
86
87 Status m_search{Status::NOT_SET};
88 bool m_searchHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace QBusiness
93} // namespace Aws
DocumentAttributeConfiguration & WithSearch(Status value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
DocumentAttributeConfiguration & WithType(AttributeType value)
AWS_QBUSINESS_API DocumentAttributeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QBUSINESS_API DocumentAttributeConfiguration()=default
DocumentAttributeConfiguration & WithName(NameT &&value)
AWS_QBUSINESS_API DocumentAttributeConfiguration(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue