Class InstanceStateState.Builder

  • Enclosing class:
    InstanceStateState

    public static final class InstanceStateState.Builder
    extends java.lang.Object
    • Method Detail

      • force

        public InstanceStateState.Builder force​(@Nullable
                                                com.pulumi.core.Output<java.lang.Boolean> force)
        Parameters:
        force - Whether to request a forced stop when `state` is `stopped`. Otherwise (_i.e._, `state` is `running`), ignored. When an instance is forced to stop, it does not flush file system caches or file system metadata, and you must subsequently perform file system check and repair. Not recommended for Windows instances. Defaults to `false`.
        Returns:
        builder
      • force

        public InstanceStateState.Builder force​(java.lang.Boolean force)
        Parameters:
        force - Whether to request a forced stop when `state` is `stopped`. Otherwise (_i.e._, `state` is `running`), ignored. When an instance is forced to stop, it does not flush file system caches or file system metadata, and you must subsequently perform file system check and repair. Not recommended for Windows instances. Defaults to `false`.
        Returns:
        builder
      • instanceId

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

        public InstanceStateState.Builder instanceId​(java.lang.String instanceId)
        Parameters:
        instanceId - ID of the instance.
        Returns:
        builder
      • region

        public InstanceStateState.Builder region​(@Nullable
                                                 com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • region

        public InstanceStateState.Builder region​(java.lang.String region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • state

        public InstanceStateState.Builder state​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> state)
        Parameters:
        state - State of the instance. Valid values are `stopped`, `running`. The following arguments are optional:
        Returns:
        builder
      • state

        public InstanceStateState.Builder state​(java.lang.String state)
        Parameters:
        state - State of the instance. Valid values are `stopped`, `running`. The following arguments are optional:
        Returns:
        builder