Class DaprSecret
java.lang.Object
com.azure.resourcemanager.appcontainers.models.DaprSecret
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DaprSecret>
Dapr component Secret for ListSecrets Action.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DaprSecretfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DaprSecret from the JsonReader.name()Get the name property: Secret Name.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.value()Get the value property: Secret Value.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
-
DaprSecret
public DaprSecret()Creates an instance of DaprSecret class.
-
-
Method Details
-
name
Get the name property: Secret Name.- Returns:
- the name value.
-
value
Get the value property: Secret Value.- Returns:
- the value value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DaprSecret>- Throws:
IOException
-
fromJson
Reads an instance of DaprSecret from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DaprSecret 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 DaprSecret.
-