com.azure.resourcemanager.automation.models.Sku Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-automation Show documentation
Show all versions of azure-resourcemanager-automation Show documentation
This package contains Microsoft Azure SDK for Automation Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Automation Client. Package tag package-2019-06.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.automation.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The account SKU. */
@Fluent
public final class Sku {
@JsonIgnore private final ClientLogger logger = new ClientLogger(Sku.class);
/*
* Gets or sets the SKU name of the account.
*/
@JsonProperty(value = "name", required = true)
private SkuNameEnum name;
/*
* Gets or sets the SKU family.
*/
@JsonProperty(value = "family")
private String family;
/*
* Gets or sets the SKU capacity.
*/
@JsonProperty(value = "capacity")
private Integer capacity;
/**
* Get the name property: Gets or sets the SKU name of the account.
*
* @return the name value.
*/
public SkuNameEnum name() {
return this.name;
}
/**
* Set the name property: Gets or sets the SKU name of the account.
*
* @param name the name value to set.
* @return the Sku object itself.
*/
public Sku withName(SkuNameEnum name) {
this.name = name;
return this;
}
/**
* Get the family property: Gets or sets the SKU family.
*
* @return the family value.
*/
public String family() {
return this.family;
}
/**
* Set the family property: Gets or sets the SKU family.
*
* @param family the family value to set.
* @return the Sku object itself.
*/
public Sku withFamily(String family) {
this.family = family;
return this;
}
/**
* Get the capacity property: Gets or sets the SKU capacity.
*
* @return the capacity value.
*/
public Integer capacity() {
return this.capacity;
}
/**
* Set the capacity property: Gets or sets the SKU capacity.
*
* @param capacity the capacity value to set.
* @return the Sku object itself.
*/
public Sku withCapacity(Integer capacity) {
this.capacity = capacity;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (name() == null) {
throw logger
.logExceptionAsError(new IllegalArgumentException("Missing required property name in model Sku"));
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy