AuthorizationRuleInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. eventhubs. fluent. models. AuthorizationRuleInner
- com.
- com.
public final class AuthorizationRuleInner
extends ProxyResource
Single item in a List or Get AuthorizationRule operation.
Constructor Summary
Constructor | Description |
---|---|
AuthorizationRuleInner() |
Creates an instance of Authorization |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Authorization |
fromJson(JsonReader jsonReader)
Reads an instance of Authorization |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
location()
Get the location property: The geo-location where the resource lives. |
String |
name()
Get the name property: The name of the resource. |
List<Access |
rights()
Get the rights property: The rights associated with the rule. |
System |
systemData()
Get the system |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Authorization |
withRights(List<AccessRights> rights)
Set the rights property: The rights associated with the rule. |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
AuthorizationRuleInner
public AuthorizationRuleInner()
Creates an instance of AuthorizationRuleInner class.
Method Details
fromJson
public static AuthorizationRuleInner fromJson(JsonReader jsonReader)
Reads an instance of AuthorizationRuleInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
AuthorizationRuleInner.id()Returns:
location
public String location()
Get the location property: The geo-location where the resource lives.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
AuthorizationRuleInner.name()Returns:
rights
public List
Get the rights property: The rights associated with the rule.
Returns:
systemData
public SystemData systemData()
Get the systemData property: The system meta data relating to this resource.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
AuthorizationRuleInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
AuthorizationRuleInner.type()Returns:
validate
public void validate()
Validates the instance.
withRights
public AuthorizationRuleInner withRights(List
Set the rights property: The rights associated with the rule.
Parameters:
Returns:
Applies to
Azure SDK for Java