Class AzureResource
- java.lang.Object
-
- com.azure.resourcemanager.servicelinker.models.TargetServiceBase
-
- com.azure.resourcemanager.servicelinker.models.AzureResource
-
public final class AzureResource extends TargetServiceBase
The azure resource info when target service type is AzureResource.
-
-
Constructor Summary
Constructors Constructor Description AzureResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
id()
Get the id property: The Id of azure resource.AzureResourcePropertiesBase
resourceProperties()
Get the resourceProperties property: The azure resource connection related properties.void
validate()
Validates the instance.AzureResource
withId(String id)
Set the id property: The Id of azure resource.AzureResource
withResourceProperties(AzureResourcePropertiesBase resourceProperties)
Set the resourceProperties property: The azure resource connection related properties.
-
-
-
Method Detail
-
id
public String id()
Get the id property: The Id of azure resource.- Returns:
- the id value.
-
withId
public AzureResource withId(String id)
Set the id property: The Id of azure resource.- Parameters:
id
- the id value to set.- Returns:
- the AzureResource object itself.
-
resourceProperties
public AzureResourcePropertiesBase resourceProperties()
Get the resourceProperties property: The azure resource connection related properties.- Returns:
- the resourceProperties value.
-
withResourceProperties
public AzureResource withResourceProperties(AzureResourcePropertiesBase resourceProperties)
Set the resourceProperties property: The azure resource connection related properties.- Parameters:
resourceProperties
- the resourceProperties value to set.- Returns:
- the AzureResource object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classTargetServiceBase
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-