Class InstanceState.Builder

  • Enclosing class:
    InstanceState

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

      • Builder

        public Builder()
    • Method Detail

      • apikey

        public InstanceState.Builder apikey​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> apikey)
        Parameters:
        apikey - API key needed to communicate to CloudAMQP's second API. The second API is used to manage alarms, integration and more, full description [CloudAMQP API](https://docs.cloudamqp.com/cloudamqp_api.html).
        Returns:
        builder
      • apikey

        public InstanceState.Builder apikey​(java.lang.String apikey)
        Parameters:
        apikey - API key needed to communicate to CloudAMQP's second API. The second API is used to manage alarms, integration and more, full description [CloudAMQP API](https://docs.cloudamqp.com/cloudamqp_api.html).
        Returns:
        builder
      • backend

        public InstanceState.Builder backend​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> backend)
        Parameters:
        backend - Information if the CloudAMQP instance runs either RabbitMQ or LavinMQ.
        Returns:
        builder
      • backend

        public InstanceState.Builder backend​(java.lang.String backend)
        Parameters:
        backend - Information if the CloudAMQP instance runs either RabbitMQ or LavinMQ.
        Returns:
        builder
      • copySettings

        public InstanceState.Builder copySettings​(@Nullable
                                                  com.pulumi.core.Output<java.util.List<InstanceCopySettingArgs>> copySettings)
        Parameters:
        copySettings - Copy settings from one CloudAMQP instance to a new. Consists of the block documented below. *** The `copy_settings` block consists of:
        Returns:
        builder
      • copySettings

        public InstanceState.Builder copySettings​(java.util.List<InstanceCopySettingArgs> copySettings)
        Parameters:
        copySettings - Copy settings from one CloudAMQP instance to a new. Consists of the block documented below. *** The `copy_settings` block consists of:
        Returns:
        builder
      • copySettings

        public InstanceState.Builder copySettings​(InstanceCopySettingArgs... copySettings)
        Parameters:
        copySettings - Copy settings from one CloudAMQP instance to a new. Consists of the block documented below. *** The `copy_settings` block consists of:
        Returns:
        builder
      • dedicated

        public InstanceState.Builder dedicated​(@Nullable
                                               com.pulumi.core.Output<java.lang.Boolean> dedicated)
        Parameters:
        dedicated - Information if the CloudAMQP instance is shared or dedicated.
        Returns:
        builder
      • dedicated

        public InstanceState.Builder dedicated​(java.lang.Boolean dedicated)
        Parameters:
        dedicated - Information if the CloudAMQP instance is shared or dedicated.
        Returns:
        builder
      • host

        public InstanceState.Builder host​(@Nullable
                                          com.pulumi.core.Output<java.lang.String> host)
        Parameters:
        host - The external hostname for the CloudAMQP instance.
        Returns:
        builder
      • host

        public InstanceState.Builder host​(java.lang.String host)
        Parameters:
        host - The external hostname for the CloudAMQP instance.
        Returns:
        builder
      • hostInternal

        public InstanceState.Builder hostInternal​(@Nullable
                                                  com.pulumi.core.Output<java.lang.String> hostInternal)
        Parameters:
        hostInternal - The internal hostname for the CloudAMQP instance.
        Returns:
        builder
      • hostInternal

        public InstanceState.Builder hostInternal​(java.lang.String hostInternal)
        Parameters:
        hostInternal - The internal hostname for the CloudAMQP instance.
        Returns:
        builder
      • keepAssociatedVpc

        public InstanceState.Builder keepAssociatedVpc​(@Nullable
                                                       com.pulumi.core.Output<java.lang.Boolean> keepAssociatedVpc)
        Parameters:
        keepAssociatedVpc - Keep associated VPC when deleting instance, default set to false.
        Returns:
        builder
      • keepAssociatedVpc

        public InstanceState.Builder keepAssociatedVpc​(java.lang.Boolean keepAssociatedVpc)
        Parameters:
        keepAssociatedVpc - Keep associated VPC when deleting instance, default set to false.
        Returns:
        builder
      • name

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

        public InstanceState.Builder name​(java.lang.String name)
        Parameters:
        name - Name of the CloudAMQP instance.
        Returns:
        builder
      • noDefaultAlarms

        public InstanceState.Builder noDefaultAlarms​(@Nullable
                                                     com.pulumi.core.Output<java.lang.Boolean> noDefaultAlarms)
        Parameters:
        noDefaultAlarms - Set to true to discard creating default alarms when the instance is created. Can be left out, will then use default value = false.
        Returns:
        builder
      • noDefaultAlarms

        public InstanceState.Builder noDefaultAlarms​(java.lang.Boolean noDefaultAlarms)
        Parameters:
        noDefaultAlarms - Set to true to discard creating default alarms when the instance is created. Can be left out, will then use default value = false.
        Returns:
        builder
      • nodes

        public InstanceState.Builder nodes​(@Nullable
                                           com.pulumi.core.Output<java.lang.Integer> nodes)
        Parameters:
        nodes - Number of nodes, 1, 3 or 5 depending on plan used. Only needed for legacy plans, will otherwise be computed. ***Deprecated: Legacy subscriptions plan can still change this to scale up or down the instance. New subscriptions plans use the plan to determine number of nodes. In order to change number of nodes the `plan` needs to be updated.***
        Returns:
        builder
      • nodes

        public InstanceState.Builder nodes​(java.lang.Integer nodes)
        Parameters:
        nodes - Number of nodes, 1, 3 or 5 depending on plan used. Only needed for legacy plans, will otherwise be computed. ***Deprecated: Legacy subscriptions plan can still change this to scale up or down the instance. New subscriptions plans use the plan to determine number of nodes. In order to change number of nodes the `plan` needs to be updated.***
        Returns:
        builder
      • plan

        public InstanceState.Builder plan​(@Nullable
                                          com.pulumi.core.Output<java.lang.String> plan)
        Parameters:
        plan - The subscription plan. See available plans
        Returns:
        builder
      • plan

        public InstanceState.Builder plan​(java.lang.String plan)
        Parameters:
        plan - The subscription plan. See available plans
        Returns:
        builder
      • ready

        public InstanceState.Builder ready​(@Nullable
                                           com.pulumi.core.Output<java.lang.Boolean> ready)
        Parameters:
        ready - Flag describing if the resource is ready
        Returns:
        builder
      • ready

        public InstanceState.Builder ready​(java.lang.Boolean ready)
        Parameters:
        ready - Flag describing if the resource is ready
        Returns:
        builder
      • region

        public InstanceState.Builder region​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - The region to host the instance in. See instance regions ***Note: Changing region will force the instance to be destroyed and a new created in the new region. All data will be lost and a new name assigned.***
        Returns:
        builder
      • region

        public InstanceState.Builder region​(java.lang.String region)
        Parameters:
        region - The region to host the instance in. See instance regions ***Note: Changing region will force the instance to be destroyed and a new created in the new region. All data will be lost and a new name assigned.***
        Returns:
        builder
      • rmqVersion

        public InstanceState.Builder rmqVersion​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> rmqVersion)
        Parameters:
        rmqVersion - The Rabbit MQ version. Can be left out, will then be set to default value used by CloudAMQP API. ***Note: There is not yet any support in the provider to change the RMQ version. Once it's set in the initial creation, it will remain.***
        Returns:
        builder
      • rmqVersion

        public InstanceState.Builder rmqVersion​(java.lang.String rmqVersion)
        Parameters:
        rmqVersion - The Rabbit MQ version. Can be left out, will then be set to default value used by CloudAMQP API. ***Note: There is not yet any support in the provider to change the RMQ version. Once it's set in the initial creation, it will remain.***
        Returns:
        builder
      • tags

        public InstanceState.Builder tags​(@Nullable
                                          com.pulumi.core.Output<java.util.List<java.lang.String>> tags)
        Parameters:
        tags - One or more tags for the CloudAMQP instance, makes it possible to categories multiple instances in console view. Default there is no tags assigned.
        Returns:
        builder
      • tags

        public InstanceState.Builder tags​(java.util.List<java.lang.String> tags)
        Parameters:
        tags - One or more tags for the CloudAMQP instance, makes it possible to categories multiple instances in console view. Default there is no tags assigned.
        Returns:
        builder
      • tags

        public InstanceState.Builder tags​(java.lang.String... tags)
        Parameters:
        tags - One or more tags for the CloudAMQP instance, makes it possible to categories multiple instances in console view. Default there is no tags assigned.
        Returns:
        builder
      • url

        public InstanceState.Builder url​(@Nullable
                                         com.pulumi.core.Output<java.lang.String> url)
        Parameters:
        url - The AMQP URL (uses the internal hostname if the instance was created with VPC). Has the format: `amqps://{username}:{password}@{hostname}/{vhost}`
        Returns:
        builder
      • url

        public InstanceState.Builder url​(java.lang.String url)
        Parameters:
        url - The AMQP URL (uses the internal hostname if the instance was created with VPC). Has the format: `amqps://{username}:{password}@{hostname}/{vhost}`
        Returns:
        builder
      • vhost

        public InstanceState.Builder vhost​(@Nullable
                                           com.pulumi.core.Output<java.lang.String> vhost)
        Parameters:
        vhost - The virtual host used by Rabbit MQ.
        Returns:
        builder
      • vhost

        public InstanceState.Builder vhost​(java.lang.String vhost)
        Parameters:
        vhost - The virtual host used by Rabbit MQ.
        Returns:
        builder
      • vpcId

        public InstanceState.Builder vpcId​(@Nullable
                                           com.pulumi.core.Output<java.lang.Integer> vpcId)
        Parameters:
        vpcId - The VPC ID. Use this to create your instance in an existing VPC. See available example.
        Returns:
        builder
      • vpcId

        public InstanceState.Builder vpcId​(java.lang.Integer vpcId)
        Parameters:
        vpcId - The VPC ID. Use this to create your instance in an existing VPC. See available example.
        Returns:
        builder
      • vpcSubnet

        public InstanceState.Builder vpcSubnet​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> vpcSubnet)
        Parameters:
        vpcSubnet - Creates a dedicated VPC subnet, shouldn't overlap with other VPC subnet, default subnet used 10.56.72.0/24. ***Deprecated: Will be removed in next major version (v2.0)*** ***Note: extra fee will be charged when using VPC, see [CloudAMQP](https://cloudamqp.com) for more information.***
        Returns:
        builder
      • vpcSubnet

        public InstanceState.Builder vpcSubnet​(java.lang.String vpcSubnet)
        Parameters:
        vpcSubnet - Creates a dedicated VPC subnet, shouldn't overlap with other VPC subnet, default subnet used 10.56.72.0/24. ***Deprecated: Will be removed in next major version (v2.0)*** ***Note: extra fee will be charged when using VPC, see [CloudAMQP](https://cloudamqp.com) for more information.***
        Returns:
        builder