Class ForwardProxy
java.lang.Object
com.azure.resourcemanager.appcontainers.models.ForwardProxy
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ForwardProxy>
public final class ForwardProxy
extends Object
implements com.azure.json.JsonSerializable<ForwardProxy>
The configuration settings of a forward proxy used to make the requests.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the convention property: The convention used to determine the url of the request made.Get the customHostHeaderName property: The name of the header containing the host of the request.Get the customProtoHeaderName property: The name of the header containing the scheme of the request.static ForwardProxy
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ForwardProxy from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withConvention
(ForwardProxyConvention convention) Set the convention property: The convention used to determine the url of the request made.withCustomHostHeaderName
(String customHostHeaderName) Set the customHostHeaderName property: The name of the header containing the host of the request.withCustomProtoHeaderName
(String customProtoHeaderName) Set the customProtoHeaderName property: The name of the header containing the scheme of the request.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ForwardProxy
public ForwardProxy()Creates an instance of ForwardProxy class.
-
-
Method Details
-
convention
Get the convention property: The convention used to determine the url of the request made.- Returns:
- the convention value.
-
withConvention
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
Get the customHostHeaderName property: The name of the header containing the host of the request.- Returns:
- the customHostHeaderName value.
-
withCustomHostHeaderName
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
Get the customProtoHeaderName property: The name of the header containing the scheme of the request.- Returns:
- the customProtoHeaderName value.
-
withCustomProtoHeaderName
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.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ForwardProxy>
- Throws:
IOException
-
fromJson
Reads an instance of ForwardProxy from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ForwardProxy if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the ForwardProxy.
-