AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DateTimeParameter.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_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 QuickSight
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_QUICKSIGHT_API DateTimeParameter() = default;
37 AWS_QUICKSIGHT_API DateTimeParameter(Aws::Utils::Json::JsonView jsonValue);
39 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 DateTimeParameter& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
62 template<typename ValuesT = Aws::Vector<Aws::Utils::DateTime>>
63 DateTimeParameter& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
64 template<typename ValuesT = Aws::Utils::DateTime>
65 DateTimeParameter& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
67 private:
68
69 Aws::String m_name;
70 bool m_nameHasBeenSet = false;
71
73 bool m_valuesHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace QuickSight
78} // 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