AWS SDK for C++  1.9.161
AWS SDK for C++
PutImageScanningConfigurationRequest.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 "PutImageScanningConfiguration"; }
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 PutImageScanningConfigurationRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
79 
85  inline PutImageScanningConfigurationRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
86 
92  inline PutImageScanningConfigurationRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
93 
94 
99  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
100 
105  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
106 
111  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
112 
117  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
118 
123  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
124 
129  inline PutImageScanningConfigurationRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
130 
135  inline PutImageScanningConfigurationRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
136 
141  inline PutImageScanningConfigurationRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
142 
143 
149  inline const ImageScanningConfiguration& GetImageScanningConfiguration() const{ return m_imageScanningConfiguration; }
150 
156  inline bool ImageScanningConfigurationHasBeenSet() const { return m_imageScanningConfigurationHasBeenSet; }
157 
163  inline void SetImageScanningConfiguration(const ImageScanningConfiguration& value) { m_imageScanningConfigurationHasBeenSet = true; m_imageScanningConfiguration = value; }
164 
170  inline void SetImageScanningConfiguration(ImageScanningConfiguration&& value) { m_imageScanningConfigurationHasBeenSet = true; m_imageScanningConfiguration = std::move(value); }
171 
177  inline PutImageScanningConfigurationRequest& WithImageScanningConfiguration(const ImageScanningConfiguration& value) { SetImageScanningConfiguration(value); return *this;}
178 
184  inline PutImageScanningConfigurationRequest& WithImageScanningConfiguration(ImageScanningConfiguration&& value) { SetImageScanningConfiguration(std::move(value)); return *this;}
185 
186  private:
187 
188  Aws::String m_registryId;
189  bool m_registryIdHasBeenSet;
190 
191  Aws::String m_repositoryName;
192  bool m_repositoryNameHasBeenSet;
193 
194  ImageScanningConfiguration m_imageScanningConfiguration;
195  bool m_imageScanningConfigurationHasBeenSet;
196  };
197 
198 } // namespace Model
199 } // namespace ECR
200 } // namespace Aws
Aws::ECR::Model::ImageScanningConfiguration
Definition: ImageScanningConfiguration.h:31
Aws::ECR::Model::PutImageScanningConfigurationRequest::WithRepositoryName
PutImageScanningConfigurationRequest & WithRepositoryName(const char *value)
Definition: PutImageScanningConfigurationRequest.h:141
Aws::ECR::Model::PutImageScanningConfigurationRequest::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: PutImageScanningConfigurationRequest.h:111
Aws::ECR::Model::PutImageScanningConfigurationRequest::GetRegistryId
const Aws::String & GetRegistryId() const
Definition: PutImageScanningConfigurationRequest.h:43
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECR::Model::PutImageScanningConfigurationRequest::WithRegistryId
PutImageScanningConfigurationRequest & WithRegistryId(const char *value)
Definition: PutImageScanningConfigurationRequest.h:92
Aws::ECR::Model::PutImageScanningConfigurationRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: PutImageScanningConfigurationRequest.h:99
Aws::ECR::Model::PutImageScanningConfigurationRequest::WithRegistryId
PutImageScanningConfigurationRequest & WithRegistryId(Aws::String &&value)
Definition: PutImageScanningConfigurationRequest.h:85
Aws::ECR::Model::PutImageScanningConfigurationRequest::WithImageScanningConfiguration
PutImageScanningConfigurationRequest & WithImageScanningConfiguration(const ImageScanningConfiguration &value)
Definition: PutImageScanningConfigurationRequest.h:177
Aws::ECR::Model::PutImageScanningConfigurationRequest::RegistryIdHasBeenSet
bool RegistryIdHasBeenSet() const
Definition: PutImageScanningConfigurationRequest.h:50
Aws::ECR::Model::PutImageScanningConfigurationRequest::WithImageScanningConfiguration
PutImageScanningConfigurationRequest & WithImageScanningConfiguration(ImageScanningConfiguration &&value)
Definition: PutImageScanningConfigurationRequest.h:184
Aws::ECR::Model::PutImageScanningConfigurationRequest::SetRegistryId
void SetRegistryId(Aws::String &&value)
Definition: PutImageScanningConfigurationRequest.h:64
Aws::ECR::Model::PutImageScanningConfigurationRequest
Definition: PutImageScanningConfigurationRequest.h:23
Aws::ECR::Model::PutImageScanningConfigurationRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: PutImageScanningConfigurationRequest.h:123
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
Aws::ECR::Model::PutImageScanningConfigurationRequest::SetRegistryId
void SetRegistryId(const Aws::String &value)
Definition: PutImageScanningConfigurationRequest.h:57
Aws::ECR::Model::PutImageScanningConfigurationRequest::WithRegistryId
PutImageScanningConfigurationRequest & WithRegistryId(const Aws::String &value)
Definition: PutImageScanningConfigurationRequest.h:78
Aws::ECR::Model::PutImageScanningConfigurationRequest::SetImageScanningConfiguration
void SetImageScanningConfiguration(const ImageScanningConfiguration &value)
Definition: PutImageScanningConfigurationRequest.h:163
Aws::ECR::Model::PutImageScanningConfigurationRequest::SetImageScanningConfiguration
void SetImageScanningConfiguration(ImageScanningConfiguration &&value)
Definition: PutImageScanningConfigurationRequest.h:170
Aws::ECR::Model::PutImageScanningConfigurationRequest::ImageScanningConfigurationHasBeenSet
bool ImageScanningConfigurationHasBeenSet() const
Definition: PutImageScanningConfigurationRequest.h:156
Aws::ECR::Model::PutImageScanningConfigurationRequest::SerializePayload
Aws::String SerializePayload() const override
ECR_EXPORTS.h
Aws::ECR::Model::PutImageScanningConfigurationRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: PutImageScanningConfigurationRequest.h:105
AWSString.h
Aws::ECR::Model::PutImageScanningConfigurationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutImageScanningConfigurationRequest.h:31
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
Aws::ECR::Model::PutImageScanningConfigurationRequest::GetImageScanningConfiguration
const ImageScanningConfiguration & GetImageScanningConfiguration() const
Definition: PutImageScanningConfigurationRequest.h:149
ECRRequest.h
Aws::ECR::Model::PutImageScanningConfigurationRequest::WithRepositoryName
PutImageScanningConfigurationRequest & WithRepositoryName(const Aws::String &value)
Definition: PutImageScanningConfigurationRequest.h:129
Aws::ECR::Model::PutImageScanningConfigurationRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws
Definition: AccessManagementClient.h:15
Aws::ECR::Model::PutImageScanningConfigurationRequest::PutImageScanningConfigurationRequest
PutImageScanningConfigurationRequest()
Aws::ECR::Model::PutImageScanningConfigurationRequest::WithRepositoryName
PutImageScanningConfigurationRequest & WithRepositoryName(Aws::String &&value)
Definition: PutImageScanningConfigurationRequest.h:135
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ImageScanningConfiguration.h
Aws::ECR::Model::PutImageScanningConfigurationRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: PutImageScanningConfigurationRequest.h:117
Aws::ECR::Model::PutImageScanningConfigurationRequest::SetRegistryId
void SetRegistryId(const char *value)
Definition: PutImageScanningConfigurationRequest.h:71
Aws::ECR::ECRRequest
Definition: ECRRequest.h:17