toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ViewerProtocolPolicy.allowAll:
      return 'allow-all';
    case ViewerProtocolPolicy.httpsOnly:
      return 'https-only';
    case ViewerProtocolPolicy.redirectToHttps:
      return 'redirect-to-https';
  }
}