Interface StopInstanceRequest.Builder

    • Method Detail

      • instanceName

        StopInstanceRequest.Builder instanceName​(String instanceName)

        The name of the instance (a virtual private server) to stop.

        Parameters:
        instanceName - The name of the instance (a virtual private server) to stop.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • force

        StopInstanceRequest.Builder force​(Boolean force)

        When set to True, forces a Lightsail instance that is stuck in a stopping state to stop.

        Only use the force parameter if your instance is stuck in the stopping state. In any other state, your instance should stop normally without adding this parameter to your API request.

        Parameters:
        force - When set to True, forces a Lightsail instance that is stuck in a stopping state to stop.

        Only use the force parameter if your instance is stuck in the stopping state. In any other state, your instance should stop normally without adding this parameter to your API request.

        Returns:
        Returns a reference to this object so that method calls can be chained together.