Class RelationInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.securityinsights.models.ResourceWithEtag
com.azure.resourcemanager.securityinsights.fluent.models.RelationInner
Represents a relation between two resources.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the relatedResourceId property: The resource ID of the related resource.Get the relatedResourceKind property: The resource kind of the related resource.Get the relatedResourceName property: The name of the related resource.Get the relatedResourceType property: The resource type of the related resource.void
validate()
Validates the instance.Set the etag property: Etag of the azure resource.withRelatedResourceId
(String relatedResourceId) Set the relatedResourceId property: The resource ID of the related resource.Methods inherited from class com.azure.resourcemanager.securityinsights.models.ResourceWithEtag
etag, systemData
Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
RelationInner
public RelationInner()
-
-
Method Details
-
withEtag
Set the etag property: Etag of the azure resource.- Overrides:
withEtag
in classResourceWithEtag
- Parameters:
etag
- the etag value to set.- Returns:
- the ResourceWithEtag object itself.
-
withRelatedResourceId
Set the relatedResourceId property: The resource ID of the related resource.- Parameters:
relatedResourceId
- the relatedResourceId value to set.- Returns:
- the RelationInner object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classResourceWithEtag
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-