com.azure.resourcemanager.recoveryservicesbackup.fluent.models.RecoveryPointResourceInner 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.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
import com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryPoint;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
/**
* Base class for backup copies. Workload-specific backup copies are derived from this class.
*/
@Fluent
public final class RecoveryPointResourceInner extends Resource {
/*
* RecoveryPointResource properties
*/
@JsonProperty(value = "properties")
private RecoveryPoint properties;
/*
* Optional ETag.
*/
@JsonProperty(value = "eTag")
private String etag;
/**
* Creates an instance of RecoveryPointResourceInner class.
*/
public RecoveryPointResourceInner() {
}
/**
* Get the properties property: RecoveryPointResource properties.
*
* @return the properties value.
*/
public RecoveryPoint properties() {
return this.properties;
}
/**
* Set the properties property: RecoveryPointResource properties.
*
* @param properties the properties value to set.
* @return the RecoveryPointResourceInner object itself.
*/
public RecoveryPointResourceInner withProperties(RecoveryPoint properties) {
this.properties = properties;
return this;
}
/**
* Get the etag property: Optional ETag.
*
* @return the etag value.
*/
public String etag() {
return this.etag;
}
/**
* Set the etag property: Optional ETag.
*
* @param etag the etag value to set.
* @return the RecoveryPointResourceInner object itself.
*/
public RecoveryPointResourceInner withEtag(String etag) {
this.etag = etag;
return this;
}
/**
* {@inheritDoc}
*/
@Override
public RecoveryPointResourceInner withLocation(String location) {
super.withLocation(location);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public RecoveryPointResourceInner withTags(Map tags) {
super.withTags(tags);
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (properties() != null) {
properties().validate();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy