com.google.api.services.bigqueryreservation.v1.model.Assignment 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.bigqueryreservation.v1.model;
/**
* An assignment allows a project to submit jobs of a certain type using slots from the specified
* reservation.
*
* 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 BigQuery Reservation 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 Assignment extends com.google.api.client.json.GenericJson {
/**
* The resource which will use the reservation. E.g. `projects/myproject`, `folders/123`, or
* `organizations/456`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String assignee;
/**
* Which type of jobs will use the reservation.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String jobType;
/**
* Output only. Name of the resource. E.g.:
* `projects/myproject/locations/US/reservations/team1-prod/assignments/123`. The assignment_id
* must only contain lower case alphanumeric characters or dashes and the max length is 64
* characters.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;
/**
* Output only. State of the assignment.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String state;
/**
* The resource which will use the reservation. E.g. `projects/myproject`, `folders/123`, or
* `organizations/456`.
* @return value or {@code null} for none
*/
public java.lang.String getAssignee() {
return assignee;
}
/**
* The resource which will use the reservation. E.g. `projects/myproject`, `folders/123`, or
* `organizations/456`.
* @param assignee assignee or {@code null} for none
*/
public Assignment setAssignee(java.lang.String assignee) {
this.assignee = assignee;
return this;
}
/**
* Which type of jobs will use the reservation.
* @return value or {@code null} for none
*/
public java.lang.String getJobType() {
return jobType;
}
/**
* Which type of jobs will use the reservation.
* @param jobType jobType or {@code null} for none
*/
public Assignment setJobType(java.lang.String jobType) {
this.jobType = jobType;
return this;
}
/**
* Output only. Name of the resource. E.g.:
* `projects/myproject/locations/US/reservations/team1-prod/assignments/123`. The assignment_id
* must only contain lower case alphanumeric characters or dashes and the max length is 64
* characters.
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}
/**
* Output only. Name of the resource. E.g.:
* `projects/myproject/locations/US/reservations/team1-prod/assignments/123`. The assignment_id
* must only contain lower case alphanumeric characters or dashes and the max length is 64
* characters.
* @param name name or {@code null} for none
*/
public Assignment setName(java.lang.String name) {
this.name = name;
return this;
}
/**
* Output only. State of the assignment.
* @return value or {@code null} for none
*/
public java.lang.String getState() {
return state;
}
/**
* Output only. State of the assignment.
* @param state state or {@code null} for none
*/
public Assignment setState(java.lang.String state) {
this.state = state;
return this;
}
@Override
public Assignment set(String fieldName, Object value) {
return (Assignment) super.set(fieldName, value);
}
@Override
public Assignment clone() {
return (Assignment) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy