Class BackendCredentialsContract
java.lang.Object
com.azure.resourcemanager.apimanagement.models.BackendCredentialsContract
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BackendCredentialsContract>
public final class BackendCredentialsContract
extends Object
implements com.azure.json.JsonSerializable<BackendCredentialsContract>
Details of the Credentials used to connect to Backend.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of BackendCredentialsContract class. -
Method Summary
Modifier and TypeMethodDescriptionGet the authorization property: Authorization header authentication.Get the certificate property: List of Client Certificate Thumbprints.Get the certificateIds property: List of Client Certificate Ids.static BackendCredentialsContractfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BackendCredentialsContract from the JsonReader.Get the headerProperty property: Header Parameter description.query()Get the query property: Query Parameter description.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAuthorization(BackendAuthorizationHeaderCredentials authorization) Set the authorization property: Authorization header authentication.withCertificate(List<String> certificate) Set the certificate property: List of Client Certificate Thumbprints.withCertificateIds(List<String> certificateIds) Set the certificateIds property: List of Client Certificate Ids.withHeaderProperty(Map<String, List<String>> headerProperty) Set the headerProperty property: Header Parameter description.Set the query property: Query Parameter description.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
BackendCredentialsContract
public BackendCredentialsContract()Creates an instance of BackendCredentialsContract class.
-
-
Method Details
-
certificateIds
Get the certificateIds property: List of Client Certificate Ids.- Returns:
- the certificateIds value.
-
withCertificateIds
Set the certificateIds property: List of Client Certificate Ids.- Parameters:
certificateIds- the certificateIds value to set.- Returns:
- the BackendCredentialsContract object itself.
-
certificate
Get the certificate property: List of Client Certificate Thumbprints. Will be ignored if certificatesIds are provided.- Returns:
- the certificate value.
-
withCertificate
Set the certificate property: List of Client Certificate Thumbprints. Will be ignored if certificatesIds are provided.- Parameters:
certificate- the certificate value to set.- Returns:
- the BackendCredentialsContract object itself.
-
query
Get the query property: Query Parameter description.- Returns:
- the query value.
-
withQuery
Set the query property: Query Parameter description.- Parameters:
query- the query value to set.- Returns:
- the BackendCredentialsContract object itself.
-
headerProperty
Get the headerProperty property: Header Parameter description.- Returns:
- the headerProperty value.
-
withHeaderProperty
Set the headerProperty property: Header Parameter description.- Parameters:
headerProperty- the headerProperty value to set.- Returns:
- the BackendCredentialsContract object itself.
-
authorization
Get the authorization property: Authorization header authentication.- Returns:
- the authorization value.
-
withAuthorization
public BackendCredentialsContract withAuthorization(BackendAuthorizationHeaderCredentials authorization) Set the authorization property: Authorization header authentication.- Parameters:
authorization- the authorization value to set.- Returns:
- the BackendCredentialsContract object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<BackendCredentialsContract>- Throws:
IOException
-
fromJson
public static BackendCredentialsContract fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BackendCredentialsContract from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BackendCredentialsContract 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 BackendCredentialsContract.
-