Class EnvironmentProperties
java.lang.Object
com.azure.resourcemanager.apicenter.models.EnvironmentProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EnvironmentProperties>
public final class EnvironmentProperties
extends Object
implements com.azure.json.JsonSerializable<EnvironmentProperties>
Environment properties entity.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the customProperties property: The custom metadata defined for API catalog entities.Get the description property: The environment description.static EnvironmentProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of EnvironmentProperties from the JsonReader.kind()
Get the kind property: Environment kind.Get the onboarding property: Environment onboarding information.server()
Get the server property: Server information of the environment.title()
Get the title property: Environment title.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withCustomProperties
(Object customProperties) Set the customProperties property: The custom metadata defined for API catalog entities.withDescription
(String description) Set the description property: The environment description.withKind
(EnvironmentKind kind) Set the kind property: Environment kind.withOnboarding
(Onboarding onboarding) Set the onboarding property: Environment onboarding information.withServer
(EnvironmentServer server) Set the server property: Server information of the environment.Set the title property: Environment 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
-
EnvironmentProperties
public EnvironmentProperties()Creates an instance of EnvironmentProperties class.
-
-
Method Details
-
title
Get the title property: Environment title.- Returns:
- the title value.
-
withTitle
Set the title property: Environment title.- Parameters:
title
- the title value to set.- Returns:
- the EnvironmentProperties object itself.
-
description
Get the description property: The environment description.- Returns:
- the description value.
-
withDescription
Set the description property: The environment description.- Parameters:
description
- the description value to set.- Returns:
- the EnvironmentProperties object itself.
-
kind
Get the kind property: Environment kind.- Returns:
- the kind value.
-
withKind
Set the kind property: Environment kind.- Parameters:
kind
- the kind value to set.- Returns:
- the EnvironmentProperties object itself.
-
server
Get the server property: Server information of the environment.- Returns:
- the server value.
-
withServer
Set the server property: Server information of the environment.- Parameters:
server
- the server value to set.- Returns:
- the EnvironmentProperties object itself.
-
onboarding
Get the onboarding property: Environment onboarding information.- Returns:
- the onboarding value.
-
withOnboarding
Set the onboarding property: Environment onboarding information.- Parameters:
onboarding
- the onboarding value to set.- Returns:
- the EnvironmentProperties 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 EnvironmentProperties 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<EnvironmentProperties>
- Throws:
IOException
-
fromJson
public static EnvironmentProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of EnvironmentProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of EnvironmentProperties 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 EnvironmentProperties.
-