com.ovhcloud.pulumi.ovh.Hosting.outputs.GetPrivateDatabaseAllowlistResult 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.Hosting.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetPrivateDatabaseAllowlistResult {
/**
* @return Creation date of the database
*
*/
private String creationDate;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
private @Nullable String ip;
/**
* @return The last update date of this whitelist
*
*/
private String lastUpdate;
/**
* @return Custom name for your Whitelisted IP
*
*/
private String name;
/**
* @return Authorize this IP to access service port
*
*/
private Boolean service;
private String serviceName;
/**
* @return Authorize this IP to access SFTP port
*
*/
private Boolean sftp;
/**
* @return Whitelist status
*
*/
private String status;
private GetPrivateDatabaseAllowlistResult() {}
/**
* @return Creation date of the database
*
*/
public String creationDate() {
return this.creationDate;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
public Optional ip() {
return Optional.ofNullable(this.ip);
}
/**
* @return The last update date of this whitelist
*
*/
public String lastUpdate() {
return this.lastUpdate;
}
/**
* @return Custom name for your Whitelisted IP
*
*/
public String name() {
return this.name;
}
/**
* @return Authorize this IP to access service port
*
*/
public Boolean service() {
return this.service;
}
public String serviceName() {
return this.serviceName;
}
/**
* @return Authorize this IP to access SFTP port
*
*/
public Boolean sftp() {
return this.sftp;
}
/**
* @return Whitelist status
*
*/
public String status() {
return this.status;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetPrivateDatabaseAllowlistResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String creationDate;
private String id;
private @Nullable String ip;
private String lastUpdate;
private String name;
private Boolean service;
private String serviceName;
private Boolean sftp;
private String status;
public Builder() {}
public Builder(GetPrivateDatabaseAllowlistResult defaults) {
Objects.requireNonNull(defaults);
this.creationDate = defaults.creationDate;
this.id = defaults.id;
this.ip = defaults.ip;
this.lastUpdate = defaults.lastUpdate;
this.name = defaults.name;
this.service = defaults.service;
this.serviceName = defaults.serviceName;
this.sftp = defaults.sftp;
this.status = defaults.status;
}
@CustomType.Setter
public Builder creationDate(String creationDate) {
if (creationDate == null) {
throw new MissingRequiredPropertyException("GetPrivateDatabaseAllowlistResult", "creationDate");
}
this.creationDate = creationDate;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetPrivateDatabaseAllowlistResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder ip(@Nullable String ip) {
this.ip = ip;
return this;
}
@CustomType.Setter
public Builder lastUpdate(String lastUpdate) {
if (lastUpdate == null) {
throw new MissingRequiredPropertyException("GetPrivateDatabaseAllowlistResult", "lastUpdate");
}
this.lastUpdate = lastUpdate;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetPrivateDatabaseAllowlistResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder service(Boolean service) {
if (service == null) {
throw new MissingRequiredPropertyException("GetPrivateDatabaseAllowlistResult", "service");
}
this.service = service;
return this;
}
@CustomType.Setter
public Builder serviceName(String serviceName) {
if (serviceName == null) {
throw new MissingRequiredPropertyException("GetPrivateDatabaseAllowlistResult", "serviceName");
}
this.serviceName = serviceName;
return this;
}
@CustomType.Setter
public Builder sftp(Boolean sftp) {
if (sftp == null) {
throw new MissingRequiredPropertyException("GetPrivateDatabaseAllowlistResult", "sftp");
}
this.sftp = sftp;
return this;
}
@CustomType.Setter
public Builder status(String status) {
if (status == null) {
throw new MissingRequiredPropertyException("GetPrivateDatabaseAllowlistResult", "status");
}
this.status = status;
return this;
}
public GetPrivateDatabaseAllowlistResult build() {
final var _resultValue = new GetPrivateDatabaseAllowlistResult();
_resultValue.creationDate = creationDate;
_resultValue.id = id;
_resultValue.ip = ip;
_resultValue.lastUpdate = lastUpdate;
_resultValue.name = name;
_resultValue.service = service;
_resultValue.serviceName = serviceName;
_resultValue.sftp = sftp;
_resultValue.status = status;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy