com.pulumi.github.outputs.GetCodespacesOrganizationSecretsSecret Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of github Show documentation
Show all versions of github Show documentation
A Pulumi package for creating and managing github 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.github.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetCodespacesOrganizationSecretsSecret {
/**
* @return Timestamp of the secret creation
*
*/
private String createdAt;
/**
* @return Secret name
*
*/
private String name;
/**
* @return Timestamp of the secret last update
*
*/
private String updatedAt;
/**
* @return Secret visibility
*
*/
private String visibility;
private GetCodespacesOrganizationSecretsSecret() {}
/**
* @return Timestamp of the secret creation
*
*/
public String createdAt() {
return this.createdAt;
}
/**
* @return Secret name
*
*/
public String name() {
return this.name;
}
/**
* @return Timestamp of the secret last update
*
*/
public String updatedAt() {
return this.updatedAt;
}
/**
* @return Secret visibility
*
*/
public String visibility() {
return this.visibility;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetCodespacesOrganizationSecretsSecret defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String createdAt;
private String name;
private String updatedAt;
private String visibility;
public Builder() {}
public Builder(GetCodespacesOrganizationSecretsSecret defaults) {
Objects.requireNonNull(defaults);
this.createdAt = defaults.createdAt;
this.name = defaults.name;
this.updatedAt = defaults.updatedAt;
this.visibility = defaults.visibility;
}
@CustomType.Setter
public Builder createdAt(String createdAt) {
if (createdAt == null) {
throw new MissingRequiredPropertyException("GetCodespacesOrganizationSecretsSecret", "createdAt");
}
this.createdAt = createdAt;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetCodespacesOrganizationSecretsSecret", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder updatedAt(String updatedAt) {
if (updatedAt == null) {
throw new MissingRequiredPropertyException("GetCodespacesOrganizationSecretsSecret", "updatedAt");
}
this.updatedAt = updatedAt;
return this;
}
@CustomType.Setter
public Builder visibility(String visibility) {
if (visibility == null) {
throw new MissingRequiredPropertyException("GetCodespacesOrganizationSecretsSecret", "visibility");
}
this.visibility = visibility;
return this;
}
public GetCodespacesOrganizationSecretsSecret build() {
final var _resultValue = new GetCodespacesOrganizationSecretsSecret();
_resultValue.createdAt = createdAt;
_resultValue.name = name;
_resultValue.updatedAt = updatedAt;
_resultValue.visibility = visibility;
return _resultValue;
}
}
}