
com.google.api.services.compute.model.InstanceGroupManager 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: 2016-05-27 16:00:31 UTC)
* on 2016-07-07 at 07:34:17 UTC
* Modify at your own risk.
*/
package com.google.api.services.compute.model;
/**
* An Instance Group Manager resource.
*
* 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 InstanceGroupManager extends com.google.api.client.json.GenericJson {
/**
* The base instance name to use for instances in this group. The value must be 1-58 characters
* long. Instances are named by appending a hyphen and a random four-character string to the base
* instance name. The base instance name must comply with RFC1035.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String baseInstanceName;
/**
* [Output Only] The creation timestamp for this managed instance group in RFC3339 text format.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String creationTimestamp;
/**
* [Output Only] The list of instance actions and the number of instances in this managed instance
* group that are scheduled for each of those actions.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private InstanceGroupManagerActionsSummary currentActions;
/**
* An optional description of this resource. Provide this property when you create the resource.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String description;
/**
* [Output Only] The fingerprint of the resource data. You can use this optional field for
* optimistic locking when you update the resource.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String fingerprint;
/**
* [Output Only] A unique identifier for this resource type. The server generates this identifier.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.math.BigInteger id;
/**
* [Output Only] The URL of the Instance Group resource.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String instanceGroup;
/**
* The URL of the instance template that is specified for this managed instance group. The group
* uses this template to create all new instances in the managed instance group.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String instanceTemplate;
/**
* [Output Only] The resource type, which is always compute#instanceGroupManager for managed
* instance groups.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String kind;
/**
* The name of the managed instance group. The name must be 1-63 characters long, and comply with
* RFC1035.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;
/**
* Named ports configured for the Instance Groups complementary to this Instance Group Manager.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List namedPorts;
/**
* [Output Only] The URL for this managed instance group. The server defines this URL.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String selfLink;
/**
* The URLs for all TargetPool resources to which instances in the instanceGroup field are added.
* The target pools automatically apply to all of the instances in the managed instance group.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List targetPools;
/**
* The target number of running instances for this managed instance group. Deleting or abandoning
* instances reduces this number. Resizing the group changes this number.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Integer targetSize;
/**
* The name of the zone where the managed instance group is located.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String zone;
/**
* The base instance name to use for instances in this group. The value must be 1-58 characters
* long. Instances are named by appending a hyphen and a random four-character string to the base
* instance name. The base instance name must comply with RFC1035.
* @return value or {@code null} for none
*/
public java.lang.String getBaseInstanceName() {
return baseInstanceName;
}
/**
* The base instance name to use for instances in this group. The value must be 1-58 characters
* long. Instances are named by appending a hyphen and a random four-character string to the base
* instance name. The base instance name must comply with RFC1035.
* @param baseInstanceName baseInstanceName or {@code null} for none
*/
public InstanceGroupManager setBaseInstanceName(java.lang.String baseInstanceName) {
this.baseInstanceName = baseInstanceName;
return this;
}
/**
* [Output Only] The creation timestamp for this managed instance group in RFC3339 text format.
* @return value or {@code null} for none
*/
public java.lang.String getCreationTimestamp() {
return creationTimestamp;
}
/**
* [Output Only] The creation timestamp for this managed instance group in RFC3339 text format.
* @param creationTimestamp creationTimestamp or {@code null} for none
*/
public InstanceGroupManager setCreationTimestamp(java.lang.String creationTimestamp) {
this.creationTimestamp = creationTimestamp;
return this;
}
/**
* [Output Only] The list of instance actions and the number of instances in this managed instance
* group that are scheduled for each of those actions.
* @return value or {@code null} for none
*/
public InstanceGroupManagerActionsSummary getCurrentActions() {
return currentActions;
}
/**
* [Output Only] The list of instance actions and the number of instances in this managed instance
* group that are scheduled for each of those actions.
* @param currentActions currentActions or {@code null} for none
*/
public InstanceGroupManager setCurrentActions(InstanceGroupManagerActionsSummary currentActions) {
this.currentActions = currentActions;
return this;
}
/**
* An optional description of this resource. Provide this property when you create the resource.
* @return value or {@code null} for none
*/
public java.lang.String getDescription() {
return description;
}
/**
* An optional description of this resource. Provide this property when you create the resource.
* @param description description or {@code null} for none
*/
public InstanceGroupManager setDescription(java.lang.String description) {
this.description = description;
return this;
}
/**
* [Output Only] The fingerprint of the resource data. You can use this optional field for
* optimistic locking when you update the resource.
* @see #decodeFingerprint()
* @return value or {@code null} for none
*/
public java.lang.String getFingerprint() {
return fingerprint;
}
/**
* [Output Only] The fingerprint of the resource data. You can use this optional field for
* optimistic locking when you update the resource.
* @see #getFingerprint()
* @return Base64 decoded value or {@code null} for none
*
* @since 1.14
*/
public byte[] decodeFingerprint() {
return com.google.api.client.util.Base64.decodeBase64(fingerprint);
}
/**
* [Output Only] The fingerprint of the resource data. You can use this optional field for
* optimistic locking when you update the resource.
* @see #encodeFingerprint()
* @param fingerprint fingerprint or {@code null} for none
*/
public InstanceGroupManager setFingerprint(java.lang.String fingerprint) {
this.fingerprint = fingerprint;
return this;
}
/**
* [Output Only] The fingerprint of the resource data. You can use this optional field for
* optimistic locking when you update the resource.
* @see #setFingerprint()
*
*
* The value is encoded Base64 or {@code null} for none.
*
*
* @since 1.14
*/
public InstanceGroupManager encodeFingerprint(byte[] fingerprint) {
this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint);
return this;
}
/**
* [Output Only] A unique identifier for this resource type. The server generates this identifier.
* @return value or {@code null} for none
*/
public java.math.BigInteger getId() {
return id;
}
/**
* [Output Only] A unique identifier for this resource type. The server generates this identifier.
* @param id id or {@code null} for none
*/
public InstanceGroupManager setId(java.math.BigInteger id) {
this.id = id;
return this;
}
/**
* [Output Only] The URL of the Instance Group resource.
* @return value or {@code null} for none
*/
public java.lang.String getInstanceGroup() {
return instanceGroup;
}
/**
* [Output Only] The URL of the Instance Group resource.
* @param instanceGroup instanceGroup or {@code null} for none
*/
public InstanceGroupManager setInstanceGroup(java.lang.String instanceGroup) {
this.instanceGroup = instanceGroup;
return this;
}
/**
* The URL of the instance template that is specified for this managed instance group. The group
* uses this template to create all new instances in the managed instance group.
* @return value or {@code null} for none
*/
public java.lang.String getInstanceTemplate() {
return instanceTemplate;
}
/**
* The URL of the instance template that is specified for this managed instance group. The group
* uses this template to create all new instances in the managed instance group.
* @param instanceTemplate instanceTemplate or {@code null} for none
*/
public InstanceGroupManager setInstanceTemplate(java.lang.String instanceTemplate) {
this.instanceTemplate = instanceTemplate;
return this;
}
/**
* [Output Only] The resource type, which is always compute#instanceGroupManager for managed
* instance groups.
* @return value or {@code null} for none
*/
public java.lang.String getKind() {
return kind;
}
/**
* [Output Only] The resource type, which is always compute#instanceGroupManager for managed
* instance groups.
* @param kind kind or {@code null} for none
*/
public InstanceGroupManager setKind(java.lang.String kind) {
this.kind = kind;
return this;
}
/**
* The name of the managed instance group. The name must be 1-63 characters long, and comply with
* RFC1035.
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}
/**
* The name of the managed instance group. The name must be 1-63 characters long, and comply with
* RFC1035.
* @param name name or {@code null} for none
*/
public InstanceGroupManager setName(java.lang.String name) {
this.name = name;
return this;
}
/**
* Named ports configured for the Instance Groups complementary to this Instance Group Manager.
* @return value or {@code null} for none
*/
public java.util.List getNamedPorts() {
return namedPorts;
}
/**
* Named ports configured for the Instance Groups complementary to this Instance Group Manager.
* @param namedPorts namedPorts or {@code null} for none
*/
public InstanceGroupManager setNamedPorts(java.util.List namedPorts) {
this.namedPorts = namedPorts;
return this;
}
/**
* [Output Only] The URL for this managed instance group. The server defines this URL.
* @return value or {@code null} for none
*/
public java.lang.String getSelfLink() {
return selfLink;
}
/**
* [Output Only] The URL for this managed instance group. The server defines this URL.
* @param selfLink selfLink or {@code null} for none
*/
public InstanceGroupManager setSelfLink(java.lang.String selfLink) {
this.selfLink = selfLink;
return this;
}
/**
* The URLs for all TargetPool resources to which instances in the instanceGroup field are added.
* The target pools automatically apply to all of the instances in the managed instance group.
* @return value or {@code null} for none
*/
public java.util.List getTargetPools() {
return targetPools;
}
/**
* The URLs for all TargetPool resources to which instances in the instanceGroup field are added.
* The target pools automatically apply to all of the instances in the managed instance group.
* @param targetPools targetPools or {@code null} for none
*/
public InstanceGroupManager setTargetPools(java.util.List targetPools) {
this.targetPools = targetPools;
return this;
}
/**
* The target number of running instances for this managed instance group. Deleting or abandoning
* instances reduces this number. Resizing the group changes this number.
* @return value or {@code null} for none
*/
public java.lang.Integer getTargetSize() {
return targetSize;
}
/**
* The target number of running instances for this managed instance group. Deleting or abandoning
* instances reduces this number. Resizing the group changes this number.
* @param targetSize targetSize or {@code null} for none
*/
public InstanceGroupManager setTargetSize(java.lang.Integer targetSize) {
this.targetSize = targetSize;
return this;
}
/**
* The name of the zone where the managed instance group is located.
* @return value or {@code null} for none
*/
public java.lang.String getZone() {
return zone;
}
/**
* The name of the zone where the managed instance group is located.
* @param zone zone or {@code null} for none
*/
public InstanceGroupManager setZone(java.lang.String zone) {
this.zone = zone;
return this;
}
@Override
public InstanceGroupManager set(String fieldName, Object value) {
return (InstanceGroupManager) super.set(fieldName, value);
}
@Override
public InstanceGroupManager clone() {
return (InstanceGroupManager) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy