com.google.api.services.cloudbuild.v2.model.CreateRepositoryRequest 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.cloudbuild.v2.model;
/**
* Message for creating a Repository.
*
* 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 Cloud Build 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 CreateRepositoryRequest extends com.google.api.client.json.GenericJson {
/**
* Required. The connection to contain the repository. If the request is part of a
* BatchCreateRepositoriesRequest, this field should be empty or match the parent specified there.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String parent;
/**
* Required. The repository to create.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Repository repository;
/**
* Required. The ID to use for the repository, which will become the final component of the
* repository's resource name. This ID should be unique in the connection. Allows alphanumeric
* characters and any of -._~%!$&'()*+,;=@.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String repositoryId;
/**
* Required. The connection to contain the repository. If the request is part of a
* BatchCreateRepositoriesRequest, this field should be empty or match the parent specified there.
* @return value or {@code null} for none
*/
public java.lang.String getParent() {
return parent;
}
/**
* Required. The connection to contain the repository. If the request is part of a
* BatchCreateRepositoriesRequest, this field should be empty or match the parent specified there.
* @param parent parent or {@code null} for none
*/
public CreateRepositoryRequest setParent(java.lang.String parent) {
this.parent = parent;
return this;
}
/**
* Required. The repository to create.
* @return value or {@code null} for none
*/
public Repository getRepository() {
return repository;
}
/**
* Required. The repository to create.
* @param repository repository or {@code null} for none
*/
public CreateRepositoryRequest setRepository(Repository repository) {
this.repository = repository;
return this;
}
/**
* Required. The ID to use for the repository, which will become the final component of the
* repository's resource name. This ID should be unique in the connection. Allows alphanumeric
* characters and any of -._~%!$&'()*+,;=@.
* @return value or {@code null} for none
*/
public java.lang.String getRepositoryId() {
return repositoryId;
}
/**
* Required. The ID to use for the repository, which will become the final component of the
* repository's resource name. This ID should be unique in the connection. Allows alphanumeric
* characters and any of -._~%!$&'()*+,;=@.
* @param repositoryId repositoryId or {@code null} for none
*/
public CreateRepositoryRequest setRepositoryId(java.lang.String repositoryId) {
this.repositoryId = repositoryId;
return this;
}
@Override
public CreateRepositoryRequest set(String fieldName, Object value) {
return (CreateRepositoryRequest) super.set(fieldName, value);
}
@Override
public CreateRepositoryRequest clone() {
return (CreateRepositoryRequest) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy