com.azure.resourcemanager.recoveryservicesbackup.models.TieringCostSavingInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-recoveryservicesbackup Show documentation
Show all versions of azure-resourcemanager-recoveryservicesbackup Show documentation
This package contains Microsoft Azure SDK for RecoveryServicesBackup Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Open API 2.0 Specs for Azure RecoveryServices Backup service. Package tag package-2024-04.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.recoveryservicesbackup.models;
import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.recoveryservicesbackup.fluent.models.TieringCostInfoInner;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* Response parameters for tiering cost info for savings.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "objectType")
@JsonTypeName("TieringCostSavingInfo")
@Fluent
public final class TieringCostSavingInfo extends TieringCostInfoInner {
/*
* Source tier size reduction in bytes after moving all the recommended backup points to target tier
*/
@JsonProperty(value = "sourceTierSizeReductionInBytes", required = true)
private long sourceTierSizeReductionInBytes;
/*
* Target tier size increase in bytes after moving all the recommended backup points to target tier
*/
@JsonProperty(value = "targetTierSizeIncreaseInBytes", required = true)
private long targetTierSizeIncreaseInBytes;
/*
* Source tier retail cost per GB per month
*/
@JsonProperty(value = "retailSourceTierCostPerGBPerMonth", required = true)
private double retailSourceTierCostPerGBPerMonth;
/*
* Target tier retail cost per GB per month
*/
@JsonProperty(value = "retailTargetTierCostPerGBPerMonth", required = true)
private double retailTargetTierCostPerGBPerMonth;
/**
* Creates an instance of TieringCostSavingInfo class.
*/
public TieringCostSavingInfo() {
}
/**
* Get the sourceTierSizeReductionInBytes property: Source tier size reduction in bytes after moving all the
* recommended backup points to target tier.
*
* @return the sourceTierSizeReductionInBytes value.
*/
public long sourceTierSizeReductionInBytes() {
return this.sourceTierSizeReductionInBytes;
}
/**
* Set the sourceTierSizeReductionInBytes property: Source tier size reduction in bytes after moving all the
* recommended backup points to target tier.
*
* @param sourceTierSizeReductionInBytes the sourceTierSizeReductionInBytes value to set.
* @return the TieringCostSavingInfo object itself.
*/
public TieringCostSavingInfo withSourceTierSizeReductionInBytes(long sourceTierSizeReductionInBytes) {
this.sourceTierSizeReductionInBytes = sourceTierSizeReductionInBytes;
return this;
}
/**
* Get the targetTierSizeIncreaseInBytes property: Target tier size increase in bytes after moving all the
* recommended backup points to target tier.
*
* @return the targetTierSizeIncreaseInBytes value.
*/
public long targetTierSizeIncreaseInBytes() {
return this.targetTierSizeIncreaseInBytes;
}
/**
* Set the targetTierSizeIncreaseInBytes property: Target tier size increase in bytes after moving all the
* recommended backup points to target tier.
*
* @param targetTierSizeIncreaseInBytes the targetTierSizeIncreaseInBytes value to set.
* @return the TieringCostSavingInfo object itself.
*/
public TieringCostSavingInfo withTargetTierSizeIncreaseInBytes(long targetTierSizeIncreaseInBytes) {
this.targetTierSizeIncreaseInBytes = targetTierSizeIncreaseInBytes;
return this;
}
/**
* Get the retailSourceTierCostPerGBPerMonth property: Source tier retail cost per GB per month.
*
* @return the retailSourceTierCostPerGBPerMonth value.
*/
public double retailSourceTierCostPerGBPerMonth() {
return this.retailSourceTierCostPerGBPerMonth;
}
/**
* Set the retailSourceTierCostPerGBPerMonth property: Source tier retail cost per GB per month.
*
* @param retailSourceTierCostPerGBPerMonth the retailSourceTierCostPerGBPerMonth value to set.
* @return the TieringCostSavingInfo object itself.
*/
public TieringCostSavingInfo withRetailSourceTierCostPerGBPerMonth(double retailSourceTierCostPerGBPerMonth) {
this.retailSourceTierCostPerGBPerMonth = retailSourceTierCostPerGBPerMonth;
return this;
}
/**
* Get the retailTargetTierCostPerGBPerMonth property: Target tier retail cost per GB per month.
*
* @return the retailTargetTierCostPerGBPerMonth value.
*/
public double retailTargetTierCostPerGBPerMonth() {
return this.retailTargetTierCostPerGBPerMonth;
}
/**
* Set the retailTargetTierCostPerGBPerMonth property: Target tier retail cost per GB per month.
*
* @param retailTargetTierCostPerGBPerMonth the retailTargetTierCostPerGBPerMonth value to set.
* @return the TieringCostSavingInfo object itself.
*/
public TieringCostSavingInfo withRetailTargetTierCostPerGBPerMonth(double retailTargetTierCostPerGBPerMonth) {
this.retailTargetTierCostPerGBPerMonth = retailTargetTierCostPerGBPerMonth;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
@Override
public void validate() {
super.validate();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy