com.google.api.services.artifactregistry.v1.model.VulnerabilityScanningConfig Maven / Gradle / Ivy
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* 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.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.artifactregistry.v1.model;
/**
* Config on whether to perform vulnerability scanning for resources in this repository, as well as
* output fields describing current state.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Artifact Registry API. For a detailed explanation
* see:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class VulnerabilityScanningConfig extends com.google.api.client.json.GenericJson {
/**
* Optional. Config for whether this repository has vulnerability scanning disabled.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String enablementConfig;
/**
* Output only. State of feature enablement, combining repository enablement config and API
* enablement state.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String enablementState;
/**
* Output only. Reason for the repository state.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String enablementStateReason;
/**
* Output only. The last time this repository config was enabled.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String lastEnableTime;
/**
* Optional. Config for whether this repository has vulnerability scanning disabled.
* @return value or {@code null} for none
*/
public java.lang.String getEnablementConfig() {
return enablementConfig;
}
/**
* Optional. Config for whether this repository has vulnerability scanning disabled.
* @param enablementConfig enablementConfig or {@code null} for none
*/
public VulnerabilityScanningConfig setEnablementConfig(java.lang.String enablementConfig) {
this.enablementConfig = enablementConfig;
return this;
}
/**
* Output only. State of feature enablement, combining repository enablement config and API
* enablement state.
* @return value or {@code null} for none
*/
public java.lang.String getEnablementState() {
return enablementState;
}
/**
* Output only. State of feature enablement, combining repository enablement config and API
* enablement state.
* @param enablementState enablementState or {@code null} for none
*/
public VulnerabilityScanningConfig setEnablementState(java.lang.String enablementState) {
this.enablementState = enablementState;
return this;
}
/**
* Output only. Reason for the repository state.
* @return value or {@code null} for none
*/
public java.lang.String getEnablementStateReason() {
return enablementStateReason;
}
/**
* Output only. Reason for the repository state.
* @param enablementStateReason enablementStateReason or {@code null} for none
*/
public VulnerabilityScanningConfig setEnablementStateReason(java.lang.String enablementStateReason) {
this.enablementStateReason = enablementStateReason;
return this;
}
/**
* Output only. The last time this repository config was enabled.
* @return value or {@code null} for none
*/
public String getLastEnableTime() {
return lastEnableTime;
}
/**
* Output only. The last time this repository config was enabled.
* @param lastEnableTime lastEnableTime or {@code null} for none
*/
public VulnerabilityScanningConfig setLastEnableTime(String lastEnableTime) {
this.lastEnableTime = lastEnableTime;
return this;
}
@Override
public VulnerabilityScanningConfig set(String fieldName, Object value) {
return (VulnerabilityScanningConfig) super.set(fieldName, value);
}
@Override
public VulnerabilityScanningConfig clone() {
return (VulnerabilityScanningConfig) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy