discontinuedPackage aws_securityhub_api has been discontinued and replaced by aws_client.

toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ControlStatus.enabled:
      return 'ENABLED';
    case ControlStatus.disabled:
      return 'DISABLED';
  }
}