public final class ResourceName extends Object
| Constructor and Description |
|---|
ResourceName() |
| Modifier and Type | Method and Description |
|---|---|
String |
name()
Get the name property: Name of the resource.
|
String |
type()
Get the type property: The type of the resource.
|
void |
validate()
Validates the instance.
|
ResourceName |
withName(String name)
Set the name property: Name of the resource.
|
ResourceName |
withType(String type)
Set the type property: The type of the resource.
|
public String name()
public ResourceName withName(String name)
name - the name value to set.public String type()
public ResourceName withType(String type)
type - the type value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.