/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.imagebuilder.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Settings that Image Builder uses to configure the ECR repository and the output container images that Amazon * Inspector scans. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class EcrConfiguration implements Serializable, Cloneable, StructuredPojo { /** *
* The name of the container repository that Amazon Inspector scans to identify findings for your container images.
* The name includes the path for the repository location. If you don’t provide this information, Image Builder
* creates a repository in your account named image-builder-image-scanning-repository
for vulnerability
* scans of your output container images.
*
* Tags for Image Builder to apply to the output container image that &INS; scans. Tags can help you identify * and manage your scanned images. *
*/ private java.util.List
* The name of the container repository that Amazon Inspector scans to identify findings for your container images.
* The name includes the path for the repository location. If you don’t provide this information, Image Builder
* creates a repository in your account named image-builder-image-scanning-repository
for vulnerability
* scans of your output container images.
*
image-builder-image-scanning-repository
for vulnerability scans of your output container
* images.
*/
public void setRepositoryName(String repositoryName) {
this.repositoryName = repositoryName;
}
/**
*
* The name of the container repository that Amazon Inspector scans to identify findings for your container images.
* The name includes the path for the repository location. If you don’t provide this information, Image Builder
* creates a repository in your account named image-builder-image-scanning-repository
for vulnerability
* scans of your output container images.
*
image-builder-image-scanning-repository
for vulnerability scans of your output container
* images.
*/
public String getRepositoryName() {
return this.repositoryName;
}
/**
*
* The name of the container repository that Amazon Inspector scans to identify findings for your container images.
* The name includes the path for the repository location. If you don’t provide this information, Image Builder
* creates a repository in your account named image-builder-image-scanning-repository
for vulnerability
* scans of your output container images.
*
image-builder-image-scanning-repository
for vulnerability scans of your output container
* images.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EcrConfiguration withRepositoryName(String repositoryName) {
setRepositoryName(repositoryName);
return this;
}
/**
* * Tags for Image Builder to apply to the output container image that &INS; scans. Tags can help you identify * and manage your scanned images. *
* * @return Tags for Image Builder to apply to the output container image that &INS; scans. Tags can help you * identify and manage your scanned images. */ public java.util.List* Tags for Image Builder to apply to the output container image that &INS; scans. Tags can help you identify * and manage your scanned images. *
* * @param containerTags * Tags for Image Builder to apply to the output container image that &INS; scans. Tags can help you * identify and manage your scanned images. */ public void setContainerTags(java.util.Collection* Tags for Image Builder to apply to the output container image that &INS; scans. Tags can help you identify * and manage your scanned images. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setContainerTags(java.util.Collection)} or {@link #withContainerTags(java.util.Collection)} if you want * to override the existing values. *
* * @param containerTags * Tags for Image Builder to apply to the output container image that &INS; scans. Tags can help you * identify and manage your scanned images. * @return Returns a reference to this object so that method calls can be chained together. */ public EcrConfiguration withContainerTags(String... containerTags) { if (this.containerTags == null) { setContainerTags(new java.util.ArrayList* Tags for Image Builder to apply to the output container image that &INS; scans. Tags can help you identify * and manage your scanned images. *
* * @param containerTags * Tags for Image Builder to apply to the output container image that &INS; scans. Tags can help you * identify and manage your scanned images. * @return Returns a reference to this object so that method calls can be chained together. */ public EcrConfiguration withContainerTags(java.util.Collection