code: @Override
      public SetInstanceProtectionResult setInstanceProtection(SetInstanceProtectionRequest request) {
          request = beforeClientExecution(request);
          return executeSetInstanceProtection(request);
      }
docs: <p>
  Updates the instance protection settings of the specified instances.
  </p>
  <p>
  For more information about preventing instances that are part of an Auto Scaling group from terminating on scale
  in, see <a
  href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection"
  >Instance Protection</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
  </p>
  
  @param setInstanceProtectionRequest
  @return Result of the SetInstanceProtection operation returned by the service.
  @throws LimitExceededException
  You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, Auto Scaling
  groups, launch configurations, or lifecycle hooks). For more information, see
  <a>DescribeAccountLimits</a>.
  @throws ResourceContentionException
  You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling
  group, instance, or load balancer).
  @sample AmazonAutoScaling.SetInstanceProtection
  @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceProtection"
  target="_top">AWS API Documentation</a>