Class NamedValueEntityBaseParameters
java.lang.Object
com.azure.resourcemanager.apimanagement.models.NamedValueEntityBaseParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<NamedValueEntityBaseParameters>
- Direct Known Subclasses:
NamedValueContractProperties,NamedValueCreateContractProperties,NamedValueUpdateParameterProperties
public class NamedValueEntityBaseParameters
extends Object
implements com.azure.json.JsonSerializable<NamedValueEntityBaseParameters>
NamedValue Entity Base Parameters set.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of NamedValueEntityBaseParameters class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NamedValueEntityBaseParameters from the JsonReader.secret()Get the secret property: Determines whether the value is a secret and should be encrypted or not.tags()Get the tags property: Optional tags that when provided can be used to filter the NamedValue list.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withSecret(Boolean secret) Set the secret property: Determines whether the value is a secret and should be encrypted or not.Set the tags property: Optional tags that when provided can be used to filter the NamedValue list.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
-
NamedValueEntityBaseParameters
public NamedValueEntityBaseParameters()Creates an instance of NamedValueEntityBaseParameters class.
-
-
Method Details
-
tags
Get the tags property: Optional tags that when provided can be used to filter the NamedValue list.- Returns:
- the tags value.
-
withTags
Set the tags property: Optional tags that when provided can be used to filter the NamedValue list.- Parameters:
tags- the tags value to set.- Returns:
- the NamedValueEntityBaseParameters object itself.
-
secret
Get the secret property: Determines whether the value is a secret and should be encrypted or not. Default value is false.- Returns:
- the secret value.
-
withSecret
Set the secret property: Determines whether the value is a secret and should be encrypted or not. Default value is false.- Parameters:
secret- the secret value to set.- Returns:
- the NamedValueEntityBaseParameters 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<NamedValueEntityBaseParameters>- Throws:
IOException
-
fromJson
public static NamedValueEntityBaseParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of NamedValueEntityBaseParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of NamedValueEntityBaseParameters 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 NamedValueEntityBaseParameters.
-