Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
Code generated by Microsoft (R) AutoRest Code Generator.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.resources;
import com.fasterxml.jackson.annotation.JsonProperty;
Target resource.
/**
* Target resource.
*/
public class TargetResource {
The ID of the resource.
/**
* The ID of the resource.
*/
@JsonProperty(value = "id")
private String id;
The name of the resource.
/**
* The name of the resource.
*/
@JsonProperty(value = "resourceName")
private String resourceName;
The type of the resource.
/**
* The type of the resource.
*/
@JsonProperty(value = "resourceType")
private String resourceType;
Get the ID of the resource.
Returns: the id value
/**
* Get the ID of the resource.
*
* @return the id value
*/
public String id() {
return this.id;
}
Set the ID of the resource.
Params: - id – the id value to set
Returns: the TargetResource object itself.
/**
* Set the ID of the resource.
*
* @param id the id value to set
* @return the TargetResource object itself.
*/
public TargetResource withId(String id) {
this.id = id;
return this;
}
Get the name of the resource.
Returns: the resourceName value
/**
* Get the name of the resource.
*
* @return the resourceName value
*/
public String resourceName() {
return this.resourceName;
}
Set the name of the resource.
Params: - resourceName – the resourceName value to set
Returns: the TargetResource object itself.
/**
* Set the name of the resource.
*
* @param resourceName the resourceName value to set
* @return the TargetResource object itself.
*/
public TargetResource withResourceName(String resourceName) {
this.resourceName = resourceName;
return this;
}
Get the type of the resource.
Returns: the resourceType value
/**
* Get the type of the resource.
*
* @return the resourceType value
*/
public String resourceType() {
return this.resourceType;
}
Set the type of the resource.
Params: - resourceType – the resourceType value to set
Returns: the TargetResource object itself.
/**
* Set the type of the resource.
*
* @param resourceType the resourceType value to set
* @return the TargetResource object itself.
*/
public TargetResource withResourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}
}