Class DomainRecommendationSearchParameters
java.lang.Object
com.azure.resourcemanager.appservice.models.DomainRecommendationSearchParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DomainRecommendationSearchParameters>
public final class DomainRecommendationSearchParameters
extends Object
implements com.azure.json.JsonSerializable<DomainRecommendationSearchParameters>
Domain recommendation search parameters.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DomainRecommendationSearchParameters class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DomainRecommendationSearchParameters from the JsonReader.keywords()Get the keywords property: Keywords to be used for generating domain recommendations.Get the maxDomainRecommendations property: Maximum number of recommendations.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withKeywords(String keywords) Set the keywords property: Keywords to be used for generating domain recommendations.withMaxDomainRecommendations(Integer maxDomainRecommendations) Set the maxDomainRecommendations property: Maximum number of recommendations.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
-
DomainRecommendationSearchParameters
public DomainRecommendationSearchParameters()Creates an instance of DomainRecommendationSearchParameters class.
-
-
Method Details
-
keywords
Get the keywords property: Keywords to be used for generating domain recommendations.- Returns:
- the keywords value.
-
withKeywords
Set the keywords property: Keywords to be used for generating domain recommendations.- Parameters:
keywords- the keywords value to set.- Returns:
- the DomainRecommendationSearchParameters object itself.
-
maxDomainRecommendations
Get the maxDomainRecommendations property: Maximum number of recommendations.- Returns:
- the maxDomainRecommendations value.
-
withMaxDomainRecommendations
public DomainRecommendationSearchParameters withMaxDomainRecommendations(Integer maxDomainRecommendations) Set the maxDomainRecommendations property: Maximum number of recommendations.- Parameters:
maxDomainRecommendations- the maxDomainRecommendations value to set.- Returns:
- the DomainRecommendationSearchParameters 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<DomainRecommendationSearchParameters>- Throws:
IOException
-
fromJson
public static DomainRecommendationSearchParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DomainRecommendationSearchParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DomainRecommendationSearchParameters 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 DomainRecommendationSearchParameters.
-