AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
DateTimeParameter.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/quicksight/QuickSight_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QuickSight {
22namespace Model {
23
30 public:
31 AWS_QUICKSIGHT_API DateTimeParameter() = default;
32 AWS_QUICKSIGHT_API DateTimeParameter(Aws::Utils::Json::JsonView jsonValue);
34 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 DateTimeParameter& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Aws::Utils::DateTime>& GetValues() const { return m_values; }
59 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
60 template <typename ValuesT = Aws::Vector<Aws::Utils::DateTime>>
61 void SetValues(ValuesT&& value) {
62 m_valuesHasBeenSet = true;
63 m_values = std::forward<ValuesT>(value);
64 }
65 template <typename ValuesT = Aws::Vector<Aws::Utils::DateTime>>
66 DateTimeParameter& WithValues(ValuesT&& value) {
67 SetValues(std::forward<ValuesT>(value));
68 return *this;
69 }
70 template <typename ValuesT = Aws::Utils::DateTime>
71 DateTimeParameter& AddValues(ValuesT&& value) {
72 m_valuesHasBeenSet = true;
73 m_values.emplace_back(std::forward<ValuesT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_name;
79
81 bool m_nameHasBeenSet = false;
82 bool m_valuesHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace QuickSight
87} // namespace Aws
AWS_QUICKSIGHT_API DateTimeParameter & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::Utils::DateTime > & GetValues() const
DateTimeParameter & WithValues(ValuesT &&value)
DateTimeParameter & WithName(NameT &&value)
AWS_QUICKSIGHT_API DateTimeParameter(Aws::Utils::Json::JsonView jsonValue)
DateTimeParameter & AddValues(ValuesT &&value)
AWS_QUICKSIGHT_API DateTimeParameter()=default
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue