AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DocumentAttributeValue.h
1
6#pragma once
7#include <aws/qapps/QApps_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.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 QApps
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_QAPPS_API DocumentAttributeValue();
40 AWS_QAPPS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetStringValue() const{ return m_stringValue; }
48 inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; }
49 inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; }
50 inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::move(value); }
51 inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); }
52 inline DocumentAttributeValue& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;}
53 inline DocumentAttributeValue& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;}
54 inline DocumentAttributeValue& WithStringValue(const char* value) { SetStringValue(value); return *this;}
56
58
61 inline const Aws::Vector<Aws::String>& GetStringListValue() const{ return m_stringListValue; }
62 inline bool StringListValueHasBeenSet() const { return m_stringListValueHasBeenSet; }
63 inline void SetStringListValue(const Aws::Vector<Aws::String>& value) { m_stringListValueHasBeenSet = true; m_stringListValue = value; }
64 inline void SetStringListValue(Aws::Vector<Aws::String>&& value) { m_stringListValueHasBeenSet = true; m_stringListValue = std::move(value); }
67 inline DocumentAttributeValue& AddStringListValue(const Aws::String& value) { m_stringListValueHasBeenSet = true; m_stringListValue.push_back(value); return *this; }
68 inline DocumentAttributeValue& AddStringListValue(Aws::String&& value) { m_stringListValueHasBeenSet = true; m_stringListValue.push_back(std::move(value)); return *this; }
69 inline DocumentAttributeValue& AddStringListValue(const char* value) { m_stringListValueHasBeenSet = true; m_stringListValue.push_back(value); return *this; }
71
73
76 inline long long GetLongValue() const{ return m_longValue; }
77 inline bool LongValueHasBeenSet() const { return m_longValueHasBeenSet; }
78 inline void SetLongValue(long long value) { m_longValueHasBeenSet = true; m_longValue = value; }
79 inline DocumentAttributeValue& WithLongValue(long long value) { SetLongValue(value); return *this;}
81
83
89 inline const Aws::Utils::DateTime& GetDateValue() const{ return m_dateValue; }
90 inline bool DateValueHasBeenSet() const { return m_dateValueHasBeenSet; }
91 inline void SetDateValue(const Aws::Utils::DateTime& value) { m_dateValueHasBeenSet = true; m_dateValue = value; }
92 inline void SetDateValue(Aws::Utils::DateTime&& value) { m_dateValueHasBeenSet = true; m_dateValue = std::move(value); }
93 inline DocumentAttributeValue& WithDateValue(const Aws::Utils::DateTime& value) { SetDateValue(value); return *this;}
94 inline DocumentAttributeValue& WithDateValue(Aws::Utils::DateTime&& value) { SetDateValue(std::move(value)); return *this;}
96 private:
97
98 Aws::String m_stringValue;
99 bool m_stringValueHasBeenSet = false;
100
101 Aws::Vector<Aws::String> m_stringListValue;
102 bool m_stringListValueHasBeenSet = false;
103
104 long long m_longValue;
105 bool m_longValueHasBeenSet = false;
106
107 Aws::Utils::DateTime m_dateValue;
108 bool m_dateValueHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace QApps
113} // namespace Aws
void SetDateValue(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetDateValue() const
DocumentAttributeValue & WithLongValue(long long value)
void SetDateValue(Aws::Utils::DateTime &&value)
void SetStringListValue(const Aws::Vector< Aws::String > &value)
DocumentAttributeValue & WithDateValue(const Aws::Utils::DateTime &value)
DocumentAttributeValue & AddStringListValue(Aws::String &&value)
DocumentAttributeValue & WithStringListValue(Aws::Vector< Aws::String > &&value)
AWS_QAPPS_API Aws::Utils::Json::JsonValue Jsonize() const
DocumentAttributeValue & WithStringValue(const char *value)
DocumentAttributeValue & WithDateValue(Aws::Utils::DateTime &&value)
AWS_QAPPS_API DocumentAttributeValue & operator=(Aws::Utils::Json::JsonView jsonValue)
DocumentAttributeValue & WithStringValue(const Aws::String &value)
DocumentAttributeValue & WithStringValue(Aws::String &&value)
DocumentAttributeValue & AddStringListValue(const Aws::String &value)
DocumentAttributeValue & AddStringListValue(const char *value)
AWS_QAPPS_API DocumentAttributeValue(Aws::Utils::Json::JsonView jsonValue)
void SetStringListValue(Aws::Vector< Aws::String > &&value)
void SetStringValue(const Aws::String &value)
const Aws::Vector< Aws::String > & GetStringListValue() const
DocumentAttributeValue & WithStringListValue(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue