
com.google.api.services.dataproc.model.GkeNodePoolAcceleratorConfig 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.dataproc.model;
/**
* A GkeNodeConfigAcceleratorConfig represents a Hardware Accelerator request for a node pool.
*
* 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 Dataproc 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 GkeNodePoolAcceleratorConfig extends com.google.api.client.json.GenericJson {
/**
* The number of accelerator cards exposed to an instance.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long acceleratorCount;
/**
* The accelerator type resource namename (see GPUs on Compute Engine).
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String acceleratorType;
/**
* Size of partitions to create on the GPU. Valid values are described in the NVIDIA mig user
* guide (https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String gpuPartitionSize;
/**
* The number of accelerator cards exposed to an instance.
* @return value or {@code null} for none
*/
public java.lang.Long getAcceleratorCount() {
return acceleratorCount;
}
/**
* The number of accelerator cards exposed to an instance.
* @param acceleratorCount acceleratorCount or {@code null} for none
*/
public GkeNodePoolAcceleratorConfig setAcceleratorCount(java.lang.Long acceleratorCount) {
this.acceleratorCount = acceleratorCount;
return this;
}
/**
* The accelerator type resource namename (see GPUs on Compute Engine).
* @return value or {@code null} for none
*/
public java.lang.String getAcceleratorType() {
return acceleratorType;
}
/**
* The accelerator type resource namename (see GPUs on Compute Engine).
* @param acceleratorType acceleratorType or {@code null} for none
*/
public GkeNodePoolAcceleratorConfig setAcceleratorType(java.lang.String acceleratorType) {
this.acceleratorType = acceleratorType;
return this;
}
/**
* Size of partitions to create on the GPU. Valid values are described in the NVIDIA mig user
* guide (https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
* @return value or {@code null} for none
*/
public java.lang.String getGpuPartitionSize() {
return gpuPartitionSize;
}
/**
* Size of partitions to create on the GPU. Valid values are described in the NVIDIA mig user
* guide (https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
* @param gpuPartitionSize gpuPartitionSize or {@code null} for none
*/
public GkeNodePoolAcceleratorConfig setGpuPartitionSize(java.lang.String gpuPartitionSize) {
this.gpuPartitionSize = gpuPartitionSize;
return this;
}
@Override
public GkeNodePoolAcceleratorConfig set(String fieldName, Object value) {
return (GkeNodePoolAcceleratorConfig) super.set(fieldName, value);
}
@Override
public GkeNodePoolAcceleratorConfig clone() {
return (GkeNodePoolAcceleratorConfig) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy