AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ContainerImage.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Lightsail
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_LIGHTSAIL_API ContainerImage() = default;
37 AWS_LIGHTSAIL_API ContainerImage(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetImage() const { return m_image; }
47 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
48 template<typename ImageT = Aws::String>
49 void SetImage(ImageT&& value) { m_imageHasBeenSet = true; m_image = std::forward<ImageT>(value); }
50 template<typename ImageT = Aws::String>
51 ContainerImage& WithImage(ImageT&& value) { SetImage(std::forward<ImageT>(value)); return *this;}
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) { m_digestHasBeenSet = true; m_digest = std::forward<DigestT>(value); }
62 template<typename DigestT = Aws::String>
63 ContainerImage& WithDigest(DigestT&& value) { SetDigest(std::forward<DigestT>(value)); return *this;}
65
67
70 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
71 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
72 template<typename CreatedAtT = Aws::Utils::DateTime>
73 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
74 template<typename CreatedAtT = Aws::Utils::DateTime>
75 ContainerImage& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
77 private:
78
79 Aws::String m_image;
80 bool m_imageHasBeenSet = false;
81
82 Aws::String m_digest;
83 bool m_digestHasBeenSet = false;
84
85 Aws::Utils::DateTime m_createdAt{};
86 bool m_createdAtHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace Lightsail
91} // 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