AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
TaskHistoryEntry.h
1
6#pragma once
7#include <aws/assurance/Assurance_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/crt/cbor/Cbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace Assurance {
21namespace Model {
22
29 public:
30 AWS_ASSURANCE_API TaskHistoryEntry() = default;
31 AWS_ASSURANCE_API TaskHistoryEntry(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_ASSURANCE_API TaskHistoryEntry& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
39 inline const Aws::String& GetComment() const { return m_comment; }
40 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
41 template <typename CommentT = Aws::String>
42 void SetComment(CommentT&& value) {
43 m_commentHasBeenSet = true;
44 m_comment = std::forward<CommentT>(value);
45 }
46 template <typename CommentT = Aws::String>
47 TaskHistoryEntry& WithComment(CommentT&& value) {
48 SetComment(std::forward<CommentT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetModifiedBy() const { return m_modifiedBy; }
58 inline bool ModifiedByHasBeenSet() const { return m_modifiedByHasBeenSet; }
59 template <typename ModifiedByT = Aws::String>
60 void SetModifiedBy(ModifiedByT&& value) {
61 m_modifiedByHasBeenSet = true;
62 m_modifiedBy = std::forward<ModifiedByT>(value);
63 }
64 template <typename ModifiedByT = Aws::String>
65 TaskHistoryEntry& WithModifiedBy(ModifiedByT&& value) {
66 SetModifiedBy(std::forward<ModifiedByT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
76 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
77 template <typename UpdatedAtT = Aws::Utils::DateTime>
78 void SetUpdatedAt(UpdatedAtT&& value) {
79 m_updatedAtHasBeenSet = true;
80 m_updatedAt = std::forward<UpdatedAtT>(value);
81 }
82 template <typename UpdatedAtT = Aws::Utils::DateTime>
83 TaskHistoryEntry& WithUpdatedAt(UpdatedAtT&& value) {
84 SetUpdatedAt(std::forward<UpdatedAtT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_comment;
90
91 Aws::String m_modifiedBy;
92
93 Aws::Utils::DateTime m_updatedAt{};
94 bool m_commentHasBeenSet = false;
95 bool m_modifiedByHasBeenSet = false;
96 bool m_updatedAtHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace Assurance
101} // namespace Aws
TaskHistoryEntry & WithUpdatedAt(UpdatedAtT &&value)
TaskHistoryEntry & WithComment(CommentT &&value)
bool CommentHasBeenSet() const
void SetUpdatedAt(UpdatedAtT &&value)
bool ModifiedByHasBeenSet() const
AWS_ASSURANCE_API TaskHistoryEntry(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
TaskHistoryEntry & WithModifiedBy(ModifiedByT &&value)
AWS_ASSURANCE_API TaskHistoryEntry & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_ASSURANCE_API TaskHistoryEntry()=default
void SetComment(CommentT &&value)
bool UpdatedAtHasBeenSet() const
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::String & GetComment() const
void SetModifiedBy(ModifiedByT &&value)
const Aws::String & GetModifiedBy() const
AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String