
com.azure.resourcemanager.netapp.fluent.models.VolumeQuotaRuleInner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-netapp Show documentation
Show all versions of azure-resourcemanager-netapp Show documentation
This package contains Microsoft Azure SDK for NetAppFiles Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-preview-2024-07-01-preview.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.netapp.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
import com.azure.core.management.SystemData;
import com.azure.resourcemanager.netapp.models.ProvisioningState;
import com.azure.resourcemanager.netapp.models.Type;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
/**
* Quota Rule of a Volume.
*/
@Fluent
public final class VolumeQuotaRuleInner extends Resource {
/*
* Volume Quota Rule Properties
*/
@JsonProperty(value = "properties")
private VolumeQuotaRulesProperties innerProperties;
/*
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
/**
* Creates an instance of VolumeQuotaRuleInner class.
*/
public VolumeQuotaRuleInner() {
}
/**
* Get the innerProperties property: Volume Quota Rule Properties.
*
* @return the innerProperties value.
*/
private VolumeQuotaRulesProperties innerProperties() {
return this.innerProperties;
}
/**
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
* @return the systemData value.
*/
public SystemData systemData() {
return this.systemData;
}
/**
* {@inheritDoc}
*/
@Override
public VolumeQuotaRuleInner withLocation(String location) {
super.withLocation(location);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public VolumeQuotaRuleInner withTags(Map tags) {
super.withTags(tags);
return this;
}
/**
* Get the provisioningState property: Gets the status of the VolumeQuotaRule at the time the operation was called.
*
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}
/**
* Get the quotaSizeInKiBs property: Size of quota.
*
* @return the quotaSizeInKiBs value.
*/
public Long quotaSizeInKiBs() {
return this.innerProperties() == null ? null : this.innerProperties().quotaSizeInKiBs();
}
/**
* Set the quotaSizeInKiBs property: Size of quota.
*
* @param quotaSizeInKiBs the quotaSizeInKiBs value to set.
* @return the VolumeQuotaRuleInner object itself.
*/
public VolumeQuotaRuleInner withQuotaSizeInKiBs(Long quotaSizeInKiBs) {
if (this.innerProperties() == null) {
this.innerProperties = new VolumeQuotaRulesProperties();
}
this.innerProperties().withQuotaSizeInKiBs(quotaSizeInKiBs);
return this;
}
/**
* Get the quotaType property: quotaType
*
* Type of quota.
*
* @return the quotaType value.
*/
public Type quotaType() {
return this.innerProperties() == null ? null : this.innerProperties().quotaType();
}
/**
* Set the quotaType property: quotaType
*
* Type of quota.
*
* @param quotaType the quotaType value to set.
* @return the VolumeQuotaRuleInner object itself.
*/
public VolumeQuotaRuleInner withQuotaType(Type quotaType) {
if (this.innerProperties() == null) {
this.innerProperties = new VolumeQuotaRulesProperties();
}
this.innerProperties().withQuotaType(quotaType);
return this;
}
/**
* Get the quotaTarget property: UserID/GroupID/SID based on the quota target type. UserID and groupID can be found
* by running ‘id’ or ‘getent’ command for the user or group and SID can be found by running <wmic useraccount
* where name='user-name' get sid>.
*
* @return the quotaTarget value.
*/
public String quotaTarget() {
return this.innerProperties() == null ? null : this.innerProperties().quotaTarget();
}
/**
* Set the quotaTarget property: UserID/GroupID/SID based on the quota target type. UserID and groupID can be found
* by running ‘id’ or ‘getent’ command for the user or group and SID can be found by running <wmic useraccount
* where name='user-name' get sid>.
*
* @param quotaTarget the quotaTarget value to set.
* @return the VolumeQuotaRuleInner object itself.
*/
public VolumeQuotaRuleInner withQuotaTarget(String quotaTarget) {
if (this.innerProperties() == null) {
this.innerProperties = new VolumeQuotaRulesProperties();
}
this.innerProperties().withQuotaTarget(quotaTarget);
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (innerProperties() != null) {
innerProperties().validate();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy