Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
The Resource model.
/**
* The Resource model.
*/
public class Resource extends ProxyResource {
Resource location.
/**
* Resource location.
*/
@JsonProperty(required = true)
private String location;
Resource tags.
/**
* Resource tags.
*/
private Map<String, String> tags;
Get the location value.
Returns: the location value
/**
* Get the location value.
*
* @return the location value
*/
public String location() {
return this.location;
}
Set the location value.
Params: - location – the location value to set
Returns: the resource itself
/**
* Set the location value.
*
* @param location the location value to set
* @return the resource itself
*/
public Resource withLocation(String location) {
this.location = location;
return this;
}
Get the tags value.
Returns: the tags value
/**
* Get the tags value.
*
* @return the tags value
*/
public Map<String, String> getTags() {
return this.tags;
}
Set the tags value.
Params: - tags – the tags value to set
Returns: the resource itself
/**
* Set the tags value.
*
* @param tags the tags value to set
* @return the resource itself
*/
public Resource withTags(Map<String, String> tags) {
this.tags = tags;
return this;
}
}