AWS SDK for C++  1.9.106
AWS SDK for C++
ImageIdentifier.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecr/ECR_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace ECR
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetImageDigest() const{ return m_imageDigest; }
45 
49  inline bool ImageDigestHasBeenSet() const { return m_imageDigestHasBeenSet; }
50 
54  inline void SetImageDigest(const Aws::String& value) { m_imageDigestHasBeenSet = true; m_imageDigest = value; }
55 
59  inline void SetImageDigest(Aws::String&& value) { m_imageDigestHasBeenSet = true; m_imageDigest = std::move(value); }
60 
64  inline void SetImageDigest(const char* value) { m_imageDigestHasBeenSet = true; m_imageDigest.assign(value); }
65 
69  inline ImageIdentifier& WithImageDigest(const Aws::String& value) { SetImageDigest(value); return *this;}
70 
74  inline ImageIdentifier& WithImageDigest(Aws::String&& value) { SetImageDigest(std::move(value)); return *this;}
75 
79  inline ImageIdentifier& WithImageDigest(const char* value) { SetImageDigest(value); return *this;}
80 
81 
85  inline const Aws::String& GetImageTag() const{ return m_imageTag; }
86 
90  inline bool ImageTagHasBeenSet() const { return m_imageTagHasBeenSet; }
91 
95  inline void SetImageTag(const Aws::String& value) { m_imageTagHasBeenSet = true; m_imageTag = value; }
96 
100  inline void SetImageTag(Aws::String&& value) { m_imageTagHasBeenSet = true; m_imageTag = std::move(value); }
101 
105  inline void SetImageTag(const char* value) { m_imageTagHasBeenSet = true; m_imageTag.assign(value); }
106 
110  inline ImageIdentifier& WithImageTag(const Aws::String& value) { SetImageTag(value); return *this;}
111 
115  inline ImageIdentifier& WithImageTag(Aws::String&& value) { SetImageTag(std::move(value)); return *this;}
116 
120  inline ImageIdentifier& WithImageTag(const char* value) { SetImageTag(value); return *this;}
121 
122  private:
123 
124  Aws::String m_imageDigest;
125  bool m_imageDigestHasBeenSet;
126 
127  Aws::String m_imageTag;
128  bool m_imageTagHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace ECR
133 } // namespace Aws
Aws::ECR::Model::ImageIdentifier::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECR::Model::ImageIdentifier::WithImageTag
ImageIdentifier & WithImageTag(const char *value)
Definition: ImageIdentifier.h:120
Aws::ECR::Model::ImageIdentifier::SetImageDigest
void SetImageDigest(Aws::String &&value)
Definition: ImageIdentifier.h:59
Aws::ECR::Model::ImageIdentifier::WithImageTag
ImageIdentifier & WithImageTag(const Aws::String &value)
Definition: ImageIdentifier.h:110
Aws::ECR::Model::ImageIdentifier::operator=
ImageIdentifier & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECR::Model::ImageIdentifier::SetImageTag
void SetImageTag(const char *value)
Definition: ImageIdentifier.h:105
Aws::ECR::Model::ImageIdentifier::ImageTagHasBeenSet
bool ImageTagHasBeenSet() const
Definition: ImageIdentifier.h:90
Aws::ECR::Model::ImageIdentifier::WithImageDigest
ImageIdentifier & WithImageDigest(Aws::String &&value)
Definition: ImageIdentifier.h:74
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
Aws::ECR::Model::ImageIdentifier::ImageDigestHasBeenSet
bool ImageDigestHasBeenSet() const
Definition: ImageIdentifier.h:49
Aws::ECR::Model::ImageIdentifier::SetImageTag
void SetImageTag(const Aws::String &value)
Definition: ImageIdentifier.h:95
ECR_EXPORTS.h
Aws::ECR::Model::ImageIdentifier::SetImageDigest
void SetImageDigest(const char *value)
Definition: ImageIdentifier.h:64
Aws::ECR::Model::ImageIdentifier::GetImageDigest
const Aws::String & GetImageDigest() const
Definition: ImageIdentifier.h:44
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
Aws::ECR::Model::ImageIdentifier::ImageIdentifier
ImageIdentifier()
Aws::ECR::Model::ImageIdentifier::WithImageDigest
ImageIdentifier & WithImageDigest(const char *value)
Definition: ImageIdentifier.h:79
Aws::ECR::Model::ImageIdentifier
Definition: ImageIdentifier.h:33
Aws::ECR::Model::ImageIdentifier::SetImageTag
void SetImageTag(Aws::String &&value)
Definition: ImageIdentifier.h:100
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECR::Model::ImageIdentifier::GetImageTag
const Aws::String & GetImageTag() const
Definition: ImageIdentifier.h:85
Aws::ECR::Model::ImageIdentifier::ImageIdentifier
ImageIdentifier(Aws::Utils::Json::JsonView jsonValue)
Aws::ECR::Model::ImageIdentifier::SetImageDigest
void SetImageDigest(const Aws::String &value)
Definition: ImageIdentifier.h:54
Aws::ECR::Model::ImageIdentifier::WithImageTag
ImageIdentifier & WithImageTag(Aws::String &&value)
Definition: ImageIdentifier.h:115
Aws::ECR::Model::ImageIdentifier::WithImageDigest
ImageIdentifier & WithImageDigest(const Aws::String &value)
Definition: ImageIdentifier.h:69