AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ConfigurationRevision.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kafka/Kafka_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Kafka {
21namespace Model {
22
32 public:
33 AWS_KAFKA_API ConfigurationRevision() = default;
36 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
45 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
46 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
47 template <typename CreationTimeT = Aws::Utils::DateTime>
48 void SetCreationTime(CreationTimeT&& value) {
49 m_creationTimeHasBeenSet = true;
50 m_creationTime = std::forward<CreationTimeT>(value);
51 }
52 template <typename CreationTimeT = Aws::Utils::DateTime>
53 ConfigurationRevision& WithCreationTime(CreationTimeT&& value) {
54 SetCreationTime(std::forward<CreationTimeT>(value));
55 return *this;
56 }
58
60
65 inline const Aws::String& GetDescription() const { return m_description; }
66 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
67 template <typename DescriptionT = Aws::String>
68 void SetDescription(DescriptionT&& value) {
69 m_descriptionHasBeenSet = true;
70 m_description = std::forward<DescriptionT>(value);
71 }
72 template <typename DescriptionT = Aws::String>
73 ConfigurationRevision& WithDescription(DescriptionT&& value) {
74 SetDescription(std::forward<DescriptionT>(value));
75 return *this;
76 }
78
80
85 inline long long GetRevision() const { return m_revision; }
86 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
87 inline void SetRevision(long long value) {
88 m_revisionHasBeenSet = true;
89 m_revision = value;
90 }
91 inline ConfigurationRevision& WithRevision(long long value) {
92 SetRevision(value);
93 return *this;
94 }
96 private:
97 Aws::Utils::DateTime m_creationTime{};
98
99 Aws::String m_description;
100
101 long long m_revision{0};
102 bool m_creationTimeHasBeenSet = false;
103 bool m_descriptionHasBeenSet = false;
104 bool m_revisionHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace Kafka
109} // namespace Aws
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KAFKA_API ConfigurationRevision(Aws::Utils::Json::JsonView jsonValue)
ConfigurationRevision & WithRevision(long long value)
ConfigurationRevision & WithCreationTime(CreationTimeT &&value)
AWS_KAFKA_API ConfigurationRevision()=default
const Aws::Utils::DateTime & GetCreationTime() const
ConfigurationRevision & WithDescription(DescriptionT &&value)
AWS_KAFKA_API ConfigurationRevision & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue