ResourceMetadata Class
- java.
lang. Object - com.
azure. resourcemanager. appcomplianceautomation. models. ResourceMetadata
- com.
Implements
public final class ResourceMetadata
implements JsonSerializable<ResourceMetadata>
Single resource Id's metadata.
Constructor Summary
| Constructor | Description |
|---|---|
| ResourceMetadata() |
Creates an instance of Resource |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
accountId()
Get the account |
|
static
Resource |
fromJson(JsonReader jsonReader)
Reads an instance of Resource |
| String |
resourceId()
Get the resource |
| String |
resourceKind()
Get the resource |
|
Resource |
resourceOrigin()
Get the resource |
| String |
resourceType()
Get the resource |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Resource |
withAccountId(String accountId)
Set the account |
|
Resource |
withResourceId(String resourceId)
Set the resource |
|
Resource |
withResourceKind(String resourceKind)
Set the resource |
|
Resource |
withResourceOrigin(ResourceOrigin resourceOrigin)
Set the resource |
|
Resource |
withResourceType(String resourceType)
Set the resource |
Methods inherited from java.lang.Object
Constructor Details
ResourceMetadata
public ResourceMetadata()
Creates an instance of ResourceMetadata class.
Method Details
accountId
public String accountId()
Get the accountId property: Account Id. For example - the AWS account id.
Returns:
fromJson
public static ResourceMetadata fromJson(JsonReader jsonReader)
Reads an instance of ResourceMetadata from the JsonReader.
Parameters:
Returns:
Throws:
resourceId
public String resourceId()
Get the resourceId property: Resource Id - e.g. "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1".
Returns:
resourceKind
public String resourceKind()
Get the resourceKind property: Resource kind.
Returns:
resourceOrigin
public ResourceOrigin resourceOrigin()
Get the resourceOrigin property: Resource Origin.
Returns:
resourceType
public String resourceType()
Get the resourceType property: Resource type. e.g. "Microsoft.Compute/virtualMachines".
Returns:
toJson
withAccountId
public ResourceMetadata withAccountId(String accountId)
Set the accountId property: Account Id. For example - the AWS account id.
Parameters:
Returns:
withResourceId
public ResourceMetadata withResourceId(String resourceId)
Set the resourceId property: Resource Id - e.g. "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1".
Parameters:
Returns:
withResourceKind
public ResourceMetadata withResourceKind(String resourceKind)
Set the resourceKind property: Resource kind.
Parameters:
Returns:
withResourceOrigin
public ResourceMetadata withResourceOrigin(ResourceOrigin resourceOrigin)
Set the resourceOrigin property: Resource Origin.
Parameters:
Returns:
withResourceType
public ResourceMetadata withResourceType(String resourceType)
Set the resourceType property: Resource type. e.g. "Microsoft.Compute/virtualMachines".
Parameters:
Returns: