
com.pulumi.azurenative.devcenter.outputs.GetScheduleResult Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.devcenter.outputs;
import com.pulumi.azurenative.devcenter.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetScheduleResult {
/**
* @return The frequency of this scheduled task.
*
*/
private String frequency;
/**
* @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*
*/
private String id;
/**
* @return The name of the resource
*
*/
private String name;
/**
* @return The provisioning state of the resource.
*
*/
private String provisioningState;
/**
* @return Indicates whether or not this scheduled task is enabled.
*
*/
private @Nullable String state;
/**
* @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
*/
private SystemDataResponse systemData;
/**
* @return The target time to trigger the action. The format is HH:MM.
*
*/
private String time;
/**
* @return The IANA timezone id at which the schedule should execute.
*
*/
private String timeZone;
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
private String type;
private GetScheduleResult() {}
/**
* @return The frequency of this scheduled task.
*
*/
public String frequency() {
return this.frequency;
}
/**
* @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*
*/
public String id() {
return this.id;
}
/**
* @return The name of the resource
*
*/
public String name() {
return this.name;
}
/**
* @return The provisioning state of the resource.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return Indicates whether or not this scheduled task is enabled.
*
*/
public Optional state() {
return Optional.ofNullable(this.state);
}
/**
* @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
*/
public SystemDataResponse systemData() {
return this.systemData;
}
/**
* @return The target time to trigger the action. The format is HH:MM.
*
*/
public String time() {
return this.time;
}
/**
* @return The IANA timezone id at which the schedule should execute.
*
*/
public String timeZone() {
return this.timeZone;
}
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetScheduleResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String frequency;
private String id;
private String name;
private String provisioningState;
private @Nullable String state;
private SystemDataResponse systemData;
private String time;
private String timeZone;
private String type;
public Builder() {}
public Builder(GetScheduleResult defaults) {
Objects.requireNonNull(defaults);
this.frequency = defaults.frequency;
this.id = defaults.id;
this.name = defaults.name;
this.provisioningState = defaults.provisioningState;
this.state = defaults.state;
this.systemData = defaults.systemData;
this.time = defaults.time;
this.timeZone = defaults.timeZone;
this.type = defaults.type;
}
@CustomType.Setter
public Builder frequency(String frequency) {
if (frequency == null) {
throw new MissingRequiredPropertyException("GetScheduleResult", "frequency");
}
this.frequency = frequency;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetScheduleResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetScheduleResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetScheduleResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder state(@Nullable String state) {
this.state = state;
return this;
}
@CustomType.Setter
public Builder systemData(SystemDataResponse systemData) {
if (systemData == null) {
throw new MissingRequiredPropertyException("GetScheduleResult", "systemData");
}
this.systemData = systemData;
return this;
}
@CustomType.Setter
public Builder time(String time) {
if (time == null) {
throw new MissingRequiredPropertyException("GetScheduleResult", "time");
}
this.time = time;
return this;
}
@CustomType.Setter
public Builder timeZone(String timeZone) {
if (timeZone == null) {
throw new MissingRequiredPropertyException("GetScheduleResult", "timeZone");
}
this.timeZone = timeZone;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetScheduleResult", "type");
}
this.type = type;
return this;
}
public GetScheduleResult build() {
final var _resultValue = new GetScheduleResult();
_resultValue.frequency = frequency;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.provisioningState = provisioningState;
_resultValue.state = state;
_resultValue.systemData = systemData;
_resultValue.time = time;
_resultValue.timeZone = timeZone;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy