
com.google.api.services.compute.model.BulkInsertInstanceResource 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.compute.model;
/**
* Model definition for BulkInsertInstanceResource.
*
* 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 Compute Engine 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 BulkInsertInstanceResource extends com.google.api.client.json.GenericJson {
/**
* The maximum number of instances to create.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long count;
/**
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Instance instance;
/**
* The minimum number of instances to create. If no min_count is specified then count is used as
* the default value. If min_count instances cannot be created, then no instances will be created.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long minCount;
/**
* List of predefined names. The number of names provided must be equal to count.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List predefinedNames;
/**
* Specifies the instance template from which to create the instance. This field is optional. This
* field is optional. It can be a full or partial URL. For example, the following are all valid
* URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project/global/i
* nstanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate
* - global/instanceTemplates/instanceTemplate
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String sourceInstanceTemplate;
/**
* The maximum number of instances to create.
* @return value or {@code null} for none
*/
public java.lang.Long getCount() {
return count;
}
/**
* The maximum number of instances to create.
* @param count count or {@code null} for none
*/
public BulkInsertInstanceResource setCount(java.lang.Long count) {
this.count = count;
return this;
}
/**
* @return value or {@code null} for none
*/
public Instance getInstance() {
return instance;
}
/**
* @param instance instance or {@code null} for none
*/
public BulkInsertInstanceResource setInstance(Instance instance) {
this.instance = instance;
return this;
}
/**
* The minimum number of instances to create. If no min_count is specified then count is used as
* the default value. If min_count instances cannot be created, then no instances will be created.
* @return value or {@code null} for none
*/
public java.lang.Long getMinCount() {
return minCount;
}
/**
* The minimum number of instances to create. If no min_count is specified then count is used as
* the default value. If min_count instances cannot be created, then no instances will be created.
* @param minCount minCount or {@code null} for none
*/
public BulkInsertInstanceResource setMinCount(java.lang.Long minCount) {
this.minCount = minCount;
return this;
}
/**
* List of predefined names. The number of names provided must be equal to count.
* @return value or {@code null} for none
*/
public java.util.List getPredefinedNames() {
return predefinedNames;
}
/**
* List of predefined names. The number of names provided must be equal to count.
* @param predefinedNames predefinedNames or {@code null} for none
*/
public BulkInsertInstanceResource setPredefinedNames(java.util.List predefinedNames) {
this.predefinedNames = predefinedNames;
return this;
}
/**
* Specifies the instance template from which to create the instance. This field is optional. This
* field is optional. It can be a full or partial URL. For example, the following are all valid
* URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project/global/i
* nstanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate
* - global/instanceTemplates/instanceTemplate
* @return value or {@code null} for none
*/
public java.lang.String getSourceInstanceTemplate() {
return sourceInstanceTemplate;
}
/**
* Specifies the instance template from which to create the instance. This field is optional. This
* field is optional. It can be a full or partial URL. For example, the following are all valid
* URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project/global/i
* nstanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate
* - global/instanceTemplates/instanceTemplate
* @param sourceInstanceTemplate sourceInstanceTemplate or {@code null} for none
*/
public BulkInsertInstanceResource setSourceInstanceTemplate(java.lang.String sourceInstanceTemplate) {
this.sourceInstanceTemplate = sourceInstanceTemplate;
return this;
}
@Override
public BulkInsertInstanceResource set(String fieldName, Object value) {
return (BulkInsertInstanceResource) super.set(fieldName, value);
}
@Override
public BulkInsertInstanceResource clone() {
return (BulkInsertInstanceResource) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy