com.pulumi.azure.containerservice.outputs.KubernetesClusterMaintenanceWindow Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.containerservice.outputs;
import com.pulumi.azure.containerservice.outputs.KubernetesClusterMaintenanceWindowAllowed;
import com.pulumi.azure.containerservice.outputs.KubernetesClusterMaintenanceWindowNotAllowed;
import com.pulumi.core.annotations.CustomType;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class KubernetesClusterMaintenanceWindow {
/**
* @return One or more `allowed` blocks as defined below.
*
*/
private @Nullable List alloweds;
/**
* @return One or more `not_allowed` block as defined below.
*
*/
private @Nullable List notAlloweds;
private KubernetesClusterMaintenanceWindow() {}
/**
* @return One or more `allowed` blocks as defined below.
*
*/
public List alloweds() {
return this.alloweds == null ? List.of() : this.alloweds;
}
/**
* @return One or more `not_allowed` block as defined below.
*
*/
public List notAlloweds() {
return this.notAlloweds == null ? List.of() : this.notAlloweds;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(KubernetesClusterMaintenanceWindow defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List alloweds;
private @Nullable List notAlloweds;
public Builder() {}
public Builder(KubernetesClusterMaintenanceWindow defaults) {
Objects.requireNonNull(defaults);
this.alloweds = defaults.alloweds;
this.notAlloweds = defaults.notAlloweds;
}
@CustomType.Setter
public Builder alloweds(@Nullable List alloweds) {
this.alloweds = alloweds;
return this;
}
public Builder alloweds(KubernetesClusterMaintenanceWindowAllowed... alloweds) {
return alloweds(List.of(alloweds));
}
@CustomType.Setter
public Builder notAlloweds(@Nullable List notAlloweds) {
this.notAlloweds = notAlloweds;
return this;
}
public Builder notAlloweds(KubernetesClusterMaintenanceWindowNotAllowed... notAlloweds) {
return notAlloweds(List.of(notAlloweds));
}
public KubernetesClusterMaintenanceWindow build() {
final var _resultValue = new KubernetesClusterMaintenanceWindow();
_resultValue.alloweds = alloweds;
_resultValue.notAlloweds = notAlloweds;
return _resultValue;
}
}
}