com.pulumi.googlenative.pubsub.v1.outputs.GetSchemaResult Maven / Gradle / Ivy
// *** 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.googlenative.pubsub.v1.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetSchemaResult {
/**
* @return The definition of the schema. This should contain a string representing the full definition of the schema that is a valid schema definition of the type specified in `type`.
*
*/
private String definition;
/**
* @return Name of the schema. Format is `projects/{project}/schemas/{schema}`.
*
*/
private String name;
/**
* @return The timestamp that the revision was created.
*
*/
private String revisionCreateTime;
/**
* @return Immutable. The revision ID of the schema.
*
*/
private String revisionId;
/**
* @return The type of the schema definition.
*
*/
private String type;
private GetSchemaResult() {}
/**
* @return The definition of the schema. This should contain a string representing the full definition of the schema that is a valid schema definition of the type specified in `type`.
*
*/
public String definition() {
return this.definition;
}
/**
* @return Name of the schema. Format is `projects/{project}/schemas/{schema}`.
*
*/
public String name() {
return this.name;
}
/**
* @return The timestamp that the revision was created.
*
*/
public String revisionCreateTime() {
return this.revisionCreateTime;
}
/**
* @return Immutable. The revision ID of the schema.
*
*/
public String revisionId() {
return this.revisionId;
}
/**
* @return The type of the schema definition.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetSchemaResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String definition;
private String name;
private String revisionCreateTime;
private String revisionId;
private String type;
public Builder() {}
public Builder(GetSchemaResult defaults) {
Objects.requireNonNull(defaults);
this.definition = defaults.definition;
this.name = defaults.name;
this.revisionCreateTime = defaults.revisionCreateTime;
this.revisionId = defaults.revisionId;
this.type = defaults.type;
}
@CustomType.Setter
public Builder definition(String definition) {
this.definition = Objects.requireNonNull(definition);
return this;
}
@CustomType.Setter
public Builder name(String name) {
this.name = Objects.requireNonNull(name);
return this;
}
@CustomType.Setter
public Builder revisionCreateTime(String revisionCreateTime) {
this.revisionCreateTime = Objects.requireNonNull(revisionCreateTime);
return this;
}
@CustomType.Setter
public Builder revisionId(String revisionId) {
this.revisionId = Objects.requireNonNull(revisionId);
return this;
}
@CustomType.Setter
public Builder type(String type) {
this.type = Objects.requireNonNull(type);
return this;
}
public GetSchemaResult build() {
final var o = new GetSchemaResult();
o.definition = definition;
o.name = name;
o.revisionCreateTime = revisionCreateTime;
o.revisionId = revisionId;
o.type = type;
return o;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy