GenericResourceExpandedInner.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.resources.fluent.models;
import com.azure.core.annotation.Immutable;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/** Resource information. */
@Immutable
public final class GenericResourceExpandedInner extends GenericResourceInner {
@JsonIgnore private final ClientLogger logger = new ClientLogger(GenericResourceExpandedInner.class);
/*
* The created time of the resource. This is only present if requested via
* the $expand query parameter.
*/
@JsonProperty(value = "createdTime", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime createdTime;
/*
* The changed time of the resource. This is only present if requested via
* the $expand query parameter.
*/
@JsonProperty(value = "changedTime", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime changedTime;
/*
* The provisioning state of the resource. This is only present if
* requested via the $expand query parameter.
*/
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private String provisioningState;
/**
* Get the createdTime property: The created time of the resource. This is only present if requested via the $expand
* query parameter.
*
* @return the createdTime value.
*/
public OffsetDateTime createdTime() {
return this.createdTime;
}
/**
* Get the changedTime property: The changed time of the resource. This is only present if requested via the $expand
* query parameter.
*
* @return the changedTime value.
*/
public OffsetDateTime changedTime() {
return this.changedTime;
}
/**
* Get the provisioningState property: The provisioning state of the resource. This is only present if requested via
* the $expand query parameter.
*
* @return the provisioningState value.
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
@Override
public void validate() {
super.validate();
}
}