/* * 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.ecr.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The details of the scanning configuration for a repository. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class RepositoryScanningConfiguration implements Serializable, Cloneable, StructuredPojo { /** ** The ARN of the repository. *
*/ private String repositoryArn; /** ** The name of the repository. *
*/ private String repositoryName; /** ** Whether or not scan on push is configured for the repository. *
*/ private Boolean scanOnPush; /** ** The scan frequency for the repository. *
*/ private String scanFrequency; /** ** The scan filters applied to the repository. *
*/ private java.util.List* The ARN of the repository. *
* * @param repositoryArn * The ARN of the repository. */ public void setRepositoryArn(String repositoryArn) { this.repositoryArn = repositoryArn; } /** ** The ARN of the repository. *
* * @return The ARN of the repository. */ public String getRepositoryArn() { return this.repositoryArn; } /** ** The ARN of the repository. *
* * @param repositoryArn * The ARN of the repository. * @return Returns a reference to this object so that method calls can be chained together. */ public RepositoryScanningConfiguration withRepositoryArn(String repositoryArn) { setRepositoryArn(repositoryArn); return this; } /** ** The name of the repository. *
* * @param repositoryName * The name of the repository. */ public void setRepositoryName(String repositoryName) { this.repositoryName = repositoryName; } /** ** The name of the repository. *
* * @return The name of the repository. */ public String getRepositoryName() { return this.repositoryName; } /** ** The name of the repository. *
* * @param repositoryName * The name of the repository. * @return Returns a reference to this object so that method calls can be chained together. */ public RepositoryScanningConfiguration withRepositoryName(String repositoryName) { setRepositoryName(repositoryName); return this; } /** ** Whether or not scan on push is configured for the repository. *
* * @param scanOnPush * Whether or not scan on push is configured for the repository. */ public void setScanOnPush(Boolean scanOnPush) { this.scanOnPush = scanOnPush; } /** ** Whether or not scan on push is configured for the repository. *
* * @return Whether or not scan on push is configured for the repository. */ public Boolean getScanOnPush() { return this.scanOnPush; } /** ** Whether or not scan on push is configured for the repository. *
* * @param scanOnPush * Whether or not scan on push is configured for the repository. * @return Returns a reference to this object so that method calls can be chained together. */ public RepositoryScanningConfiguration withScanOnPush(Boolean scanOnPush) { setScanOnPush(scanOnPush); return this; } /** ** Whether or not scan on push is configured for the repository. *
* * @return Whether or not scan on push is configured for the repository. */ public Boolean isScanOnPush() { return this.scanOnPush; } /** ** The scan frequency for the repository. *
* * @param scanFrequency * The scan frequency for the repository. * @see ScanFrequency */ public void setScanFrequency(String scanFrequency) { this.scanFrequency = scanFrequency; } /** ** The scan frequency for the repository. *
* * @return The scan frequency for the repository. * @see ScanFrequency */ public String getScanFrequency() { return this.scanFrequency; } /** ** The scan frequency for the repository. *
* * @param scanFrequency * The scan frequency for the repository. * @return Returns a reference to this object so that method calls can be chained together. * @see ScanFrequency */ public RepositoryScanningConfiguration withScanFrequency(String scanFrequency) { setScanFrequency(scanFrequency); return this; } /** ** The scan frequency for the repository. *
* * @param scanFrequency * The scan frequency for the repository. * @return Returns a reference to this object so that method calls can be chained together. * @see ScanFrequency */ public RepositoryScanningConfiguration withScanFrequency(ScanFrequency scanFrequency) { this.scanFrequency = scanFrequency.toString(); return this; } /** ** The scan filters applied to the repository. *
* * @return The scan filters applied to the repository. */ public java.util.List* The scan filters applied to the repository. *
* * @param appliedScanFilters * The scan filters applied to the repository. */ public void setAppliedScanFilters(java.util.Collection* The scan filters applied to the repository. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAppliedScanFilters(java.util.Collection)} or {@link #withAppliedScanFilters(java.util.Collection)} if * you want to override the existing values. *
* * @param appliedScanFilters * The scan filters applied to the repository. * @return Returns a reference to this object so that method calls can be chained together. */ public RepositoryScanningConfiguration withAppliedScanFilters(ScanningRepositoryFilter... appliedScanFilters) { if (this.appliedScanFilters == null) { setAppliedScanFilters(new java.util.ArrayList* The scan filters applied to the repository. *
* * @param appliedScanFilters * The scan filters applied to the repository. * @return Returns a reference to this object so that method calls can be chained together. */ public RepositoryScanningConfiguration withAppliedScanFilters(java.util.Collection