com.microsoft.azure.arm.dag.VoidIndexable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-arm-client-runtime Show documentation
Show all versions of azure-arm-client-runtime Show documentation
This package contains the ARM runtime for AutoRest generated Azure Java clients.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure.arm.dag;
import com.microsoft.azure.arm.model.Indexable;
import java.util.Objects;
/**
* Represents an index-able model, when used as return type of a method,
* it indicates invocation of the method may cause side-effect but does
* not produce a value.
*/
public final class VoidIndexable implements Indexable {
/**
* The key.
*/
private final String key;
/**
* Creates VoidIndexable.
*
* @param key the key.
*/
public VoidIndexable(String key) {
Objects.requireNonNull(key);
this.key = key;
}
@Override
public String key() {
return this.key;
}
}