All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.compute.model.AttachedDiskInitializeParams Maven / Gradle / Ivy

/*
 * Copyright 2010 Google Inc.
 *
 * 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://code.google.com/p/google-apis-client-generator/
 * (build: 2014-07-22 21:53:01 UTC)
 * on 2014-08-27 at 22:57:54 UTC 
 * Modify at your own risk.
 */

package com.google.api.services.compute.model;

/**
 * Initialization parameters for the new disk (input-only). Can only be specified on the boot disk
 * or local SSDs. Mutually exclusive with 'source'.
 *
 * 

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: * http://code.google.com/p/google-http-java-client/wiki/JSON *

* * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class AttachedDiskInitializeParams extends com.google.api.client.json.GenericJson { /** * Name of the disk (when not provided defaults to the name of the instance). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String diskName; /** * Size of the disk in base-2 GB. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long diskSizeGb; /** * URL of the disk type resource describing which disk type to use to create the disk; provided by * the client when the disk is created. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String diskType; /** * The source image used to create this disk. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String sourceImage; /** * Name of the disk (when not provided defaults to the name of the instance). * @return value or {@code null} for none */ public java.lang.String getDiskName() { return diskName; } /** * Name of the disk (when not provided defaults to the name of the instance). * @param diskName diskName or {@code null} for none */ public AttachedDiskInitializeParams setDiskName(java.lang.String diskName) { this.diskName = diskName; return this; } /** * Size of the disk in base-2 GB. * @return value or {@code null} for none */ public java.lang.Long getDiskSizeGb() { return diskSizeGb; } /** * Size of the disk in base-2 GB. * @param diskSizeGb diskSizeGb or {@code null} for none */ public AttachedDiskInitializeParams setDiskSizeGb(java.lang.Long diskSizeGb) { this.diskSizeGb = diskSizeGb; return this; } /** * URL of the disk type resource describing which disk type to use to create the disk; provided by * the client when the disk is created. * @return value or {@code null} for none */ public java.lang.String getDiskType() { return diskType; } /** * URL of the disk type resource describing which disk type to use to create the disk; provided by * the client when the disk is created. * @param diskType diskType or {@code null} for none */ public AttachedDiskInitializeParams setDiskType(java.lang.String diskType) { this.diskType = diskType; return this; } /** * The source image used to create this disk. * @return value or {@code null} for none */ public java.lang.String getSourceImage() { return sourceImage; } /** * The source image used to create this disk. * @param sourceImage sourceImage or {@code null} for none */ public AttachedDiskInitializeParams setSourceImage(java.lang.String sourceImage) { this.sourceImage = sourceImage; return this; } @Override public AttachedDiskInitializeParams set(String fieldName, Object value) { return (AttachedDiskInitializeParams) super.set(fieldName, value); } @Override public AttachedDiskInitializeParams clone() { return (AttachedDiskInitializeParams) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy