AWS SDK for C++  1.9.71
AWS SDK for C++
StartImageScanRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecr/ECR_EXPORTS.h>
8 #include <aws/ecr/ECRRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace ECR
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "StartImageScan"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
43  inline const Aws::String& GetRegistryId() const{ return m_registryId; }
44 
50  inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
51 
57  inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
58 
64  inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
65 
71  inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
72 
78  inline StartImageScanRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
79 
85  inline StartImageScanRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
86 
92  inline StartImageScanRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
93 
94 
98  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
99 
103  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
104 
108  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
109 
113  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
114 
118  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
119 
123  inline StartImageScanRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
124 
128  inline StartImageScanRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
129 
133  inline StartImageScanRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
134 
135 
136 
137  inline const ImageIdentifier& GetImageId() const{ return m_imageId; }
138 
139 
140  inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
141 
142 
143  inline void SetImageId(const ImageIdentifier& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
144 
145 
146  inline void SetImageId(ImageIdentifier&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
147 
148 
149  inline StartImageScanRequest& WithImageId(const ImageIdentifier& value) { SetImageId(value); return *this;}
150 
151 
152  inline StartImageScanRequest& WithImageId(ImageIdentifier&& value) { SetImageId(std::move(value)); return *this;}
153 
154  private:
155 
156  Aws::String m_registryId;
157  bool m_registryIdHasBeenSet;
158 
159  Aws::String m_repositoryName;
160  bool m_repositoryNameHasBeenSet;
161 
162  ImageIdentifier m_imageId;
163  bool m_imageIdHasBeenSet;
164  };
165 
166 } // namespace Model
167 } // namespace ECR
168 } // namespace Aws
Aws::ECR::Model::StartImageScanRequest::RegistryIdHasBeenSet
bool RegistryIdHasBeenSet() const
Definition: StartImageScanRequest.h:50
Aws::ECR::Model::StartImageScanRequest::SetImageId
void SetImageId(ImageIdentifier &&value)
Definition: StartImageScanRequest.h:146
Aws::ECR::Model::StartImageScanRequest::ImageIdHasBeenSet
bool ImageIdHasBeenSet() const
Definition: StartImageScanRequest.h:140
Aws::ECR::Model::StartImageScanRequest::StartImageScanRequest
StartImageScanRequest()
Aws::ECR::Model::StartImageScanRequest::WithImageId
StartImageScanRequest & WithImageId(ImageIdentifier &&value)
Definition: StartImageScanRequest.h:152
Aws::ECR::Model::StartImageScanRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: StartImageScanRequest.h:113
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
ImageIdentifier.h
Aws::ECR::Model::StartImageScanRequest::WithRepositoryName
StartImageScanRequest & WithRepositoryName(const Aws::String &value)
Definition: StartImageScanRequest.h:123
Aws::ECR::Model::StartImageScanRequest::GetRegistryId
const Aws::String & GetRegistryId() const
Definition: StartImageScanRequest.h:43
Aws::ECR::Model::StartImageScanRequest::SetRegistryId
void SetRegistryId(const char *value)
Definition: StartImageScanRequest.h:71
Aws::ECR::Model::StartImageScanRequest::SetRegistryId
void SetRegistryId(Aws::String &&value)
Definition: StartImageScanRequest.h:64
Aws::ECR::Model::StartImageScanRequest::WithRegistryId
StartImageScanRequest & WithRegistryId(const char *value)
Definition: StartImageScanRequest.h:92
Aws::ECR::Model::StartImageScanRequest::WithRepositoryName
StartImageScanRequest & WithRepositoryName(Aws::String &&value)
Definition: StartImageScanRequest.h:128
Aws::ECR::Model::StartImageScanRequest::GetImageId
const ImageIdentifier & GetImageId() const
Definition: StartImageScanRequest.h:137
Aws::ECR::Model::StartImageScanRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECR::Model::StartImageScanRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: StartImageScanRequest.h:103
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
Aws::ECR::Model::StartImageScanRequest
Definition: StartImageScanRequest.h:23
Aws::ECR::Model::StartImageScanRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: StartImageScanRequest.h:98
ECR_EXPORTS.h
Aws::ECR::Model::StartImageScanRequest::SetRegistryId
void SetRegistryId(const Aws::String &value)
Definition: StartImageScanRequest.h:57
AWSString.h
Aws::ECR::Model::StartImageScanRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: StartImageScanRequest.h:118
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
ECRRequest.h
Aws::ECR::Model::StartImageScanRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StartImageScanRequest.h:31
Aws::ECR::Model::StartImageScanRequest::WithRegistryId
StartImageScanRequest & WithRegistryId(const Aws::String &value)
Definition: StartImageScanRequest.h:78
Aws::ECR::Model::StartImageScanRequest::SetImageId
void SetImageId(const ImageIdentifier &value)
Definition: StartImageScanRequest.h:143
Aws::ECR::Model::StartImageScanRequest::WithRegistryId
StartImageScanRequest & WithRegistryId(Aws::String &&value)
Definition: StartImageScanRequest.h:85
Aws::ECR::Model::ImageIdentifier
Definition: ImageIdentifier.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::ECR::Model::StartImageScanRequest::WithImageId
StartImageScanRequest & WithImageId(const ImageIdentifier &value)
Definition: StartImageScanRequest.h:149
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECR::Model::StartImageScanRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECR::Model::StartImageScanRequest::WithRepositoryName
StartImageScanRequest & WithRepositoryName(const char *value)
Definition: StartImageScanRequest.h:133
Aws::ECR::Model::StartImageScanRequest::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: StartImageScanRequest.h:108
Aws::ECR::ECRRequest
Definition: ECRRequest.h:17