AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
IssueArtifactItem.h
1
6#pragma once
7#include <aws/continuum/Continuum_EXPORTS.h>
8#include <aws/continuum/model/IssueArtifactProducerSummary.h>
9#include <aws/continuum/model/IssueArtifactType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Continuum {
23namespace Model {
24
32 public:
33 AWS_CONTINUUM_API IssueArtifactItem() = default;
34 AWS_CONTINUUM_API IssueArtifactItem(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetArtifactId() const { return m_artifactId; }
43 inline bool ArtifactIdHasBeenSet() const { return m_artifactIdHasBeenSet; }
44 template <typename ArtifactIdT = Aws::String>
45 void SetArtifactId(ArtifactIdT&& value) {
46 m_artifactIdHasBeenSet = true;
47 m_artifactId = std::forward<ArtifactIdT>(value);
48 }
49 template <typename ArtifactIdT = Aws::String>
50 IssueArtifactItem& WithArtifactId(ArtifactIdT&& value) {
51 SetArtifactId(std::forward<ArtifactIdT>(value));
52 return *this;
53 }
55
57
60 inline IssueArtifactType GetArtifactType() const { return m_artifactType; }
61 inline bool ArtifactTypeHasBeenSet() const { return m_artifactTypeHasBeenSet; }
63 m_artifactTypeHasBeenSet = true;
64 m_artifactType = value;
65 }
67 SetArtifactType(value);
68 return *this;
69 }
71
73
76 inline const Aws::String& GetMediaType() const { return m_mediaType; }
77 inline bool MediaTypeHasBeenSet() const { return m_mediaTypeHasBeenSet; }
78 template <typename MediaTypeT = Aws::String>
79 void SetMediaType(MediaTypeT&& value) {
80 m_mediaTypeHasBeenSet = true;
81 m_mediaType = std::forward<MediaTypeT>(value);
82 }
83 template <typename MediaTypeT = Aws::String>
84 IssueArtifactItem& WithMediaType(MediaTypeT&& value) {
85 SetMediaType(std::forward<MediaTypeT>(value));
86 return *this;
87 }
89
91
94 inline const IssueArtifactProducerSummary& GetProducer() const { return m_producer; }
95 inline bool ProducerHasBeenSet() const { return m_producerHasBeenSet; }
96 template <typename ProducerT = IssueArtifactProducerSummary>
97 void SetProducer(ProducerT&& value) {
98 m_producerHasBeenSet = true;
99 m_producer = std::forward<ProducerT>(value);
100 }
101 template <typename ProducerT = IssueArtifactProducerSummary>
102 IssueArtifactItem& WithProducer(ProducerT&& value) {
103 SetProducer(std::forward<ProducerT>(value));
104 return *this;
105 }
107
109
113 inline long long GetContentSizeBytes() const { return m_contentSizeBytes; }
114 inline bool ContentSizeBytesHasBeenSet() const { return m_contentSizeBytesHasBeenSet; }
115 inline void SetContentSizeBytes(long long value) {
116 m_contentSizeBytesHasBeenSet = true;
117 m_contentSizeBytes = value;
118 }
119 inline IssueArtifactItem& WithContentSizeBytes(long long value) {
120 SetContentSizeBytes(value);
121 return *this;
122 }
124
126
129 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
130 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
131 template <typename CreatedAtT = Aws::Utils::DateTime>
132 void SetCreatedAt(CreatedAtT&& value) {
133 m_createdAtHasBeenSet = true;
134 m_createdAt = std::forward<CreatedAtT>(value);
135 }
136 template <typename CreatedAtT = Aws::Utils::DateTime>
137 IssueArtifactItem& WithCreatedAt(CreatedAtT&& value) {
138 SetCreatedAt(std::forward<CreatedAtT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_artifactId;
144
146
147 Aws::String m_mediaType;
148
149 IssueArtifactProducerSummary m_producer;
150
151 long long m_contentSizeBytes{0};
152
153 Aws::Utils::DateTime m_createdAt{};
154 bool m_artifactIdHasBeenSet = false;
155 bool m_artifactTypeHasBeenSet = false;
156 bool m_mediaTypeHasBeenSet = false;
157 bool m_producerHasBeenSet = false;
158 bool m_contentSizeBytesHasBeenSet = false;
159 bool m_createdAtHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace Continuum
164} // namespace Aws
IssueArtifactItem & WithMediaType(MediaTypeT &&value)
void SetArtifactType(IssueArtifactType value)
IssueArtifactItem & WithArtifactType(IssueArtifactType value)
AWS_CONTINUUM_API IssueArtifactItem & operator=(Aws::Utils::Json::JsonView jsonValue)
IssueArtifactItem & WithProducer(ProducerT &&value)
IssueArtifactItem & WithCreatedAt(CreatedAtT &&value)
const IssueArtifactProducerSummary & GetProducer() const
const Aws::String & GetMediaType() const
IssueArtifactItem & WithContentSizeBytes(long long value)
AWS_CONTINUUM_API IssueArtifactItem(Aws::Utils::Json::JsonView jsonValue)
AWS_CONTINUUM_API IssueArtifactItem()=default
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetArtifactId() const
AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const
IssueArtifactItem & WithArtifactId(ArtifactIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue