AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ContainerImage.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lightsail/Lightsail_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Lightsail {
21namespace Model {
22
30 public:
31 AWS_LIGHTSAIL_API ContainerImage() = default;
32 AWS_LIGHTSAIL_API ContainerImage(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetImage() const { return m_image; }
41 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
42 template <typename ImageT = Aws::String>
43 void SetImage(ImageT&& value) {
44 m_imageHasBeenSet = true;
45 m_image = std::forward<ImageT>(value);
46 }
47 template <typename ImageT = Aws::String>
48 ContainerImage& WithImage(ImageT&& value) {
49 SetImage(std::forward<ImageT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDigest() const { return m_digest; }
59 inline bool DigestHasBeenSet() const { return m_digestHasBeenSet; }
60 template <typename DigestT = Aws::String>
61 void SetDigest(DigestT&& value) {
62 m_digestHasBeenSet = true;
63 m_digest = std::forward<DigestT>(value);
64 }
65 template <typename DigestT = Aws::String>
66 ContainerImage& WithDigest(DigestT&& value) {
67 SetDigest(std::forward<DigestT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
77 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
78 template <typename CreatedAtT = Aws::Utils::DateTime>
79 void SetCreatedAt(CreatedAtT&& value) {
80 m_createdAtHasBeenSet = true;
81 m_createdAt = std::forward<CreatedAtT>(value);
82 }
83 template <typename CreatedAtT = Aws::Utils::DateTime>
84 ContainerImage& WithCreatedAt(CreatedAtT&& value) {
85 SetCreatedAt(std::forward<CreatedAtT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_image;
91
92 Aws::String m_digest;
93
94 Aws::Utils::DateTime m_createdAt{};
95 bool m_imageHasBeenSet = false;
96 bool m_digestHasBeenSet = false;
97 bool m_createdAtHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace Lightsail
102} // namespace Aws
ContainerImage & WithImage(ImageT &&value)
void SetCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_LIGHTSAIL_API ContainerImage(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetImage() const
AWS_LIGHTSAIL_API ContainerImage & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDigest() const
AWS_LIGHTSAIL_API ContainerImage()=default
ContainerImage & WithCreatedAt(CreatedAtT &&value)
ContainerImage & WithDigest(DigestT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue