AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsEcrRepositoryDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityhub/model/AwsEcrRepositoryImageScanningConfigurationDetails.h>
10#include <aws/securityhub/model/AwsEcrRepositoryLifecyclePolicyDetails.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SECURITYHUB_API AwsEcrRepositoryDetails();
40 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetArn() const{ return m_arn; }
48 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
49 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
50 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
51 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
52 inline AwsEcrRepositoryDetails& WithArn(const Aws::String& value) { SetArn(value); return *this;}
53 inline AwsEcrRepositoryDetails& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
54 inline AwsEcrRepositoryDetails& WithArn(const char* value) { SetArn(value); return *this;}
56
58
61 inline const AwsEcrRepositoryImageScanningConfigurationDetails& GetImageScanningConfiguration() const{ return m_imageScanningConfiguration; }
62 inline bool ImageScanningConfigurationHasBeenSet() const { return m_imageScanningConfigurationHasBeenSet; }
63 inline void SetImageScanningConfiguration(const AwsEcrRepositoryImageScanningConfigurationDetails& value) { m_imageScanningConfigurationHasBeenSet = true; m_imageScanningConfiguration = value; }
64 inline void SetImageScanningConfiguration(AwsEcrRepositoryImageScanningConfigurationDetails&& value) { m_imageScanningConfigurationHasBeenSet = true; m_imageScanningConfiguration = std::move(value); }
68
70
74 inline const Aws::String& GetImageTagMutability() const{ return m_imageTagMutability; }
75 inline bool ImageTagMutabilityHasBeenSet() const { return m_imageTagMutabilityHasBeenSet; }
76 inline void SetImageTagMutability(const Aws::String& value) { m_imageTagMutabilityHasBeenSet = true; m_imageTagMutability = value; }
77 inline void SetImageTagMutability(Aws::String&& value) { m_imageTagMutabilityHasBeenSet = true; m_imageTagMutability = std::move(value); }
78 inline void SetImageTagMutability(const char* value) { m_imageTagMutabilityHasBeenSet = true; m_imageTagMutability.assign(value); }
80 inline AwsEcrRepositoryDetails& WithImageTagMutability(Aws::String&& value) { SetImageTagMutability(std::move(value)); return *this;}
81 inline AwsEcrRepositoryDetails& WithImageTagMutability(const char* value) { SetImageTagMutability(value); return *this;}
83
85
88 inline const AwsEcrRepositoryLifecyclePolicyDetails& GetLifecyclePolicy() const{ return m_lifecyclePolicy; }
89 inline bool LifecyclePolicyHasBeenSet() const { return m_lifecyclePolicyHasBeenSet; }
90 inline void SetLifecyclePolicy(const AwsEcrRepositoryLifecyclePolicyDetails& value) { m_lifecyclePolicyHasBeenSet = true; m_lifecyclePolicy = value; }
91 inline void SetLifecyclePolicy(AwsEcrRepositoryLifecyclePolicyDetails&& value) { m_lifecyclePolicyHasBeenSet = true; m_lifecyclePolicy = std::move(value); }
95
97
100 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
101 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
102 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
103 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
104 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
105 inline AwsEcrRepositoryDetails& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
106 inline AwsEcrRepositoryDetails& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
107 inline AwsEcrRepositoryDetails& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
109
111
114 inline const Aws::String& GetRepositoryPolicyText() const{ return m_repositoryPolicyText; }
115 inline bool RepositoryPolicyTextHasBeenSet() const { return m_repositoryPolicyTextHasBeenSet; }
116 inline void SetRepositoryPolicyText(const Aws::String& value) { m_repositoryPolicyTextHasBeenSet = true; m_repositoryPolicyText = value; }
117 inline void SetRepositoryPolicyText(Aws::String&& value) { m_repositoryPolicyTextHasBeenSet = true; m_repositoryPolicyText = std::move(value); }
118 inline void SetRepositoryPolicyText(const char* value) { m_repositoryPolicyTextHasBeenSet = true; m_repositoryPolicyText.assign(value); }
120 inline AwsEcrRepositoryDetails& WithRepositoryPolicyText(Aws::String&& value) { SetRepositoryPolicyText(std::move(value)); return *this;}
121 inline AwsEcrRepositoryDetails& WithRepositoryPolicyText(const char* value) { SetRepositoryPolicyText(value); return *this;}
123 private:
124
125 Aws::String m_arn;
126 bool m_arnHasBeenSet = false;
127
128 AwsEcrRepositoryImageScanningConfigurationDetails m_imageScanningConfiguration;
129 bool m_imageScanningConfigurationHasBeenSet = false;
130
131 Aws::String m_imageTagMutability;
132 bool m_imageTagMutabilityHasBeenSet = false;
133
135 bool m_lifecyclePolicyHasBeenSet = false;
136
137 Aws::String m_repositoryName;
138 bool m_repositoryNameHasBeenSet = false;
139
140 Aws::String m_repositoryPolicyText;
141 bool m_repositoryPolicyTextHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace SecurityHub
146} // namespace Aws
AwsEcrRepositoryDetails & WithLifecyclePolicy(AwsEcrRepositoryLifecyclePolicyDetails &&value)
AwsEcrRepositoryDetails & WithRepositoryPolicyText(Aws::String &&value)
AwsEcrRepositoryDetails & WithRepositoryPolicyText(const Aws::String &value)
AWS_SECURITYHUB_API AwsEcrRepositoryDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsEcrRepositoryDetails & WithImageTagMutability(Aws::String &&value)
AwsEcrRepositoryDetails & WithImageTagMutability(const Aws::String &value)
void SetImageScanningConfiguration(const AwsEcrRepositoryImageScanningConfigurationDetails &value)
const AwsEcrRepositoryImageScanningConfigurationDetails & GetImageScanningConfiguration() const
AwsEcrRepositoryDetails & WithRepositoryName(Aws::String &&value)
AwsEcrRepositoryDetails & WithArn(const char *value)
void SetLifecyclePolicy(const AwsEcrRepositoryLifecyclePolicyDetails &value)
const AwsEcrRepositoryLifecyclePolicyDetails & GetLifecyclePolicy() const
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API AwsEcrRepositoryDetails(Aws::Utils::Json::JsonView jsonValue)
AwsEcrRepositoryDetails & WithImageTagMutability(const char *value)
void SetLifecyclePolicy(AwsEcrRepositoryLifecyclePolicyDetails &&value)
AwsEcrRepositoryDetails & WithImageScanningConfiguration(const AwsEcrRepositoryImageScanningConfigurationDetails &value)
AwsEcrRepositoryDetails & WithArn(const Aws::String &value)
void SetImageScanningConfiguration(AwsEcrRepositoryImageScanningConfigurationDetails &&value)
AwsEcrRepositoryDetails & WithRepositoryPolicyText(const char *value)
AwsEcrRepositoryDetails & WithLifecyclePolicy(const AwsEcrRepositoryLifecyclePolicyDetails &value)
AwsEcrRepositoryDetails & WithRepositoryName(const char *value)
AwsEcrRepositoryDetails & WithArn(Aws::String &&value)
AwsEcrRepositoryDetails & WithImageScanningConfiguration(AwsEcrRepositoryImageScanningConfigurationDetails &&value)
AwsEcrRepositoryDetails & WithRepositoryName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue