Class ApiProperties
java.lang.Object
com.azure.resourcemanager.apicenter.models.ApiProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ApiProperties>
public final class ApiProperties
extends Object
implements com.azure.json.JsonSerializable<ApiProperties>
API properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontacts()
Get the contacts property: The set of contacts.Get the customProperties property: The custom metadata defined for API catalog entities.Get the description property: Description of the API.Get the externalDocumentation property: The set of external documentation.static ApiProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ApiProperties from the JsonReader.kind()
Get the kind property: Kind of API.license()
Get the license property: The license information for the API.Get the lifecycleStage property: Current lifecycle stage of the API.summary()
Get the summary property: Short description of the API.Get the termsOfService property: Terms of service for the API.title()
Get the title property: API title.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withContacts
(List<Contact> contacts) Set the contacts property: The set of contacts.withCustomProperties
(Object customProperties) Set the customProperties property: The custom metadata defined for API catalog entities.withDescription
(String description) Set the description property: Description of the API.withExternalDocumentation
(List<ExternalDocumentation> externalDocumentation) Set the externalDocumentation property: The set of external documentation.Set the kind property: Kind of API.withLicense
(License license) Set the license property: The license information for the API.withSummary
(String summary) Set the summary property: Short description of the API.withTermsOfService
(TermsOfService termsOfService) Set the termsOfService property: Terms of service for the API.Set the title property: API title.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
-
ApiProperties
public ApiProperties()Creates an instance of ApiProperties class.
-
-
Method Details
-
title
Get the title property: API title.- Returns:
- the title value.
-
withTitle
Set the title property: API title.- Parameters:
title
- the title value to set.- Returns:
- the ApiProperties object itself.
-
kind
Get the kind property: Kind of API. For example, REST or GraphQL.- Returns:
- the kind value.
-
withKind
Set the kind property: Kind of API. For example, REST or GraphQL.- Parameters:
kind
- the kind value to set.- Returns:
- the ApiProperties object itself.
-
description
Get the description property: Description of the API.- Returns:
- the description value.
-
withDescription
Set the description property: Description of the API.- Parameters:
description
- the description value to set.- Returns:
- the ApiProperties object itself.
-
summary
Get the summary property: Short description of the API.- Returns:
- the summary value.
-
withSummary
Set the summary property: Short description of the API.- Parameters:
summary
- the summary value to set.- Returns:
- the ApiProperties object itself.
-
lifecycleStage
Get the lifecycleStage property: Current lifecycle stage of the API.- Returns:
- the lifecycleStage value.
-
termsOfService
Get the termsOfService property: Terms of service for the API.- Returns:
- the termsOfService value.
-
withTermsOfService
Set the termsOfService property: Terms of service for the API.- Parameters:
termsOfService
- the termsOfService value to set.- Returns:
- the ApiProperties object itself.
-
externalDocumentation
Get the externalDocumentation property: The set of external documentation.- Returns:
- the externalDocumentation value.
-
withExternalDocumentation
Set the externalDocumentation property: The set of external documentation.- Parameters:
externalDocumentation
- the externalDocumentation value to set.- Returns:
- the ApiProperties object itself.
-
contacts
Get the contacts property: The set of contacts.- Returns:
- the contacts value.
-
withContacts
Set the contacts property: The set of contacts.- Parameters:
contacts
- the contacts value to set.- Returns:
- the ApiProperties object itself.
-
license
Get the license property: The license information for the API.- Returns:
- the license value.
-
withLicense
Set the license property: The license information for the API.- Parameters:
license
- the license value to set.- Returns:
- the ApiProperties object itself.
-
customProperties
Get the customProperties property: The custom metadata defined for API catalog entities.- Returns:
- the customProperties value.
-
withCustomProperties
Set the customProperties property: The custom metadata defined for API catalog entities.- Parameters:
customProperties
- the customProperties value to set.- Returns:
- the ApiProperties 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<ApiProperties>
- Throws:
IOException
-
fromJson
Reads an instance of ApiProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ApiProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the ApiProperties.
-