com.azure.resourcemanager.compute.implementation.VirtualMachineOfferImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-compute Show documentation
Show all versions of azure-resourcemanager-compute Show documentation
This package contains Microsoft Azure Compute Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.resourcemanager.compute.implementation;
import com.azure.resourcemanager.compute.models.VirtualMachineOffer;
import com.azure.resourcemanager.compute.models.VirtualMachinePublisher;
import com.azure.resourcemanager.compute.models.VirtualMachineSkus;
import com.azure.resourcemanager.compute.fluent.VirtualMachineImagesClient;
import com.azure.core.management.Region;
/** The implementation for {@link VirtualMachineOffer}. */
class VirtualMachineOfferImpl implements VirtualMachineOffer {
private final VirtualMachinePublisher publisher;
private final String offerName;
private final VirtualMachineSkusImpl skus;
VirtualMachineOfferImpl(VirtualMachinePublisher publisher, String offer, VirtualMachineImagesClient client) {
this.publisher = publisher;
this.offerName = offer;
this.skus = new VirtualMachineSkusImpl(this, client);
}
@Override
public Region region() {
return publisher.region();
}
@Override
public VirtualMachinePublisher publisher() {
return publisher;
}
@Override
public String name() {
return this.offerName;
}
@Override
public VirtualMachineSkus skus() {
return this.skus;
}
}