
com.azure.resourcemanager.billing.implementation.SavingsPlanModelImpl Maven / Gradle / Ivy
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.billing.implementation;
import com.azure.core.management.SystemData;
import com.azure.resourcemanager.billing.fluent.models.SavingsPlanModelInner;
import com.azure.resourcemanager.billing.models.AppliedScopeProperties;
import com.azure.resourcemanager.billing.models.AppliedScopeType;
import com.azure.resourcemanager.billing.models.BillingPlan;
import com.azure.resourcemanager.billing.models.Commitment;
import com.azure.resourcemanager.billing.models.ExtendedStatusInfo;
import com.azure.resourcemanager.billing.models.ProvisioningState;
import com.azure.resourcemanager.billing.models.RenewProperties;
import com.azure.resourcemanager.billing.models.SavingsPlanModel;
import com.azure.resourcemanager.billing.models.SavingsPlanTerm;
import com.azure.resourcemanager.billing.models.Sku;
import com.azure.resourcemanager.billing.models.Utilization;
import java.time.OffsetDateTime;
import java.util.Collections;
import java.util.Map;
public final class SavingsPlanModelImpl implements SavingsPlanModel {
private SavingsPlanModelInner innerObject;
private final com.azure.resourcemanager.billing.BillingManager serviceManager;
SavingsPlanModelImpl(SavingsPlanModelInner innerObject,
com.azure.resourcemanager.billing.BillingManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
}
public String id() {
return this.innerModel().id();
}
public String name() {
return this.innerModel().name();
}
public String type() {
return this.innerModel().type();
}
public Map tags() {
Map inner = this.innerModel().tags();
if (inner != null) {
return Collections.unmodifiableMap(inner);
} else {
return Collections.emptyMap();
}
}
public SystemData systemData() {
return this.innerModel().systemData();
}
public Sku sku() {
return this.innerModel().sku();
}
public String displayName() {
return this.innerModel().displayName();
}
public ProvisioningState provisioningState() {
return this.innerModel().provisioningState();
}
public String displayProvisioningState() {
return this.innerModel().displayProvisioningState();
}
public String userFriendlyAppliedScopeType() {
return this.innerModel().userFriendlyAppliedScopeType();
}
public String billingScopeId() {
return this.innerModel().billingScopeId();
}
public String billingProfileId() {
return this.innerModel().billingProfileId();
}
public String customerId() {
return this.innerModel().customerId();
}
public String billingAccountId() {
return this.innerModel().billingAccountId();
}
public SavingsPlanTerm term() {
return this.innerModel().term();
}
public Boolean renew() {
return this.innerModel().renew();
}
public String renewSource() {
return this.innerModel().renewSource();
}
public String renewDestination() {
return this.innerModel().renewDestination();
}
public RenewProperties renewProperties() {
return this.innerModel().renewProperties();
}
public BillingPlan billingPlan() {
return this.innerModel().billingPlan();
}
public AppliedScopeType appliedScopeType() {
return this.innerModel().appliedScopeType();
}
public AppliedScopeProperties appliedScopeProperties() {
return this.innerModel().appliedScopeProperties();
}
public Commitment commitment() {
return this.innerModel().commitment();
}
public OffsetDateTime effectiveDateTime() {
return this.innerModel().effectiveDateTime();
}
public OffsetDateTime benefitStartTime() {
return this.innerModel().benefitStartTime();
}
public OffsetDateTime expiryDateTime() {
return this.innerModel().expiryDateTime();
}
public OffsetDateTime purchaseDateTime() {
return this.innerModel().purchaseDateTime();
}
public Utilization utilization() {
return this.innerModel().utilization();
}
public ExtendedStatusInfo extendedStatusInfo() {
return this.innerModel().extendedStatusInfo();
}
public String productCode() {
return this.innerModel().productCode();
}
public SavingsPlanModelInner innerModel() {
return this.innerObject;
}
private com.azure.resourcemanager.billing.BillingManager manager() {
return this.serviceManager;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy