com.pulumi.azurenative.workloads.outputs.LogSchedulePolicyResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
The newest version!
// *** 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.workloads.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class LogSchedulePolicyResponse {
/**
* @return Frequency of the log schedule operation of this policy in minutes.
*
*/
private @Nullable Integer scheduleFrequencyInMins;
/**
* @return This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.
* Expected value is 'LogSchedulePolicy'.
*
*/
private String schedulePolicyType;
private LogSchedulePolicyResponse() {}
/**
* @return Frequency of the log schedule operation of this policy in minutes.
*
*/
public Optional scheduleFrequencyInMins() {
return Optional.ofNullable(this.scheduleFrequencyInMins);
}
/**
* @return This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.
* Expected value is 'LogSchedulePolicy'.
*
*/
public String schedulePolicyType() {
return this.schedulePolicyType;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(LogSchedulePolicyResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer scheduleFrequencyInMins;
private String schedulePolicyType;
public Builder() {}
public Builder(LogSchedulePolicyResponse defaults) {
Objects.requireNonNull(defaults);
this.scheduleFrequencyInMins = defaults.scheduleFrequencyInMins;
this.schedulePolicyType = defaults.schedulePolicyType;
}
@CustomType.Setter
public Builder scheduleFrequencyInMins(@Nullable Integer scheduleFrequencyInMins) {
this.scheduleFrequencyInMins = scheduleFrequencyInMins;
return this;
}
@CustomType.Setter
public Builder schedulePolicyType(String schedulePolicyType) {
if (schedulePolicyType == null) {
throw new MissingRequiredPropertyException("LogSchedulePolicyResponse", "schedulePolicyType");
}
this.schedulePolicyType = schedulePolicyType;
return this;
}
public LogSchedulePolicyResponse build() {
final var _resultValue = new LogSchedulePolicyResponse();
_resultValue.scheduleFrequencyInMins = scheduleFrequencyInMins;
_resultValue.schedulePolicyType = schedulePolicyType;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy