Class RelationInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.securityinsights.models.ResourceWithEtag
-
- com.azure.resourcemanager.securityinsights.fluent.models.RelationInner
-
public final class RelationInner extends ResourceWithEtag
Represents a relation between two resources.
-
-
Constructor Summary
Constructors Constructor Description RelationInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
relatedResourceId()
Get the relatedResourceId property: The resource ID of the related resource.String
relatedResourceKind()
Get the relatedResourceKind property: The resource kind of the related resource.String
relatedResourceName()
Get the relatedResourceName property: The name of the related resource.String
relatedResourceType()
Get the relatedResourceType property: The resource type of the related resource.void
validate()
Validates the instance.RelationInner
withEtag(String etag)
Set the etag property: Etag of the azure resource.RelationInner
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
-
-
-
-
Method Detail
-
withEtag
public RelationInner withEtag(String etag)
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.
-
relatedResourceId
public String relatedResourceId()
Get the relatedResourceId property: The resource ID of the related resource.- Returns:
- the relatedResourceId value.
-
withRelatedResourceId
public RelationInner withRelatedResourceId(String relatedResourceId)
Set the relatedResourceId property: The resource ID of the related resource.- Parameters:
relatedResourceId
- the relatedResourceId value to set.- Returns:
- the RelationInner object itself.
-
relatedResourceName
public String relatedResourceName()
Get the relatedResourceName property: The name of the related resource.- Returns:
- the relatedResourceName value.
-
relatedResourceType
public String relatedResourceType()
Get the relatedResourceType property: The resource type of the related resource.- Returns:
- the relatedResourceType value.
-
relatedResourceKind
public String relatedResourceKind()
Get the relatedResourceKind property: The resource kind of the related resource.- Returns:
- the relatedResourceKind value.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classResourceWithEtag
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-