ResourceBasics Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. ResourceBasics
- com.
Implements
public final class ResourceBasics
implements JsonSerializable<ResourceBasics>
Representation of basic resource information.
Constructor Summary
Constructor | Description |
---|---|
ResourceBasics() |
Creates an instance of Resource |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
addressPrefixes()
Get the address |
static
Resource |
fromJson(JsonReader jsonReader)
Reads an instance of Resource |
String |
resourceId()
Get the resource |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Resource |
withAddressPrefixes(List<String> addressPrefixes)
Set the address |
Resource |
withResourceId(String resourceId)
Set the resource |
Methods inherited from java.lang.Object
Constructor Details
ResourceBasics
public ResourceBasics()
Creates an instance of ResourceBasics class.
Method Details
addressPrefixes
public List
Get the addressPrefixes property: List of IP address prefixes of the resource.
Returns:
fromJson
public static ResourceBasics fromJson(JsonReader jsonReader)
Reads an instance of ResourceBasics from the JsonReader.
Parameters:
Returns:
Throws:
resourceId
public String resourceId()
Get the resourceId property: ResourceId of the Azure resource.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAddressPrefixes
public ResourceBasics withAddressPrefixes(List
Set the addressPrefixes property: List of IP address prefixes of the resource.
Parameters:
Returns:
withResourceId
public ResourceBasics withResourceId(String resourceId)
Set the resourceId property: ResourceId of the Azure resource.
Parameters:
Returns:
Applies to
Azure SDK for Java