Class InstanceState.Builder

  • Enclosing class:
    InstanceState

    public static final class InstanceState.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • annotations

        public InstanceState.Builder annotations​(@Nullable
                                                 com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> annotations)
        Parameters:
        annotations - Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels.
        Returns:
        builder
      • annotations

        public InstanceState.Builder annotations​(java.util.Map<java.lang.String,​java.lang.String> annotations)
        Parameters:
        annotations - Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels.
        Returns:
        builder
      • availabilityType

        public InstanceState.Builder availabilityType​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> availabilityType)
        Parameters:
        availabilityType - 'Availability type of an Instance. Defaults to REGIONAL for both primary and read instances. Note that primary and read instances can have different availability types. Only READ_POOL instance supports ZONAL type. Users can't specify the zone for READ_POOL instance. Zone is automatically chosen from the list of zones in the region specified. Read pool of size 1 can only have zonal availability. Read pools with node count of 2 or more can have regional availability (nodes are present in 2 or more zones in a region).' Possible values are: `AVAILABILITY_TYPE_UNSPECIFIED`, `ZONAL`, `REGIONAL`.
        Returns:
        builder
      • availabilityType

        public InstanceState.Builder availabilityType​(java.lang.String availabilityType)
        Parameters:
        availabilityType - 'Availability type of an Instance. Defaults to REGIONAL for both primary and read instances. Note that primary and read instances can have different availability types. Only READ_POOL instance supports ZONAL type. Users can't specify the zone for READ_POOL instance. Zone is automatically chosen from the list of zones in the region specified. Read pool of size 1 can only have zonal availability. Read pools with node count of 2 or more can have regional availability (nodes are present in 2 or more zones in a region).' Possible values are: `AVAILABILITY_TYPE_UNSPECIFIED`, `ZONAL`, `REGIONAL`.
        Returns:
        builder
      • cluster

        public InstanceState.Builder cluster​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> cluster)
        Parameters:
        cluster - Identifies the alloydb cluster. Must be in the format 'projects/{project}/locations/{location}/clusters/{cluster_id}'
        Returns:
        builder
      • cluster

        public InstanceState.Builder cluster​(java.lang.String cluster)
        Parameters:
        cluster - Identifies the alloydb cluster. Must be in the format 'projects/{project}/locations/{location}/clusters/{cluster_id}'
        Returns:
        builder
      • createTime

        public InstanceState.Builder createTime​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> createTime)
        Parameters:
        createTime - Time the Instance was created in UTC.
        Returns:
        builder
      • createTime

        public InstanceState.Builder createTime​(java.lang.String createTime)
        Parameters:
        createTime - Time the Instance was created in UTC.
        Returns:
        builder
      • databaseFlags

        public InstanceState.Builder databaseFlags​(@Nullable
                                                   com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> databaseFlags)
        Parameters:
        databaseFlags - Database flags. Set at instance level. * They are copied from primary instance on read instance creation. * Read instances can set new or override existing flags that are relevant for reads, e.g. for enabling columnar cache on a read instance. Flags set on read instance may or may not be present on primary.
        Returns:
        builder
      • databaseFlags

        public InstanceState.Builder databaseFlags​(java.util.Map<java.lang.String,​java.lang.String> databaseFlags)
        Parameters:
        databaseFlags - Database flags. Set at instance level. * They are copied from primary instance on read instance creation. * Read instances can set new or override existing flags that are relevant for reads, e.g. for enabling columnar cache on a read instance. Flags set on read instance may or may not be present on primary.
        Returns:
        builder
      • displayName

        public InstanceState.Builder displayName​(@Nullable
                                                 com.pulumi.core.Output<java.lang.String> displayName)
        Parameters:
        displayName - User-settable and human-readable display name for the Instance.
        Returns:
        builder
      • displayName

        public InstanceState.Builder displayName​(java.lang.String displayName)
        Parameters:
        displayName - User-settable and human-readable display name for the Instance.
        Returns:
        builder
      • gceZone

        public InstanceState.Builder gceZone​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> gceZone)
        Parameters:
        gceZone - The Compute Engine zone that the instance should serve from, per https://cloud.google.com/compute/docs/regions-zones This can ONLY be specified for ZONAL instances. If present for a REGIONAL instance, an error will be thrown. If this is absent for a ZONAL instance, instance is created in a random zone with available capacity.
        Returns:
        builder
      • gceZone

        public InstanceState.Builder gceZone​(java.lang.String gceZone)
        Parameters:
        gceZone - The Compute Engine zone that the instance should serve from, per https://cloud.google.com/compute/docs/regions-zones This can ONLY be specified for ZONAL instances. If present for a REGIONAL instance, an error will be thrown. If this is absent for a ZONAL instance, instance is created in a random zone with available capacity.
        Returns:
        builder
      • instanceId

        public InstanceState.Builder instanceId​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> instanceId)
        Parameters:
        instanceId - The ID of the alloydb instance. ***
        Returns:
        builder
      • instanceId

        public InstanceState.Builder instanceId​(java.lang.String instanceId)
        Parameters:
        instanceId - The ID of the alloydb instance. ***
        Returns:
        builder
      • instanceType

        public InstanceState.Builder instanceType​(@Nullable
                                                  com.pulumi.core.Output<java.lang.String> instanceType)
        Parameters:
        instanceType - The type of the instance. If the instance type is READ_POOL, provide the associated PRIMARY instance in the `depends_on` meta-data attribute. Possible values are: `PRIMARY`, `READ_POOL`.
        Returns:
        builder
      • instanceType

        public InstanceState.Builder instanceType​(java.lang.String instanceType)
        Parameters:
        instanceType - The type of the instance. If the instance type is READ_POOL, provide the associated PRIMARY instance in the `depends_on` meta-data attribute. Possible values are: `PRIMARY`, `READ_POOL`.
        Returns:
        builder
      • ipAddress

        public InstanceState.Builder ipAddress​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> ipAddress)
        Parameters:
        ipAddress - The IP address for the Instance. This is the connection endpoint for an end-user application.
        Returns:
        builder
      • ipAddress

        public InstanceState.Builder ipAddress​(java.lang.String ipAddress)
        Parameters:
        ipAddress - The IP address for the Instance. This is the connection endpoint for an end-user application.
        Returns:
        builder
      • labels

        public InstanceState.Builder labels​(@Nullable
                                            com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> labels)
        Parameters:
        labels - User-defined labels for the alloydb instance.
        Returns:
        builder
      • labels

        public InstanceState.Builder labels​(java.util.Map<java.lang.String,​java.lang.String> labels)
        Parameters:
        labels - User-defined labels for the alloydb instance.
        Returns:
        builder
      • machineConfig

        public InstanceState.Builder machineConfig​(@Nullable
                                                   com.pulumi.core.Output<InstanceMachineConfigArgs> machineConfig)
        Parameters:
        machineConfig - Configurations for the machines that host the underlying database engine. Structure is documented below.
        Returns:
        builder
      • machineConfig

        public InstanceState.Builder machineConfig​(InstanceMachineConfigArgs machineConfig)
        Parameters:
        machineConfig - Configurations for the machines that host the underlying database engine. Structure is documented below.
        Returns:
        builder
      • name

        public InstanceState.Builder name​(@Nullable
                                          com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - The name of the instance resource.
        Returns:
        builder
      • name

        public InstanceState.Builder name​(java.lang.String name)
        Parameters:
        name - The name of the instance resource.
        Returns:
        builder
      • readPoolConfig

        public InstanceState.Builder readPoolConfig​(@Nullable
                                                    com.pulumi.core.Output<InstanceReadPoolConfigArgs> readPoolConfig)
        Parameters:
        readPoolConfig - Read pool specific config. If the instance type is READ_POOL, this configuration must be provided. Structure is documented below.
        Returns:
        builder
      • readPoolConfig

        public InstanceState.Builder readPoolConfig​(InstanceReadPoolConfigArgs readPoolConfig)
        Parameters:
        readPoolConfig - Read pool specific config. If the instance type is READ_POOL, this configuration must be provided. Structure is documented below.
        Returns:
        builder
      • reconciling

        public InstanceState.Builder reconciling​(@Nullable
                                                 com.pulumi.core.Output<java.lang.Boolean> reconciling)
        Parameters:
        reconciling - Set to true if the current state of Instance does not match the user's intended state, and the service is actively updating the resource to reconcile them. This can happen due to user-triggered updates or system actions like failover or maintenance.
        Returns:
        builder
      • reconciling

        public InstanceState.Builder reconciling​(java.lang.Boolean reconciling)
        Parameters:
        reconciling - Set to true if the current state of Instance does not match the user's intended state, and the service is actively updating the resource to reconcile them. This can happen due to user-triggered updates or system actions like failover or maintenance.
        Returns:
        builder
      • state

        public InstanceState.Builder state​(@Nullable
                                           com.pulumi.core.Output<java.lang.String> state)
        Parameters:
        state - The current state of the alloydb instance.
        Returns:
        builder
      • state

        public InstanceState.Builder state​(java.lang.String state)
        Parameters:
        state - The current state of the alloydb instance.
        Returns:
        builder
      • uid

        public InstanceState.Builder uid​(@Nullable
                                         com.pulumi.core.Output<java.lang.String> uid)
        Parameters:
        uid - The system-generated UID of the resource.
        Returns:
        builder
      • uid

        public InstanceState.Builder uid​(java.lang.String uid)
        Parameters:
        uid - The system-generated UID of the resource.
        Returns:
        builder
      • updateTime

        public InstanceState.Builder updateTime​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> updateTime)
        Parameters:
        updateTime - Time the Instance was updated in UTC.
        Returns:
        builder
      • updateTime

        public InstanceState.Builder updateTime​(java.lang.String updateTime)
        Parameters:
        updateTime - Time the Instance was updated in UTC.
        Returns:
        builder