RelationInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. securityinsights. models. ResourceWithEtag - com.
azure. resourcemanager. securityinsights. fluent. models. RelationInner
- com.
- com.
- com.
public final class RelationInner
extends ResourceWithEtag
Represents a relation between two resources.
Constructor Summary
| Constructor | Description |
|---|---|
| RelationInner() |
Creates an instance of Relation |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Relation |
fromJson(JsonReader jsonReader)
Reads an instance of Relation |
| String |
id()
Get the id property: Fully qualified resource Id for the resource. |
| String |
name()
Get the name property: The name of the resource. |
| String |
relatedResourceId()
Get the related |
| String |
relatedResourceKind()
Get the related |
| String |
relatedResourceName()
Get the related |
| String |
relatedResourceType()
Get the related |
|
System |
systemData()
Get the system |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| void |
validate()
Validates the instance. |
|
Relation |
withEtag(String etag)
Set the etag property: Etag of the azure resource. |
|
Relation |
withRelatedResourceId(String relatedResourceId)
Set the related |
Methods inherited from ResourceWithEtag
Methods inherited from java.lang.Object
Constructor Details
RelationInner
public RelationInner()
Creates an instance of RelationInner class.
Method Details
fromJson
public static RelationInner fromJson(JsonReader jsonReader)
Reads an instance of RelationInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
RelationInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
RelationInner.name()Returns:
relatedResourceId
public String relatedResourceId()
Get the relatedResourceId property: The resource ID of the related resource.
Returns:
relatedResourceKind
public String relatedResourceKind()
Get the relatedResourceKind property: The resource kind of the related resource.
Returns:
relatedResourceName
public String relatedResourceName()
Get the relatedResourceName property: The name of the related resource.
Returns:
relatedResourceType
public String relatedResourceType()
Get the relatedResourceType property: The resource type of the related resource.
Returns:
systemData
public SystemData systemData()
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
Overrides:
RelationInner.systemData()Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
RelationInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
RelationInner.type()Returns:
validate
public void validate()
Validates the instance.
Overrides:
RelationInner.validate()withEtag
public RelationInner withEtag(String etag)
Set the etag property: Etag of the azure resource.
Overrides:
RelationInner.withEtag(String etag)Parameters:
withRelatedResourceId
public RelationInner withRelatedResourceId(String relatedResourceId)
Set the relatedResourceId property: The resource ID of the related resource.
Parameters:
Returns: