com.azure.resourcemanager.costmanagement.fluent.models.ExportInner 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.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.costmanagement.models.ExportDefinition;
import com.azure.resourcemanager.costmanagement.models.ExportDeliveryInfo;
import com.azure.resourcemanager.costmanagement.models.ExportSchedule;
import com.azure.resourcemanager.costmanagement.models.FormatType;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** A export resource. */
@Fluent
public final class ExportInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(ExportInner.class);
/*
* The properties of the export.
*/
@JsonProperty(value = "properties")
private ExportProperties innerProperties;
/*
* eTag of the resource. To handle concurrent update scenario, this field
* will be used to determine whether the user is updating the latest
* version or not.
*/
@JsonProperty(value = "eTag")
private String etag;
/**
* Get the innerProperties property: The properties of the export.
*
* @return the innerProperties value.
*/
private ExportProperties innerProperties() {
return this.innerProperties;
}
/**
* Get the etag property: eTag of the resource. To handle concurrent update scenario, this field will be used to
* determine whether the user is updating the latest version or not.
*
* @return the etag value.
*/
public String etag() {
return this.etag;
}
/**
* Set the etag property: eTag of the resource. To handle concurrent update scenario, this field will be used to
* determine whether the user is updating the latest version or not.
*
* @param etag the etag value to set.
* @return the ExportInner object itself.
*/
public ExportInner withEtag(String etag) {
this.etag = etag;
return this;
}
/**
* Get the schedule property: Has schedule information for the export.
*
* @return the schedule value.
*/
public ExportSchedule schedule() {
return this.innerProperties() == null ? null : this.innerProperties().schedule();
}
/**
* Set the schedule property: Has schedule information for the export.
*
* @param schedule the schedule value to set.
* @return the ExportInner object itself.
*/
public ExportInner withSchedule(ExportSchedule schedule) {
if (this.innerProperties() == null) {
this.innerProperties = new ExportProperties();
}
this.innerProperties().withSchedule(schedule);
return this;
}
/**
* Get the format property: The format of the export being delivered.
*
* @return the format value.
*/
public FormatType format() {
return this.innerProperties() == null ? null : this.innerProperties().format();
}
/**
* Set the format property: The format of the export being delivered.
*
* @param format the format value to set.
* @return the ExportInner object itself.
*/
public ExportInner withFormat(FormatType format) {
if (this.innerProperties() == null) {
this.innerProperties = new ExportProperties();
}
this.innerProperties().withFormat(format);
return this;
}
/**
* Get the deliveryInfo property: Has delivery information for the export.
*
* @return the deliveryInfo value.
*/
public ExportDeliveryInfo deliveryInfo() {
return this.innerProperties() == null ? null : this.innerProperties().deliveryInfo();
}
/**
* Set the deliveryInfo property: Has delivery information for the export.
*
* @param deliveryInfo the deliveryInfo value to set.
* @return the ExportInner object itself.
*/
public ExportInner withDeliveryInfo(ExportDeliveryInfo deliveryInfo) {
if (this.innerProperties() == null) {
this.innerProperties = new ExportProperties();
}
this.innerProperties().withDeliveryInfo(deliveryInfo);
return this;
}
/**
* Get the definition property: Has definition for the export.
*
* @return the definition value.
*/
public ExportDefinition definition() {
return this.innerProperties() == null ? null : this.innerProperties().definition();
}
/**
* Set the definition property: Has definition for the export.
*
* @param definition the definition value to set.
* @return the ExportInner object itself.
*/
public ExportInner withDefinition(ExportDefinition definition) {
if (this.innerProperties() == null) {
this.innerProperties = new ExportProperties();
}
this.innerProperties().withDefinition(definition);
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (innerProperties() != null) {
innerProperties().validate();
}
}
}