Class InstanceStateArgs.Builder

  • Enclosing class:
    InstanceStateArgs

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

      • Builder

        public Builder()
    • Method Detail

      • force

        public InstanceStateArgs.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 InstanceStateArgs.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 InstanceStateArgs.Builder instanceId​(com.pulumi.core.Output<java.lang.String> instanceId)
        Parameters:
        instanceId - ID of the instance.
        Returns:
        builder
      • instanceId

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

        public InstanceStateArgs.Builder state​(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 InstanceStateArgs.Builder state​(java.lang.String state)
        Parameters:
        state - State of the instance. Valid values are `stopped`, `running`. The following arguments are optional:
        Returns:
        builder