001/* 002 * Copyright 2024 Vonage 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package com.vonage.client.voice; 017 018import com.fasterxml.jackson.annotation.JsonProperty; 019import com.vonage.client.JsonableBaseObject; 020 021/** 022 * Represents a VBC call type. 023 * 024 * @since 7.3.0 025 */ 026public class VbcEndpoint extends JsonableBaseObject implements Endpoint { 027 private String extension; 028 029 protected VbcEndpoint() { 030 } 031 032 public VbcEndpoint(String extension) { 033 this.extension = extension; 034 } 035 036 /** 037 * The extension to call. 038 * 039 * @return The VBC extension, or {@code null} if unset. 040 */ 041 @JsonProperty("extension") 042 public String getExtension() { 043 return extension; 044 } 045 046 @Override 047 public String toLog() { 048 return extension; 049 } 050 051 @JsonProperty("type") 052 @Override 053 public String getType() { 054 return EndpointType.VBC.toString(); 055 } 056}