Class EndpointBase
- java.lang.Object
-
- com.azure.resourcemanager.videoanalyzer.models.EndpointBase
-
- Direct Known Subclasses:
TlsEndpoint
,UnsecuredEndpoint
public class EndpointBase extends Object
Base class for endpoints.
-
-
Constructor Summary
Constructors Constructor Description EndpointBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CredentialsBase
credentials()
Get the credentials property: Credentials to be presented to the endpoint.TunnelBase
tunnel()
Get the tunnel property: Describes the tunnel through which Video Analyzer can connect to the endpoint URL.String
url()
Get the url property: The endpoint URL for Video Analyzer to connect to.void
validate()
Validates the instance.EndpointBase
withCredentials(CredentialsBase credentials)
Set the credentials property: Credentials to be presented to the endpoint.EndpointBase
withTunnel(TunnelBase tunnel)
Set the tunnel property: Describes the tunnel through which Video Analyzer can connect to the endpoint URL.EndpointBase
withUrl(String url)
Set the url property: The endpoint URL for Video Analyzer to connect to.
-
-
-
Method Detail
-
credentials
public CredentialsBase credentials()
Get the credentials property: Credentials to be presented to the endpoint.- Returns:
- the credentials value.
-
withCredentials
public EndpointBase withCredentials(CredentialsBase credentials)
Set the credentials property: Credentials to be presented to the endpoint.- Parameters:
credentials
- the credentials value to set.- Returns:
- the EndpointBase object itself.
-
url
public String url()
Get the url property: The endpoint URL for Video Analyzer to connect to.- Returns:
- the url value.
-
withUrl
public EndpointBase withUrl(String url)
Set the url property: The endpoint URL for Video Analyzer to connect to.- Parameters:
url
- the url value to set.- Returns:
- the EndpointBase object itself.
-
tunnel
public TunnelBase tunnel()
Get the tunnel property: Describes the tunnel through which Video Analyzer can connect to the endpoint URL. This is an optional property, typically used when the endpoint is behind a firewall.- Returns:
- the tunnel value.
-
withTunnel
public EndpointBase withTunnel(TunnelBase tunnel)
Set the tunnel property: Describes the tunnel through which Video Analyzer can connect to the endpoint URL. This is an optional property, typically used when the endpoint is behind a firewall.- Parameters:
tunnel
- the tunnel value to set.- Returns:
- the EndpointBase object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-