com.microsoft.azure.Resource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-client-runtime Show documentation
Show all versions of azure-client-runtime Show documentation
This package contains the basic runtime for AutoRest generated Azure Java clients.
The newest version!
/**
* 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.
*/
public class Resource extends ProxyResource {
/**
* Resource location.
*/
@JsonProperty(required = true)
private String location;
/**
* Resource tags.
*/
private Map tags;
/**
* Get the location value.
*
* @return the location value
*/
public String location() {
return this.location;
}
/**
* 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.
*
* @return the tags value
*/
public Map getTags() {
return this.tags;
}
/**
* Set the tags value.
*
* @param tags the tags value to set
* @return the resource itself
*/
public Resource withTags(Map tags) {
this.tags = tags;
return this;
}
}