toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case AutoScalingPolicyState.pending:
      return 'PENDING';
    case AutoScalingPolicyState.attaching:
      return 'ATTACHING';
    case AutoScalingPolicyState.attached:
      return 'ATTACHED';
    case AutoScalingPolicyState.detaching:
      return 'DETACHING';
    case AutoScalingPolicyState.detached:
      return 'DETACHED';
    case AutoScalingPolicyState.failed:
      return 'FAILED';
  }
}