
com.azure.resourcemanager.netapp.models.PlacementKeyValuePairs 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.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Application specific parameters for the placement of volumes in the volume group.
*/
@Fluent
public final class PlacementKeyValuePairs {
/*
* Key for an application specific parameter for the placement of volumes in the volume group
*/
@JsonProperty(value = "key", required = true)
private String key;
/*
* Value for an application specific parameter for the placement of volumes in the volume group
*/
@JsonProperty(value = "value", required = true)
private String value;
/**
* Creates an instance of PlacementKeyValuePairs class.
*/
public PlacementKeyValuePairs() {
}
/**
* Get the key property: Key for an application specific parameter for the placement of volumes in the volume
* group.
*
* @return the key value.
*/
public String key() {
return this.key;
}
/**
* Set the key property: Key for an application specific parameter for the placement of volumes in the volume
* group.
*
* @param key the key value to set.
* @return the PlacementKeyValuePairs object itself.
*/
public PlacementKeyValuePairs withKey(String key) {
this.key = key;
return this;
}
/**
* Get the value property: Value for an application specific parameter for the placement of volumes in the volume
* group.
*
* @return the value value.
*/
public String value() {
return this.value;
}
/**
* Set the value property: Value for an application specific parameter for the placement of volumes in the volume
* group.
*
* @param value the value value to set.
* @return the PlacementKeyValuePairs object itself.
*/
public PlacementKeyValuePairs withValue(String value) {
this.value = value;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (key() == null) {
throw LOGGER.logExceptionAsError(
new IllegalArgumentException("Missing required property key in model PlacementKeyValuePairs"));
}
if (value() == null) {
throw LOGGER.logExceptionAsError(
new IllegalArgumentException("Missing required property value in model PlacementKeyValuePairs"));
}
}
private static final ClientLogger LOGGER = new ClientLogger(PlacementKeyValuePairs.class);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy