def stop(options = {})
      options = Aws::Util.deep_merge(options, instance_ids: [@id])
      resp = @client.stop_instances(options)
      resp.data
    end
def stop(options = {})
      options = Aws::Util.deep_merge(options, instance_ids: [@id])
      resp = @client.stop_instances(options)
      resp.data
    end
@example Request syntax with placeholder values

   instance.stop({
     hibernate: false,
     dry_run: false,
     force: false,
   })
 @param [Hash] options ({})
 @option options [Boolean] :hibernate
   Hibernates the instance if the instance was enabled for hibernation at
   launch. If the instance cannot hibernate successfully, a normal
   shutdown occurs. For more information, see [Hibernate Your
   Instance][1] in the *Amazon Elastic Compute Cloud User Guide*.

   Default: `false`



   [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html
 @option options [Boolean] :dry_run
   Checks whether you have the required permissions for the action,
   without actually making the request, and provides an error response.
   If you have the required permissions, the error response is
   `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
 @option options [Boolean] :force
   Forces the instances to stop. The instances do not have an opportunity
   to flush file system caches or file system metadata. If you use this
   option, you must perform file system check and repair procedures. This
   option is not recommended for Windows instances.

   Default: `false`
 @return [Types::StopInstancesResult]