Class ProviderInner
java.lang.Object
com.azure.resourcemanager.resources.fluent.models.ProviderInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ProviderInner>
public final class ProviderInner
extends Object
implements com.azure.json.JsonSerializable<ProviderInner>
Resource provider information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ProviderInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ProviderInner from the JsonReader.id()Get the id property: The provider ID.Get the namespace property: The namespace of the resource provider.Get the providerAuthorizationConsentState property: The provider authorization consent state.Get the registrationPolicy property: The registration policy of the resource provider.Get the registrationState property: The registration state of the resource provider.Get the resourceTypes property: The collection of provider resource types.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withNamespace(String namespace) Set the namespace property: The namespace of the resource provider.withProviderAuthorizationConsentState(ProviderAuthorizationConsentState providerAuthorizationConsentState) Set the providerAuthorizationConsentState property: The provider authorization consent state.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
-
ProviderInner
public ProviderInner()Creates an instance of ProviderInner class.
-
-
Method Details
-
id
Get the id property: The provider ID.- Returns:
- the id value.
-
namespace
Get the namespace property: The namespace of the resource provider.- Returns:
- the namespace value.
-
withNamespace
Set the namespace property: The namespace of the resource provider.- Parameters:
namespace- the namespace value to set.- Returns:
- the ProviderInner object itself.
-
registrationState
Get the registrationState property: The registration state of the resource provider.- Returns:
- the registrationState value.
-
registrationPolicy
Get the registrationPolicy property: The registration policy of the resource provider.- Returns:
- the registrationPolicy value.
-
resourceTypes
Get the resourceTypes property: The collection of provider resource types.- Returns:
- the resourceTypes value.
-
providerAuthorizationConsentState
Get the providerAuthorizationConsentState property: The provider authorization consent state.- Returns:
- the providerAuthorizationConsentState value.
-
withProviderAuthorizationConsentState
public ProviderInner withProviderAuthorizationConsentState(ProviderAuthorizationConsentState providerAuthorizationConsentState) Set the providerAuthorizationConsentState property: The provider authorization consent state.- Parameters:
providerAuthorizationConsentState- the providerAuthorizationConsentState value to set.- Returns:
- the ProviderInner 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<ProviderInner>- Throws:
IOException
-
fromJson
Reads an instance of ProviderInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ProviderInner 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 ProviderInner.
-