ResourceGroupInner Class

public final class ResourceGroupInner
extends Resource

Resource group information.

Constructor Summary

Constructor Description
ResourceGroupInner()

Creates an instance of ResourceGroupInner class.

Method Summary

Modifier and Type Method and Description
static ResourceGroupInner fromJson(JsonReader jsonReader)

Reads an instance of ResourceGroupInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String managedBy()

Get the managedBy property: The ID of the resource that manages this resource group.

String name()

Get the name property: The name of the resource.

ResourceGroupProperties properties()

Get the properties property: The resource group properties.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

ResourceGroupInner withLocation(String location)
ResourceGroupInner withManagedBy(String managedBy)

Set the managedBy property: The ID of the resource that manages this resource group.

ResourceGroupInner withProperties(ResourceGroupProperties properties)

Set the properties property: The resource group properties.

ResourceGroupInner withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

ResourceGroupInner

public ResourceGroupInner()

Creates an instance of ResourceGroupInner class.

Method Details

fromJson

public static ResourceGroupInner fromJson(JsonReader jsonReader)

Reads an instance of ResourceGroupInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ResourceGroupInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

ResourceGroupInner.id()

Returns:

the id value.

managedBy

public String managedBy()

Get the managedBy property: The ID of the resource that manages this resource group.

Returns:

the managedBy value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ResourceGroupInner.name()

Returns:

the name value.

properties

public ResourceGroupProperties properties()

Get the properties property: The resource group properties.

Returns:

the properties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ResourceGroupInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ResourceGroupInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withLocation

public ResourceGroupInner withLocation(String location)

Overrides:

ResourceGroupInner.withLocation(String location)

Parameters:

location

withManagedBy

public ResourceGroupInner withManagedBy(String managedBy)

Set the managedBy property: The ID of the resource that manages this resource group.

Parameters:

managedBy - the managedBy value to set.

Returns:

the ResourceGroupInner object itself.

withProperties

public ResourceGroupInner withProperties(ResourceGroupProperties properties)

Set the properties property: The resource group properties.

Parameters:

properties - the properties value to set.

Returns:

the ResourceGroupInner object itself.

withTags

public ResourceGroupInner withTags(Map tags)

Overrides:

ResourceGroupInner.withTags(Map<String,String> tags)

Parameters:

tags

Applies to