com.google.api.services.ondemandscanning.v1.model.InTotoProvenance Maven / Gradle / Ivy
The newest version!
/*
* 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.ondemandscanning.v1.model;
/**
* Model definition for InTotoProvenance.
*
* 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 On-Demand Scanning 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 InTotoProvenance extends com.google.api.client.json.GenericJson {
/**
* required
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private BuilderConfig builderConfig;
/**
* The collection of artifacts that influenced the build including sources, dependencies, build
* tools, base images, and so on. This is considered to be incomplete unless
* metadata.completeness.materials is true. Unset or null is equivalent to empty.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List materials;
/**
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Metadata metadata;
/**
* Identifies the configuration used for the build. When combined with materials, this SHOULD
* fully describe the build, such that re-running this recipe results in bit-for-bit identical
* output (if the build is reproducible). required
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Recipe recipe;
/**
* required
* @return value or {@code null} for none
*/
public BuilderConfig getBuilderConfig() {
return builderConfig;
}
/**
* required
* @param builderConfig builderConfig or {@code null} for none
*/
public InTotoProvenance setBuilderConfig(BuilderConfig builderConfig) {
this.builderConfig = builderConfig;
return this;
}
/**
* The collection of artifacts that influenced the build including sources, dependencies, build
* tools, base images, and so on. This is considered to be incomplete unless
* metadata.completeness.materials is true. Unset or null is equivalent to empty.
* @return value or {@code null} for none
*/
public java.util.List getMaterials() {
return materials;
}
/**
* The collection of artifacts that influenced the build including sources, dependencies, build
* tools, base images, and so on. This is considered to be incomplete unless
* metadata.completeness.materials is true. Unset or null is equivalent to empty.
* @param materials materials or {@code null} for none
*/
public InTotoProvenance setMaterials(java.util.List materials) {
this.materials = materials;
return this;
}
/**
* @return value or {@code null} for none
*/
public Metadata getMetadata() {
return metadata;
}
/**
* @param metadata metadata or {@code null} for none
*/
public InTotoProvenance setMetadata(Metadata metadata) {
this.metadata = metadata;
return this;
}
/**
* Identifies the configuration used for the build. When combined with materials, this SHOULD
* fully describe the build, such that re-running this recipe results in bit-for-bit identical
* output (if the build is reproducible). required
* @return value or {@code null} for none
*/
public Recipe getRecipe() {
return recipe;
}
/**
* Identifies the configuration used for the build. When combined with materials, this SHOULD
* fully describe the build, such that re-running this recipe results in bit-for-bit identical
* output (if the build is reproducible). required
* @param recipe recipe or {@code null} for none
*/
public InTotoProvenance setRecipe(Recipe recipe) {
this.recipe = recipe;
return this;
}
@Override
public InTotoProvenance set(String fieldName, Object value) {
return (InTotoProvenance) super.set(fieldName, value);
}
@Override
public InTotoProvenance clone() {
return (InTotoProvenance) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy