com.pulumi.azure.eventhub.outputs.GetSasResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.eventhub.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetSasResult {
private String connectionString;
private String expiry;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return The computed Event Hub Shared Access Signature (SAS).
*
*/
private String sas;
private GetSasResult() {}
public String connectionString() {
return this.connectionString;
}
public String expiry() {
return this.expiry;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return The computed Event Hub Shared Access Signature (SAS).
*
*/
public String sas() {
return this.sas;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetSasResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String connectionString;
private String expiry;
private String id;
private String sas;
public Builder() {}
public Builder(GetSasResult defaults) {
Objects.requireNonNull(defaults);
this.connectionString = defaults.connectionString;
this.expiry = defaults.expiry;
this.id = defaults.id;
this.sas = defaults.sas;
}
@CustomType.Setter
public Builder connectionString(String connectionString) {
if (connectionString == null) {
throw new MissingRequiredPropertyException("GetSasResult", "connectionString");
}
this.connectionString = connectionString;
return this;
}
@CustomType.Setter
public Builder expiry(String expiry) {
if (expiry == null) {
throw new MissingRequiredPropertyException("GetSasResult", "expiry");
}
this.expiry = expiry;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetSasResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder sas(String sas) {
if (sas == null) {
throw new MissingRequiredPropertyException("GetSasResult", "sas");
}
this.sas = sas;
return this;
}
public GetSasResult build() {
final var _resultValue = new GetSasResult();
_resultValue.connectionString = connectionString;
_resultValue.expiry = expiry;
_resultValue.id = id;
_resultValue.sas = sas;
return _resultValue;
}
}
}