AWS SDK for C++  1.9.109
AWS SDK for C++
ImageScanStatus.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecr/ECR_EXPORTS.h>
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 ECR
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
44  inline const ScanStatus& GetStatus() const{ return m_status; }
45 
49  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
50 
54  inline void SetStatus(const ScanStatus& value) { m_statusHasBeenSet = true; m_status = value; }
55 
59  inline void SetStatus(ScanStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
60 
64  inline ImageScanStatus& WithStatus(const ScanStatus& value) { SetStatus(value); return *this;}
65 
69  inline ImageScanStatus& WithStatus(ScanStatus&& value) { SetStatus(std::move(value)); return *this;}
70 
71 
75  inline const Aws::String& GetDescription() const{ return m_description; }
76 
80  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 
85  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
86 
90  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
91 
95  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
96 
100  inline ImageScanStatus& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
101 
105  inline ImageScanStatus& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
106 
110  inline ImageScanStatus& WithDescription(const char* value) { SetDescription(value); return *this;}
111 
112  private:
113 
114  ScanStatus m_status;
115  bool m_statusHasBeenSet;
116 
117  Aws::String m_description;
118  bool m_descriptionHasBeenSet;
119  };
120 
121 } // namespace Model
122 } // namespace ECR
123 } // namespace Aws
Aws::ECR::Model::ImageScanStatus::SetStatus
void SetStatus(ScanStatus &&value)
Definition: ImageScanStatus.h:59
Aws::ECR::Model::ImageScanStatus::WithStatus
ImageScanStatus & WithStatus(ScanStatus &&value)
Definition: ImageScanStatus.h:69
Aws::ECR::Model::ImageScanStatus::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: ImageScanStatus.h:49
Aws::ECR::Model::ImageScanStatus::WithDescription
ImageScanStatus & WithDescription(const Aws::String &value)
Definition: ImageScanStatus.h:100
Aws::ECR::Model::ImageScanStatus::ImageScanStatus
ImageScanStatus()
Aws::ECR::Model::ImageScanStatus
Definition: ImageScanStatus.h:33
Aws::ECR::Model::ImageScanStatus::operator=
ImageScanStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
ECR_EXPORTS.h
Aws::ECR::Model::ImageScanStatus::SetDescription
void SetDescription(Aws::String &&value)
Definition: ImageScanStatus.h:90
Aws::ECR::Model::ImageScanStatus::SetDescription
void SetDescription(const char *value)
Definition: ImageScanStatus.h:95
Aws::ECR::Model::ImageScanStatus::WithStatus
ImageScanStatus & WithStatus(const ScanStatus &value)
Definition: ImageScanStatus.h:64
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::ECR::Model::ImageScanStatus::SetStatus
void SetStatus(const ScanStatus &value)
Definition: ImageScanStatus.h:54
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
ScanStatus.h
Aws::ECR::Model::ImageScanStatus::GetStatus
const ScanStatus & GetStatus() const
Definition: ImageScanStatus.h:44
Aws::ECR::Model::ImageScanStatus::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: ImageScanStatus.h:80
Aws
Definition: AccessManagementClient.h:15
Aws::ECR::Model::ImageScanStatus::GetDescription
const Aws::String & GetDescription() const
Definition: ImageScanStatus.h:75
Aws::ECR::Model::ImageScanStatus::WithDescription
ImageScanStatus & WithDescription(Aws::String &&value)
Definition: ImageScanStatus.h:105
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECR::Model::ImageScanStatus::WithDescription
ImageScanStatus & WithDescription(const char *value)
Definition: ImageScanStatus.h:110
Aws::ECR::Model::ImageScanStatus::ImageScanStatus
ImageScanStatus(Aws::Utils::Json::JsonView jsonValue)
Aws::ECR::Model::ImageScanStatus::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECR::Model::ScanStatus
ScanStatus
Definition: ScanStatus.h:17
Aws::ECR::Model::ImageScanStatus::SetDescription
void SetDescription(const Aws::String &value)
Definition: ImageScanStatus.h:85