toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case EndpointType.public:
      return 'PUBLIC';
    case EndpointType.vpc:
      return 'VPC';
    case EndpointType.vpcEndpoint:
      return 'VPC_ENDPOINT';
  }
}