AWS SDK for C++  1.9.22
AWS SDK for C++
ContainerImage.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Lightsail
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetImage() const{ return m_image; }
46 
50  inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
51 
55  inline void SetImage(const Aws::String& value) { m_imageHasBeenSet = true; m_image = value; }
56 
60  inline void SetImage(Aws::String&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
61 
65  inline void SetImage(const char* value) { m_imageHasBeenSet = true; m_image.assign(value); }
66 
70  inline ContainerImage& WithImage(const Aws::String& value) { SetImage(value); return *this;}
71 
75  inline ContainerImage& WithImage(Aws::String&& value) { SetImage(std::move(value)); return *this;}
76 
80  inline ContainerImage& WithImage(const char* value) { SetImage(value); return *this;}
81 
82 
86  inline const Aws::String& GetDigest() const{ return m_digest; }
87 
91  inline bool DigestHasBeenSet() const { return m_digestHasBeenSet; }
92 
96  inline void SetDigest(const Aws::String& value) { m_digestHasBeenSet = true; m_digest = value; }
97 
101  inline void SetDigest(Aws::String&& value) { m_digestHasBeenSet = true; m_digest = std::move(value); }
102 
106  inline void SetDigest(const char* value) { m_digestHasBeenSet = true; m_digest.assign(value); }
107 
111  inline ContainerImage& WithDigest(const Aws::String& value) { SetDigest(value); return *this;}
112 
116  inline ContainerImage& WithDigest(Aws::String&& value) { SetDigest(std::move(value)); return *this;}
117 
121  inline ContainerImage& WithDigest(const char* value) { SetDigest(value); return *this;}
122 
123 
127  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
128 
132  inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
133 
137  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
138 
142  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
143 
147  inline ContainerImage& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
148 
152  inline ContainerImage& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
153 
154  private:
155 
156  Aws::String m_image;
157  bool m_imageHasBeenSet;
158 
159  Aws::String m_digest;
160  bool m_digestHasBeenSet;
161 
162  Aws::Utils::DateTime m_createdAt;
163  bool m_createdAtHasBeenSet;
164  };
165 
166 } // namespace Model
167 } // namespace Lightsail
168 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Lightsail::Model::ContainerImage::WithCreatedAt
ContainerImage & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition: ContainerImage.h:152
Aws::Lightsail::Model::ContainerImage::SetImage
void SetImage(Aws::String &&value)
Definition: ContainerImage.h:60
Aws::Lightsail::Model::ContainerImage::ImageHasBeenSet
bool ImageHasBeenSet() const
Definition: ContainerImage.h:50
Aws::Lightsail::Model::ContainerImage::WithCreatedAt
ContainerImage & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition: ContainerImage.h:147
Aws::Lightsail::Model::ContainerImage::operator=
ContainerImage & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::ContainerImage::WithImage
ContainerImage & WithImage(const char *value)
Definition: ContainerImage.h:80
Aws::Lightsail::Model::ContainerImage::DigestHasBeenSet
bool DigestHasBeenSet() const
Definition: ContainerImage.h:91
DateTime.h
Aws::Lightsail::Model::ContainerImage::WithImage
ContainerImage & WithImage(const Aws::String &value)
Definition: ContainerImage.h:70
Aws::Lightsail::Model::ContainerImage::SetImage
void SetImage(const Aws::String &value)
Definition: ContainerImage.h:55
Aws::Lightsail::Model::ContainerImage::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::ContainerImage::SetDigest
void SetDigest(Aws::String &&value)
Definition: ContainerImage.h:101
Aws::Lightsail::Model::ContainerImage::GetCreatedAt
const Aws::Utils::DateTime & GetCreatedAt() const
Definition: ContainerImage.h:127
Aws::Lightsail::Model::ContainerImage::ContainerImage
ContainerImage()
Aws::Lightsail::Model::ContainerImage::SetDigest
void SetDigest(const char *value)
Definition: ContainerImage.h:106
Aws::Lightsail::Model::ContainerImage::SetImage
void SetImage(const char *value)
Definition: ContainerImage.h:65
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Lightsail::Model::ContainerImage::WithDigest
ContainerImage & WithDigest(const char *value)
Definition: ContainerImage.h:121
Aws::Lightsail::Model::ContainerImage::WithImage
ContainerImage & WithImage(Aws::String &&value)
Definition: ContainerImage.h:75
Lightsail_EXPORTS.h
Aws::Lightsail::Model::ContainerImage::WithDigest
ContainerImage & WithDigest(Aws::String &&value)
Definition: ContainerImage.h:116
Aws::Lightsail::Model::ContainerImage::SetDigest
void SetDigest(const Aws::String &value)
Definition: ContainerImage.h:96
Aws::Lightsail::Model::ContainerImage::SetCreatedAt
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition: ContainerImage.h:137
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::ContainerImage::CreatedAtHasBeenSet
bool CreatedAtHasBeenSet() const
Definition: ContainerImage.h:132
Aws::Lightsail::Model::ContainerImage
Definition: ContainerImage.h:34
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::ContainerImage::WithDigest
ContainerImage & WithDigest(const Aws::String &value)
Definition: ContainerImage.h:111
Aws::Lightsail::Model::ContainerImage::GetDigest
const Aws::String & GetDigest() const
Definition: ContainerImage.h:86
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::ContainerImage::SetCreatedAt
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition: ContainerImage.h:142
Aws::Lightsail::Model::ContainerImage::GetImage
const Aws::String & GetImage() const
Definition: ContainerImage.h:45
Aws::Lightsail::Model::ContainerImage::ContainerImage
ContainerImage(Aws::Utils::Json::JsonView jsonValue)