AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
GenerationSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
10#include <aws/lexv2-models/model/GenerationStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LexModelsV2 {
22namespace Model {
23
31 public:
32 AWS_LEXMODELSV2_API GenerationSummary() = default;
33 AWS_LEXMODELSV2_API GenerationSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetGenerationId() const { return m_generationId; }
42 inline bool GenerationIdHasBeenSet() const { return m_generationIdHasBeenSet; }
43 template <typename GenerationIdT = Aws::String>
44 void SetGenerationId(GenerationIdT&& value) {
45 m_generationIdHasBeenSet = true;
46 m_generationId = std::forward<GenerationIdT>(value);
47 }
48 template <typename GenerationIdT = Aws::String>
49 GenerationSummary& WithGenerationId(GenerationIdT&& value) {
50 SetGenerationId(std::forward<GenerationIdT>(value));
51 return *this;
52 }
54
56
59 inline GenerationStatus GetGenerationStatus() const { return m_generationStatus; }
60 inline bool GenerationStatusHasBeenSet() const { return m_generationStatusHasBeenSet; }
62 m_generationStatusHasBeenSet = true;
63 m_generationStatus = value;
64 }
67 return *this;
68 }
70
72
75 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
76 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
77 template <typename CreationDateTimeT = Aws::Utils::DateTime>
78 void SetCreationDateTime(CreationDateTimeT&& value) {
79 m_creationDateTimeHasBeenSet = true;
80 m_creationDateTime = std::forward<CreationDateTimeT>(value);
81 }
82 template <typename CreationDateTimeT = Aws::Utils::DateTime>
83 GenerationSummary& WithCreationDateTime(CreationDateTimeT&& value) {
84 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
94 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
95 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
96 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
97 m_lastUpdatedDateTimeHasBeenSet = true;
98 m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value);
99 }
100 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
101 GenerationSummary& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
102 SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_generationId;
108
110
111 Aws::Utils::DateTime m_creationDateTime{};
112
113 Aws::Utils::DateTime m_lastUpdatedDateTime{};
114 bool m_generationIdHasBeenSet = false;
115 bool m_generationStatusHasBeenSet = false;
116 bool m_creationDateTimeHasBeenSet = false;
117 bool m_lastUpdatedDateTimeHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace LexModelsV2
122} // namespace Aws
const Aws::Utils::DateTime & GetCreationDateTime() const
GenerationSummary & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
void SetGenerationStatus(GenerationStatus value)
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
AWS_LEXMODELSV2_API GenerationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
GenerationSummary & WithGenerationStatus(GenerationStatus value)
const Aws::String & GetGenerationId() const
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
GenerationSummary & WithCreationDateTime(CreationDateTimeT &&value)
GenerationSummary & WithGenerationId(GenerationIdT &&value)
AWS_LEXMODELSV2_API GenerationSummary(Aws::Utils::Json::JsonView jsonValue)
void SetGenerationId(GenerationIdT &&value)
AWS_LEXMODELSV2_API GenerationSummary()=default
void SetCreationDateTime(CreationDateTimeT &&value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue