AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
EcrContainerImageMetadata.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/inspector2/Inspector2_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Inspector2 {
22namespace Model {
23
31 public:
32 AWS_INSPECTOR2_API EcrContainerImageMetadata() = default;
35 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Vector<Aws::String>& GetTags() const { return m_tags; }
42 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
43 template <typename TagsT = Aws::Vector<Aws::String>>
44 void SetTags(TagsT&& value) {
45 m_tagsHasBeenSet = true;
46 m_tags = std::forward<TagsT>(value);
47 }
48 template <typename TagsT = Aws::Vector<Aws::String>>
50 SetTags(std::forward<TagsT>(value));
51 return *this;
52 }
53 template <typename TagsT = Aws::String>
55 m_tagsHasBeenSet = true;
56 m_tags.emplace_back(std::forward<TagsT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::Utils::DateTime& GetImagePulledAt() const { return m_imagePulledAt; }
66 inline bool ImagePulledAtHasBeenSet() const { return m_imagePulledAtHasBeenSet; }
67 template <typename ImagePulledAtT = Aws::Utils::DateTime>
68 void SetImagePulledAt(ImagePulledAtT&& value) {
69 m_imagePulledAtHasBeenSet = true;
70 m_imagePulledAt = std::forward<ImagePulledAtT>(value);
71 }
72 template <typename ImagePulledAtT = Aws::Utils::DateTime>
74 SetImagePulledAt(std::forward<ImagePulledAtT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::Utils::DateTime& GetLastInUseAt() const { return m_lastInUseAt; }
85 inline bool LastInUseAtHasBeenSet() const { return m_lastInUseAtHasBeenSet; }
86 template <typename LastInUseAtT = Aws::Utils::DateTime>
87 void SetLastInUseAt(LastInUseAtT&& value) {
88 m_lastInUseAtHasBeenSet = true;
89 m_lastInUseAt = std::forward<LastInUseAtT>(value);
90 }
91 template <typename LastInUseAtT = Aws::Utils::DateTime>
93 SetLastInUseAt(std::forward<LastInUseAtT>(value));
94 return *this;
95 }
97
99
103 inline long long GetInUseCount() const { return m_inUseCount; }
104 inline bool InUseCountHasBeenSet() const { return m_inUseCountHasBeenSet; }
105 inline void SetInUseCount(long long value) {
106 m_inUseCountHasBeenSet = true;
107 m_inUseCount = value;
108 }
109 inline EcrContainerImageMetadata& WithInUseCount(long long value) {
110 SetInUseCount(value);
111 return *this;
112 }
114 private:
116
117 Aws::Utils::DateTime m_imagePulledAt{};
118
119 Aws::Utils::DateTime m_lastInUseAt{};
120
121 long long m_inUseCount{0};
122 bool m_tagsHasBeenSet = false;
123 bool m_imagePulledAtHasBeenSet = false;
124 bool m_lastInUseAtHasBeenSet = false;
125 bool m_inUseCountHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace Inspector2
130} // namespace Aws
const Aws::Vector< Aws::String > & GetTags() const
AWS_INSPECTOR2_API EcrContainerImageMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
EcrContainerImageMetadata & WithTags(TagsT &&value)
EcrContainerImageMetadata & AddTags(TagsT &&value)
EcrContainerImageMetadata & WithLastInUseAt(LastInUseAtT &&value)
EcrContainerImageMetadata & WithInUseCount(long long value)
AWS_INSPECTOR2_API EcrContainerImageMetadata()=default
AWS_INSPECTOR2_API EcrContainerImageMetadata(Aws::Utils::Json::JsonView jsonValue)
EcrContainerImageMetadata & WithImagePulledAt(ImagePulledAtT &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue