Class ForwardProxy
- java.lang.Object
-
- com.azure.resourcemanager.appcontainers.models.ForwardProxy
-
public final class ForwardProxy extends Object
The configuration settings of a forward proxy used to make the requests.
-
-
Constructor Summary
Constructors Constructor Description ForwardProxy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ForwardProxyConvention
convention()
Get the convention property: The convention used to determine the url of the request made.String
customHostHeaderName()
Get the customHostHeaderName property: The name of the header containing the host of the request.String
customProtoHeaderName()
Get the customProtoHeaderName property: The name of the header containing the scheme of the request.void
validate()
Validates the instance.ForwardProxy
withConvention(ForwardProxyConvention convention)
Set the convention property: The convention used to determine the url of the request made.ForwardProxy
withCustomHostHeaderName(String customHostHeaderName)
Set the customHostHeaderName property: The name of the header containing the host of the request.ForwardProxy
withCustomProtoHeaderName(String customProtoHeaderName)
Set the customProtoHeaderName property: The name of the header containing the scheme of the request.
-
-
-
Method Detail
-
convention
public ForwardProxyConvention convention()
Get the convention property: The convention used to determine the url of the request made.- Returns:
- the convention value.
-
withConvention
public ForwardProxy withConvention(ForwardProxyConvention convention)
Set the convention property: The convention used to determine the url of the request made.- Parameters:
convention
- the convention value to set.- Returns:
- the ForwardProxy object itself.
-
customHostHeaderName
public String customHostHeaderName()
Get the customHostHeaderName property: The name of the header containing the host of the request.- Returns:
- the customHostHeaderName value.
-
withCustomHostHeaderName
public ForwardProxy withCustomHostHeaderName(String customHostHeaderName)
Set the customHostHeaderName property: The name of the header containing the host of the request.- Parameters:
customHostHeaderName
- the customHostHeaderName value to set.- Returns:
- the ForwardProxy object itself.
-
customProtoHeaderName
public String customProtoHeaderName()
Get the customProtoHeaderName property: The name of the header containing the scheme of the request.- Returns:
- the customProtoHeaderName value.
-
withCustomProtoHeaderName
public ForwardProxy withCustomProtoHeaderName(String customProtoHeaderName)
Set the customProtoHeaderName property: The name of the header containing the scheme of the request.- Parameters:
customProtoHeaderName
- the customProtoHeaderName value to set.- Returns:
- the ForwardProxy object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-