com.pulumi.linode.inputs.GetDatabaseMysqlBackupsPlainArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of linode Show documentation
Show all versions of linode Show documentation
A Pulumi package for creating and managing linode cloud 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.pulumi.linode.inputs;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.linode.inputs.GetDatabaseMysqlBackupsFilter;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class GetDatabaseMysqlBackupsPlainArgs extends com.pulumi.resources.InvokeArgs {
public static final GetDatabaseMysqlBackupsPlainArgs Empty = new GetDatabaseMysqlBackupsPlainArgs();
/**
* The ID of the database to retrieve backups for.
*
*/
@Import(name="databaseId", required=true)
private Integer databaseId;
/**
* @return The ID of the database to retrieve backups for.
*
*/
public Integer databaseId() {
return this.databaseId;
}
@Import(name="filters")
private @Nullable List filters;
public Optional> filters() {
return Optional.ofNullable(this.filters);
}
/**
* If true, only the latest backup will be returned.
*
* * `filter` - (Optional) A set of filters used to select database backups that meet certain requirements.
*
*/
@Import(name="latest")
private @Nullable Boolean latest;
/**
* @return If true, only the latest backup will be returned.
*
* * `filter` - (Optional) A set of filters used to select database backups that meet certain requirements.
*
*/
public Optional latest() {
return Optional.ofNullable(this.latest);
}
/**
* The order in which results should be returned. (`asc`, `desc`; default `asc`)
*
*/
@Import(name="order")
private @Nullable String order;
/**
* @return The order in which results should be returned. (`asc`, `desc`; default `asc`)
*
*/
public Optional order() {
return Optional.ofNullable(this.order);
}
/**
* The attribute to order the results by. (`created`)
*
*/
@Import(name="orderBy")
private @Nullable String orderBy;
/**
* @return The attribute to order the results by. (`created`)
*
*/
public Optional orderBy() {
return Optional.ofNullable(this.orderBy);
}
private GetDatabaseMysqlBackupsPlainArgs() {}
private GetDatabaseMysqlBackupsPlainArgs(GetDatabaseMysqlBackupsPlainArgs $) {
this.databaseId = $.databaseId;
this.filters = $.filters;
this.latest = $.latest;
this.order = $.order;
this.orderBy = $.orderBy;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetDatabaseMysqlBackupsPlainArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetDatabaseMysqlBackupsPlainArgs $;
public Builder() {
$ = new GetDatabaseMysqlBackupsPlainArgs();
}
public Builder(GetDatabaseMysqlBackupsPlainArgs defaults) {
$ = new GetDatabaseMysqlBackupsPlainArgs(Objects.requireNonNull(defaults));
}
/**
* @param databaseId The ID of the database to retrieve backups for.
*
* @return builder
*
*/
public Builder databaseId(Integer databaseId) {
$.databaseId = databaseId;
return this;
}
public Builder filters(@Nullable List filters) {
$.filters = filters;
return this;
}
public Builder filters(GetDatabaseMysqlBackupsFilter... filters) {
return filters(List.of(filters));
}
/**
* @param latest If true, only the latest backup will be returned.
*
* * `filter` - (Optional) A set of filters used to select database backups that meet certain requirements.
*
* @return builder
*
*/
public Builder latest(@Nullable Boolean latest) {
$.latest = latest;
return this;
}
/**
* @param order The order in which results should be returned. (`asc`, `desc`; default `asc`)
*
* @return builder
*
*/
public Builder order(@Nullable String order) {
$.order = order;
return this;
}
/**
* @param orderBy The attribute to order the results by. (`created`)
*
* @return builder
*
*/
public Builder orderBy(@Nullable String orderBy) {
$.orderBy = orderBy;
return this;
}
public GetDatabaseMysqlBackupsPlainArgs build() {
if ($.databaseId == null) {
throw new MissingRequiredPropertyException("GetDatabaseMysqlBackupsPlainArgs", "databaseId");
}
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy