com.azure.resourcemanager.managementgroups.models.CheckNameAvailabilityRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-managementgroups Show documentation
Show all versions of azure-resourcemanager-managementgroups Show documentation
This package contains Microsoft Azure SDK for ManagementGroups Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Azure Management Groups API enables consolidation of multiple
subscriptions/resources into an organizational hierarchy and centrally
manage access control, policies, alerting and reporting for those resources.
. Package tag package-2021-04.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.managementgroups.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Management group name availability check parameters. */
@Fluent
public final class CheckNameAvailabilityRequest {
/*
* the name to check for availability
*/
@JsonProperty(value = "name")
private String name;
/*
* fully qualified resource type which includes provider namespace
*/
@JsonProperty(value = "type")
private Type type;
/** Creates an instance of CheckNameAvailabilityRequest class. */
public CheckNameAvailabilityRequest() {
}
/**
* Get the name property: the name to check for availability.
*
* @return the name value.
*/
public String name() {
return this.name;
}
/**
* Set the name property: the name to check for availability.
*
* @param name the name value to set.
* @return the CheckNameAvailabilityRequest object itself.
*/
public CheckNameAvailabilityRequest withName(String name) {
this.name = name;
return this;
}
/**
* Get the type property: fully qualified resource type which includes provider namespace.
*
* @return the type value.
*/
public Type type() {
return this.type;
}
/**
* Set the type property: fully qualified resource type which includes provider namespace.
*
* @param type the type value to set.
* @return the CheckNameAvailabilityRequest object itself.
*/
public CheckNameAvailabilityRequest withType(Type type) {
this.type = type;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}