com.azure.resourcemanager.costmanagement.models.ExportDeliveryInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-costmanagement Show documentation
Show all versions of azure-resourcemanager-costmanagement Show documentation
This package contains Microsoft Azure SDK for CostManagement Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. CostManagement management client provides access to CostManagement resources for Azure Enterprise Subscriptions. Package tag package-2022-10.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.costmanagement.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The delivery information associated with a export. */
@Fluent
public final class ExportDeliveryInfo {
@JsonIgnore private final ClientLogger logger = new ClientLogger(ExportDeliveryInfo.class);
/*
* Has destination for the export being delivered.
*/
@JsonProperty(value = "destination", required = true)
private ExportDeliveryDestination destination;
/**
* Get the destination property: Has destination for the export being delivered.
*
* @return the destination value.
*/
public ExportDeliveryDestination destination() {
return this.destination;
}
/**
* Set the destination property: Has destination for the export being delivered.
*
* @param destination the destination value to set.
* @return the ExportDeliveryInfo object itself.
*/
public ExportDeliveryInfo withDestination(ExportDeliveryDestination destination) {
this.destination = destination;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (destination() == null) {
throw logger
.logExceptionAsError(
new IllegalArgumentException("Missing required property destination in model ExportDeliveryInfo"));
} else {
destination().validate();
}
}
}