public final class InstanceTemplate
extends com.google.api.client.json.GenericJson
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
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
InstanceTemplate() |
Modifier and Type | Method and Description |
---|---|
InstanceTemplate |
clone() |
String |
getCreationTimestamp()
[Output Only] The creation timestamp for this instance template in RFC3339 text format.
|
String |
getDescription()
An optional description of this resource.
|
BigInteger |
getId()
[Output Only] A unique identifier for this instance template.
|
String |
getKind()
[Output Only] The resource type, which is always compute#instanceTemplate for instance
templates.
|
String |
getName()
Name of the resource; provided by the client when the resource is created.
|
InstanceProperties |
getProperties()
The instance properties for this instance template.
|
String |
getRegion()
[Output Only] URL of the region where the instance template resides.
|
String |
getSelfLink()
[Output Only] The URL for this instance template.
|
String |
getSourceInstance()
The source instance used to create the template.
|
SourceInstanceParams |
getSourceInstanceParams()
The source instance params to use to create this instance template.
|
InstanceTemplate |
set(String fieldName,
Object value) |
InstanceTemplate |
setCreationTimestamp(String creationTimestamp)
[Output Only] The creation timestamp for this instance template in RFC3339 text format.
|
InstanceTemplate |
setDescription(String description)
An optional description of this resource.
|
InstanceTemplate |
setId(BigInteger id)
[Output Only] A unique identifier for this instance template.
|
InstanceTemplate |
setKind(String kind)
[Output Only] The resource type, which is always compute#instanceTemplate for instance
templates.
|
InstanceTemplate |
setName(String name)
Name of the resource; provided by the client when the resource is created.
|
InstanceTemplate |
setProperties(InstanceProperties properties)
The instance properties for this instance template.
|
InstanceTemplate |
setRegion(String region)
[Output Only] URL of the region where the instance template resides.
|
InstanceTemplate |
setSelfLink(String selfLink)
[Output Only] The URL for this instance template.
|
InstanceTemplate |
setSourceInstance(String sourceInstance)
The source instance used to create the template.
|
InstanceTemplate |
setSourceInstanceParams(SourceInstanceParams sourceInstanceParams)
The source instance params to use to create this instance template.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getCreationTimestamp()
null
for nonepublic InstanceTemplate setCreationTimestamp(String creationTimestamp)
creationTimestamp
- creationTimestamp or null
for nonepublic String getDescription()
null
for nonepublic InstanceTemplate setDescription(String description)
description
- description or null
for nonepublic BigInteger getId()
null
for nonepublic InstanceTemplate setId(BigInteger id)
id
- id or null
for nonepublic String getKind()
null
for nonepublic InstanceTemplate setKind(String kind)
kind
- kind or null
for nonepublic String getName()
null
for nonepublic InstanceTemplate setName(String name)
name
- name or null
for nonepublic InstanceProperties getProperties()
null
for nonepublic InstanceTemplate setProperties(InstanceProperties properties)
properties
- properties or null
for nonepublic String getRegion()
null
for nonepublic InstanceTemplate setRegion(String region)
region
- region or null
for nonepublic String getSelfLink()
null
for nonepublic InstanceTemplate setSelfLink(String selfLink)
selfLink
- selfLink or null
for nonepublic String getSourceInstance()
null
for nonepublic InstanceTemplate setSourceInstance(String sourceInstance)
sourceInstance
- sourceInstance or null
for nonepublic SourceInstanceParams getSourceInstanceParams()
null
for nonepublic InstanceTemplate setSourceInstanceParams(SourceInstanceParams sourceInstanceParams)
sourceInstanceParams
- sourceInstanceParams or null
for nonepublic InstanceTemplate set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public InstanceTemplate clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.