AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartImageScanRequest.h
1
6#pragma once
7#include <aws/ecr/ECR_EXPORTS.h>
8#include <aws/ecr/ECRRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ecr/model/ImageIdentifier.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ECR
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_ECR_API StartImageScanRequest();
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_ECR_API Aws::String SerializePayload() const override;
34
36
37
39
44 inline const Aws::String& GetRegistryId() const{ return m_registryId; }
45 inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
46 inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
47 inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
48 inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
49 inline StartImageScanRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
50 inline StartImageScanRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
51 inline StartImageScanRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
53
55
58 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
59 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
60 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
61 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
62 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
63 inline StartImageScanRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
64 inline StartImageScanRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
65 inline StartImageScanRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
67
69
70 inline const ImageIdentifier& GetImageId() const{ return m_imageId; }
71 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
72 inline void SetImageId(const ImageIdentifier& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
73 inline void SetImageId(ImageIdentifier&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
74 inline StartImageScanRequest& WithImageId(const ImageIdentifier& value) { SetImageId(value); return *this;}
75 inline StartImageScanRequest& WithImageId(ImageIdentifier&& value) { SetImageId(std::move(value)); return *this;}
77 private:
78
79 Aws::String m_registryId;
80 bool m_registryIdHasBeenSet = false;
81
82 Aws::String m_repositoryName;
83 bool m_repositoryNameHasBeenSet = false;
84
85 ImageIdentifier m_imageId;
86 bool m_imageIdHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace ECR
91} // namespace Aws
virtual const char * GetServiceRequestName() const override
StartImageScanRequest & WithRepositoryName(const Aws::String &value)
StartImageScanRequest & WithRegistryId(Aws::String &&value)
const ImageIdentifier & GetImageId() const
StartImageScanRequest & WithRepositoryName(const char *value)
void SetImageId(ImageIdentifier &&value)
StartImageScanRequest & WithRegistryId(const Aws::String &value)
AWS_ECR_API Aws::String SerializePayload() const override
StartImageScanRequest & WithRegistryId(const char *value)
StartImageScanRequest & WithImageId(const ImageIdentifier &value)
void SetRegistryId(const Aws::String &value)
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetRepositoryName(const Aws::String &value)
void SetImageId(const ImageIdentifier &value)
StartImageScanRequest & WithImageId(ImageIdentifier &&value)
const Aws::String & GetRepositoryName() const
StartImageScanRequest & WithRepositoryName(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String