/** * <p> * An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The * automatic scaling policy defines how an instance group dynamically adds and terminates EC2 instances in response * to the value of a CloudWatch metric. See PutAutoScalingPolicy. * </p> * * @param autoScalingPolicy * An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The * automatic scaling policy defines how an instance group dynamically adds and terminates EC2 instances in * response to the value of a CloudWatch metric. See PutAutoScalingPolicy. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceGroup withAutoScalingPolicy(AutoScalingPolicyDescription autoScalingPolicy) { setAutoScalingPolicy(autoScalingPolicy); return this; }
instanceGroup.setAutoScalingPolicy(AutoScalingPolicyDescriptionJsonUnmarshaller.getInstance().unmarshall(context));
/** * <p> * An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The * automatic scaling policy defines how an instance group dynamically adds and terminates EC2 instances in response * to the value of a CloudWatch metric. See PutAutoScalingPolicy. * </p> * * @param autoScalingPolicy * An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The * automatic scaling policy defines how an instance group dynamically adds and terminates EC2 instances in * response to the value of a CloudWatch metric. See PutAutoScalingPolicy. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceGroup withAutoScalingPolicy(AutoScalingPolicyDescription autoScalingPolicy) { setAutoScalingPolicy(autoScalingPolicy); return this; }
instanceGroup.setAutoScalingPolicy(AutoScalingPolicyDescriptionJsonUnmarshaller.getInstance().unmarshall(context));