AWS SDK for C++  1.9.41
AWS SDK for C++
TimestampStructure.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace CodeGuruProfiler
22 {
23 namespace Model
24 {
25 
34  {
35  public:
40 
41 
47  inline const Aws::Utils::DateTime& GetValue() const{ return m_value; }
48 
54  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
55 
61  inline void SetValue(const Aws::Utils::DateTime& value) { m_valueHasBeenSet = true; m_value = value; }
62 
68  inline void SetValue(Aws::Utils::DateTime&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
69 
75  inline TimestampStructure& WithValue(const Aws::Utils::DateTime& value) { SetValue(value); return *this;}
76 
82  inline TimestampStructure& WithValue(Aws::Utils::DateTime&& value) { SetValue(std::move(value)); return *this;}
83 
84  private:
85 
86  Aws::Utils::DateTime m_value;
87  bool m_valueHasBeenSet;
88  };
89 
90 } // namespace Model
91 } // namespace CodeGuruProfiler
92 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::CodeGuruProfiler::Model::TimestampStructure::TimestampStructure
TimestampStructure(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeGuruProfiler::Model::TimestampStructure::SetValue
void SetValue(Aws::Utils::DateTime &&value)
Definition: TimestampStructure.h:68
AWS_CODEGURUPROFILER_API
#define AWS_CODEGURUPROFILER_API
Definition: CodeGuruProfiler_EXPORTS.h:28
DateTime.h
Aws::CodeGuruProfiler::Model::TimestampStructure::GetValue
const Aws::Utils::DateTime & GetValue() const
Definition: TimestampStructure.h:47
Aws::CodeGuruProfiler::Model::TimestampStructure::SetValue
void SetValue(const Aws::Utils::DateTime &value)
Definition: TimestampStructure.h:61
CodeGuruProfiler_EXPORTS.h
Aws::CodeGuruProfiler::Model::TimestampStructure::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::CodeGuruProfiler::Model::TimestampStructure::operator=
TimestampStructure & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeGuruProfiler::Model::TimestampStructure::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: TimestampStructure.h:54
Aws::CodeGuruProfiler::Model::TimestampStructure::TimestampStructure
TimestampStructure()
Aws::CodeGuruProfiler::Model::TimestampStructure::WithValue
TimestampStructure & WithValue(const Aws::Utils::DateTime &value)
Definition: TimestampStructure.h:75
Aws::CodeGuruProfiler::Model::TimestampStructure::WithValue
TimestampStructure & WithValue(Aws::Utils::DateTime &&value)
Definition: TimestampStructure.h:82
Aws
Definition: AccessManagementClient.h:15
Aws::CodeGuruProfiler::Model::TimestampStructure
Definition: TimestampStructure.h:34