com.microsoft.windowsazure.core.ResourceBase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-core Show documentation
Show all versions of azure-core Show documentation
This is the core module of Microsoft Azure SDK.
/**
*
* Copyright (c) Microsoft and contributors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
// Warning: This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if the
// code is regenerated.
package com.microsoft.windowsazure.core;
import java.util.HashMap;
/**
* Resource information.
*/
public class ResourceBase {
private String location;
/**
* Required. Gets or sets the location of the resource.
* @return The Location value.
*/
public String getLocation() {
return this.location;
}
/**
* Required. Gets or sets the location of the resource.
* @param locationValue The Location value.
*/
public void setLocation(final String locationValue) {
this.location = locationValue;
}
private HashMap tags;
/**
* Optional. Gets or sets the tags attached to the resource.
* @return The Tags value.
*/
public HashMap getTags() {
return this.tags;
}
/**
* Optional. Gets or sets the tags attached to the resource.
* @param tagsValue The Tags value.
*/
public void setTags(final HashMap tagsValue) {
this.tags = tagsValue;
}
/**
* Initializes a new instance of the ResourceBase class.
*
*/
public ResourceBase() {
this.setTags(new LazyHashMap());
}
/**
* Initializes a new instance of the ResourceBase class with required
* arguments.
*
* @param location Gets or sets the location of the resource.
*/
public ResourceBase(String location) {
this();
if (location == null) {
throw new NullPointerException("location");
}
this.setLocation(location);
}
}