toEndpointType method

EndpointType toEndpointType()

Implementation

EndpointType toEndpointType() {
  switch (this) {
    case 'PUBLIC':
      return EndpointType.public;
    case 'VPC':
      return EndpointType.vpc;
    case 'VPC_ENDPOINT':
      return EndpointType.vpcEndpoint;
  }
  throw Exception('$this is not known in enum EndpointType');
}