com.google.api.services.containeranalysis.v1.model.ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact 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.containeranalysis.v1.model;
/**
* A Maven artifact to upload to Artifact Registry upon successful completion of all build steps.
*
* 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 Container Analysis 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 ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact extends com.google.api.client.json.GenericJson {
/**
* Maven `artifactId` value used when uploading the artifact to Artifact Registry.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String artifactId;
/**
* Maven `groupId` value used when uploading the artifact to Artifact Registry.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String groupId;
/**
* Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be
* either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative
* path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String path;
/**
* Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY"
* Artifact in the workspace specified by path will be uploaded to Artifact Registry with this
* location as a prefix.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String repository;
/**
* Maven `version` value used when uploading the artifact to Artifact Registry.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String version;
/**
* Maven `artifactId` value used when uploading the artifact to Artifact Registry.
* @return value or {@code null} for none
*/
public java.lang.String getArtifactId() {
return artifactId;
}
/**
* Maven `artifactId` value used when uploading the artifact to Artifact Registry.
* @param artifactId artifactId or {@code null} for none
*/
public ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact setArtifactId(java.lang.String artifactId) {
this.artifactId = artifactId;
return this;
}
/**
* Maven `groupId` value used when uploading the artifact to Artifact Registry.
* @return value or {@code null} for none
*/
public java.lang.String getGroupId() {
return groupId;
}
/**
* Maven `groupId` value used when uploading the artifact to Artifact Registry.
* @param groupId groupId or {@code null} for none
*/
public ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact setGroupId(java.lang.String groupId) {
this.groupId = groupId;
return this;
}
/**
* Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be
* either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative
* path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
* @return value or {@code null} for none
*/
public java.lang.String getPath() {
return path;
}
/**
* Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be
* either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative
* path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
* @param path path or {@code null} for none
*/
public ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact setPath(java.lang.String path) {
this.path = path;
return this;
}
/**
* Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY"
* Artifact in the workspace specified by path will be uploaded to Artifact Registry with this
* location as a prefix.
* @return value or {@code null} for none
*/
public java.lang.String getRepository() {
return repository;
}
/**
* Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY"
* Artifact in the workspace specified by path will be uploaded to Artifact Registry with this
* location as a prefix.
* @param repository repository or {@code null} for none
*/
public ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact setRepository(java.lang.String repository) {
this.repository = repository;
return this;
}
/**
* Maven `version` value used when uploading the artifact to Artifact Registry.
* @return value or {@code null} for none
*/
public java.lang.String getVersion() {
return version;
}
/**
* Maven `version` value used when uploading the artifact to Artifact Registry.
* @param version version or {@code null} for none
*/
public ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact setVersion(java.lang.String version) {
this.version = version;
return this;
}
@Override
public ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact set(String fieldName, Object value) {
return (ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact) super.set(fieldName, value);
}
@Override
public ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact clone() {
return (ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact) super.clone();
}
}