AWS SDK for C++

AWS SDK for C++ Version 1.11.860

Loading...
Searching...
No Matches
ResponseVersion.h
1
6#pragma once
7#include <aws/artifact/Artifact_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Artifact {
21namespace Model {
22
29 public:
30 AWS_ARTIFACT_API ResponseVersion() = default;
31 AWS_ARTIFACT_API ResponseVersion(Aws::Utils::Json::JsonView jsonValue);
33 AWS_ARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetResponseText() const { return m_responseText; }
40 inline bool ResponseTextHasBeenSet() const { return m_responseTextHasBeenSet; }
41 template <typename ResponseTextT = Aws::String>
42 void SetResponseText(ResponseTextT&& value) {
43 m_responseTextHasBeenSet = true;
44 m_responseText = std::forward<ResponseTextT>(value);
45 }
46 template <typename ResponseTextT = Aws::String>
47 ResponseVersion& WithResponseText(ResponseTextT&& value) {
48 SetResponseText(std::forward<ResponseTextT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
58 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
59 template <typename TimestampT = Aws::Utils::DateTime>
60 void SetTimestamp(TimestampT&& value) {
61 m_timestampHasBeenSet = true;
62 m_timestamp = std::forward<TimestampT>(value);
63 }
64 template <typename TimestampT = Aws::Utils::DateTime>
65 ResponseVersion& WithTimestamp(TimestampT&& value) {
66 SetTimestamp(std::forward<TimestampT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_responseText;
72
73 Aws::Utils::DateTime m_timestamp{};
74 bool m_responseTextHasBeenSet = false;
75 bool m_timestampHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace Artifact
80} // namespace Aws
AWS_ARTIFACT_API ResponseVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetResponseText(ResponseTextT &&value)
AWS_ARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ARTIFACT_API ResponseVersion()=default
ResponseVersion & WithResponseText(ResponseTextT &&value)
const Aws::Utils::DateTime & GetTimestamp() const
const Aws::String & GetResponseText() const
AWS_ARTIFACT_API ResponseVersion(Aws::Utils::Json::JsonView jsonValue)
ResponseVersion & WithTimestamp(TimestampT &&value)
void SetTimestamp(TimestampT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue