Class StopInstanceRequest

    • Method Detail

      • instanceName

        public final String instanceName()

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

        Returns:
        The name of the instance (a virtual private server) to stop.
      • force

        public final 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.

        Returns:
        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.

      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object