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

target.apidocs.com.google.api.services.compute.model.NodeTemplate.html Maven / Gradle / Ivy

There is a newer version: v1-rev20240903-2.0.0
Show newest version






NodeTemplate (Compute Engine API v1-rev20240919-2.0.0)












com.google.api.services.compute.model

Class NodeTemplate

  • All Implemented Interfaces:
    Cloneable, Map<String,Object>


    public final class NodeTemplate
    extends com.google.api.client.json.GenericJson
    Represent a sole-tenant Node Template resource. You can use a template to define properties for nodes in a node group. For more information, read Creating node groups and instances.

    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.
    • Constructor Detail

      • NodeTemplate

        public NodeTemplate()
    • Method Detail

      • getCpuOvercommitType

        public String getCpuOvercommitType()
        CPU overcommit.
        Returns:
        value or null for none
      • setCpuOvercommitType

        public NodeTemplate setCpuOvercommitType(String cpuOvercommitType)
        CPU overcommit.
        Parameters:
        cpuOvercommitType - cpuOvercommitType or null for none
      • getCreationTimestamp

        public String getCreationTimestamp()
        [Output Only] Creation timestamp in RFC3339 text format.
        Returns:
        value or null for none
      • setCreationTimestamp

        public NodeTemplate setCreationTimestamp(String creationTimestamp)
        [Output Only] Creation timestamp in RFC3339 text format.
        Parameters:
        creationTimestamp - creationTimestamp or null for none
      • getDescription

        public String getDescription()
        An optional description of this resource. Provide this property when you create the resource.
        Returns:
        value or null for none
      • setDescription

        public NodeTemplate setDescription(String description)
        An optional description of this resource. Provide this property when you create the resource.
        Parameters:
        description - description or null for none
      • getDisks

        public List<LocalDisk> getDisks()
        Returns:
        value or null for none
      • getId

        public BigInteger getId()
        [Output Only] The unique identifier for the resource. This identifier is defined by the server.
        Returns:
        value or null for none
      • setId

        public NodeTemplate setId(BigInteger id)
        [Output Only] The unique identifier for the resource. This identifier is defined by the server.
        Parameters:
        id - id or null for none
      • getKind

        public String getKind()
        [Output Only] The type of the resource. Always compute#nodeTemplate for node templates.
        Returns:
        value or null for none
      • setKind

        public NodeTemplate setKind(String kind)
        [Output Only] The type of the resource. Always compute#nodeTemplate for node templates.
        Parameters:
        kind - kind or null for none
      • getName

        public String getName()
        The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
        Returns:
        value or null for none
      • setName

        public NodeTemplate setName(String name)
        The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
        Parameters:
        name - name or null for none
      • getNodeAffinityLabels

        public Map<String,String> getNodeAffinityLabels()
        Labels to use for node affinity, which will be used in instance scheduling.
        Returns:
        value or null for none
      • setNodeAffinityLabels

        public NodeTemplate setNodeAffinityLabels(Map<String,String> nodeAffinityLabels)
        Labels to use for node affinity, which will be used in instance scheduling.
        Parameters:
        nodeAffinityLabels - nodeAffinityLabels or null for none
      • getNodeType

        public String getNodeType()
        The node type to use for nodes group that are created from this template.
        Returns:
        value or null for none
      • setNodeType

        public NodeTemplate setNodeType(String nodeType)
        The node type to use for nodes group that are created from this template.
        Parameters:
        nodeType - nodeType or null for none
      • getNodeTypeFlexibility

        public NodeTemplateNodeTypeFlexibility getNodeTypeFlexibility()
        Do not use. Instead, use the node_type property.
        Returns:
        value or null for none
      • setNodeTypeFlexibility

        public NodeTemplate setNodeTypeFlexibility(NodeTemplateNodeTypeFlexibility nodeTypeFlexibility)
        Do not use. Instead, use the node_type property.
        Parameters:
        nodeTypeFlexibility - nodeTypeFlexibility or null for none
      • getRegion

        public String getRegion()
        [Output Only] The name of the region where the node template resides, such as us-central1.
        Returns:
        value or null for none
      • setRegion

        public NodeTemplate setRegion(String region)
        [Output Only] The name of the region where the node template resides, such as us-central1.
        Parameters:
        region - region or null for none
      • getSelfLink

        public String getSelfLink()
        [Output Only] Server-defined URL for the resource.
        Returns:
        value or null for none
      • setSelfLink

        public NodeTemplate setSelfLink(String selfLink)
        [Output Only] Server-defined URL for the resource.
        Parameters:
        selfLink - selfLink or null for none
      • getServerBinding

        public ServerBinding getServerBinding()
        Sets the binding properties for the physical server. Valid values include: - *[Default]* RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible See Sole-tenant node options for more information.
        Returns:
        value or null for none
      • setServerBinding

        public NodeTemplate setServerBinding(ServerBinding serverBinding)
        Sets the binding properties for the physical server. Valid values include: - *[Default]* RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible See Sole-tenant node options for more information.
        Parameters:
        serverBinding - serverBinding or null for none
      • getStatus

        public String getStatus()
        [Output Only] The status of the node template. One of the following values: CREATING, READY, and DELETING.
        Returns:
        value or null for none
      • setStatus

        public NodeTemplate setStatus(String status)
        [Output Only] The status of the node template. One of the following values: CREATING, READY, and DELETING.
        Parameters:
        status - status or null for none
      • getStatusMessage

        public String getStatusMessage()
        [Output Only] An optional, human-readable explanation of the status.
        Returns:
        value or null for none
      • setStatusMessage

        public NodeTemplate setStatusMessage(String statusMessage)
        [Output Only] An optional, human-readable explanation of the status.
        Parameters:
        statusMessage - statusMessage or null for none
      • set

        public NodeTemplate set(String fieldName,
                                Object value)
        Overrides:
        set in class com.google.api.client.json.GenericJson
      • clone

        public NodeTemplate clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy