com.microsoft.windowsazure.management.models.AffinityGroupCreateParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-svc-mgmt Show documentation
Show all versions of azure-svc-mgmt Show documentation
This package contains Microsoft Azure Management 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.management.models;
/**
* Parameters supplied to the Create Affinity Group operation.
*/
public class AffinityGroupCreateParameters {
private String description;
/**
* Optional. A description for the affinity group. The description can be up
* to 1024 characters in length.
* @return The Description value.
*/
public String getDescription() {
return this.description;
}
/**
* Optional. A description for the affinity group. The description can be up
* to 1024 characters in length.
* @param descriptionValue The Description value.
*/
public void setDescription(final String descriptionValue) {
this.description = descriptionValue;
}
private String label;
/**
* Required. A base-64-encoded name for the affinity group. The name can be
* up to 100 characters in length. Its value defaults to the Name of the
* affinity group if not provided.
* @return The Label value.
*/
public String getLabel() {
if (this.label == null) {
return this.getName();
} else {
return this.label;
}
}
/**
* Required. A base-64-encoded name for the affinity group. The name can be
* up to 100 characters in length. Its value defaults to the Name of the
* affinity group if not provided.
* @param labelValue The Label value.
*/
public void setLabel(final String labelValue) {
this.label = labelValue;
}
private String location;
/**
* Required. The data center location where the affinity group will be
* created. To list available locations, see the List Locations operation.
* @return The Location value.
*/
public String getLocation() {
return this.location;
}
/**
* Required. The data center location where the affinity group will be
* created. To list available locations, see the List Locations operation.
* @param locationValue The Location value.
*/
public void setLocation(final String locationValue) {
this.location = locationValue;
}
private String name;
/**
* Required. A name for the affinity group that is unique to the
* subscription.
* @return The Name value.
*/
public String getName() {
return this.name;
}
/**
* Required. A name for the affinity group that is unique to the
* subscription.
* @param nameValue The Name value.
*/
public void setName(final String nameValue) {
this.name = nameValue;
}
/**
* Initializes a new instance of the AffinityGroupCreateParameters class.
*
*/
public AffinityGroupCreateParameters() {
}
/**
* Initializes a new instance of the AffinityGroupCreateParameters class
* with required arguments.
*
* @param name A name for the affinity group that is unique to the
* subscription.
* @param label A base-64-encoded name for the affinity group. The name can
* be up to 100 characters in length. Its value defaults to the Name of the
* affinity group if not provided.
* @param location The data center location where the affinity group will be
* created. To list available locations, see the List Locations operation.
*/
public AffinityGroupCreateParameters(String name, String label, String location) {
if (name == null) {
throw new NullPointerException("name");
}
if (label == null) {
throw new NullPointerException("label");
}
if (location == null) {
throw new NullPointerException("location");
}
this.setName(name);
this.setLabel(label);
this.setLocation(location);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy