ArmResourceProperties Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. cosmos. models. ArmResourceProperties
- com.
- com.
- com.
public class ArmResourceProperties
extends Resource
The core properties of ARM resources.
Constructor Summary
Constructor | Description |
---|---|
ArmResourceProperties() |
Creates an instance of Arm |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Arm |
fromJson(JsonReader jsonReader)
Reads an instance of Arm |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
name()
Get the name property: The name of the resource. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Arm |
withLocation(String location) |
Arm |
withTags(Map<String,String> tags) |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
ArmResourceProperties
public ArmResourceProperties()
Creates an instance of ArmResourceProperties class.
Method Details
fromJson
public static ArmResourceProperties fromJson(JsonReader jsonReader)
Reads an instance of ArmResourceProperties from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
ArmResourceProperties.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
ArmResourceProperties.name()Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ArmResourceProperties.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
ArmResourceProperties.type()Returns:
validate
public void validate()
Validates the instance.
withLocation
public ArmResourceProperties withLocation(String location)
Overrides:
ArmResourceProperties.withLocation(String location)Parameters:
withTags
public ArmResourceProperties withTags(Map
Overrides:
ArmResourceProperties.withTags(Map<String,String> tags)Parameters:
Applies to
Azure SDK for Java