com.ovhcloud.pulumi.ovh.CloudProject.outputs.ContainerRegistryPlan Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-ovh Show documentation
Show all versions of pulumi-ovh Show documentation
A Pulumi package for creating and managing OVH resources.
// *** 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.ovhcloud.pulumi.ovh.CloudProject.outputs;
import com.ovhcloud.pulumi.ovh.CloudProject.outputs.ContainerRegistryPlanFeature;
import com.ovhcloud.pulumi.ovh.CloudProject.outputs.ContainerRegistryPlanRegistryLimit;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ContainerRegistryPlan {
/**
* @return Plan code from the catalog
*
*/
private @Nullable String code;
/**
* @return Plan creation date
*
*/
private @Nullable String createdAt;
/**
* @return Features of the plan
*
*/
private @Nullable List features;
/**
* @return Plan ID
*
*/
private @Nullable String id;
/**
* @return Registry name
*
*/
private @Nullable String name;
/**
* @return Container registry limits
*
*/
private @Nullable List registryLimits;
/**
* @return Registry last update date
*
*/
private @Nullable String updatedAt;
private ContainerRegistryPlan() {}
/**
* @return Plan code from the catalog
*
*/
public Optional code() {
return Optional.ofNullable(this.code);
}
/**
* @return Plan creation date
*
*/
public Optional createdAt() {
return Optional.ofNullable(this.createdAt);
}
/**
* @return Features of the plan
*
*/
public List features() {
return this.features == null ? List.of() : this.features;
}
/**
* @return Plan ID
*
*/
public Optional id() {
return Optional.ofNullable(this.id);
}
/**
* @return Registry name
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return Container registry limits
*
*/
public List registryLimits() {
return this.registryLimits == null ? List.of() : this.registryLimits;
}
/**
* @return Registry last update date
*
*/
public Optional updatedAt() {
return Optional.ofNullable(this.updatedAt);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ContainerRegistryPlan defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String code;
private @Nullable String createdAt;
private @Nullable List features;
private @Nullable String id;
private @Nullable String name;
private @Nullable List registryLimits;
private @Nullable String updatedAt;
public Builder() {}
public Builder(ContainerRegistryPlan defaults) {
Objects.requireNonNull(defaults);
this.code = defaults.code;
this.createdAt = defaults.createdAt;
this.features = defaults.features;
this.id = defaults.id;
this.name = defaults.name;
this.registryLimits = defaults.registryLimits;
this.updatedAt = defaults.updatedAt;
}
@CustomType.Setter
public Builder code(@Nullable String code) {
this.code = code;
return this;
}
@CustomType.Setter
public Builder createdAt(@Nullable String createdAt) {
this.createdAt = createdAt;
return this;
}
@CustomType.Setter
public Builder features(@Nullable List features) {
this.features = features;
return this;
}
public Builder features(ContainerRegistryPlanFeature... features) {
return features(List.of(features));
}
@CustomType.Setter
public Builder id(@Nullable String id) {
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder registryLimits(@Nullable List registryLimits) {
this.registryLimits = registryLimits;
return this;
}
public Builder registryLimits(ContainerRegistryPlanRegistryLimit... registryLimits) {
return registryLimits(List.of(registryLimits));
}
@CustomType.Setter
public Builder updatedAt(@Nullable String updatedAt) {
this.updatedAt = updatedAt;
return this;
}
public ContainerRegistryPlan build() {
final var _resultValue = new ContainerRegistryPlan();
_resultValue.code = code;
_resultValue.createdAt = createdAt;
_resultValue.features = features;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.registryLimits = registryLimits;
_resultValue.updatedAt = updatedAt;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy