
com.pulumi.azurenative.security.outputs.GcpProjectDetailsResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure 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.azurenative.security.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GcpProjectDetailsResponse {
/**
* @return The GCP Project id
*
*/
private @Nullable String projectId;
/**
* @return GCP project name
*
*/
private String projectName;
/**
* @return The unique GCP Project number
*
*/
private @Nullable String projectNumber;
/**
* @return The GCP workload identity federation pool id
*
*/
private String workloadIdentityPoolId;
private GcpProjectDetailsResponse() {}
/**
* @return The GCP Project id
*
*/
public Optional projectId() {
return Optional.ofNullable(this.projectId);
}
/**
* @return GCP project name
*
*/
public String projectName() {
return this.projectName;
}
/**
* @return The unique GCP Project number
*
*/
public Optional projectNumber() {
return Optional.ofNullable(this.projectNumber);
}
/**
* @return The GCP workload identity federation pool id
*
*/
public String workloadIdentityPoolId() {
return this.workloadIdentityPoolId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GcpProjectDetailsResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String projectId;
private String projectName;
private @Nullable String projectNumber;
private String workloadIdentityPoolId;
public Builder() {}
public Builder(GcpProjectDetailsResponse defaults) {
Objects.requireNonNull(defaults);
this.projectId = defaults.projectId;
this.projectName = defaults.projectName;
this.projectNumber = defaults.projectNumber;
this.workloadIdentityPoolId = defaults.workloadIdentityPoolId;
}
@CustomType.Setter
public Builder projectId(@Nullable String projectId) {
this.projectId = projectId;
return this;
}
@CustomType.Setter
public Builder projectName(String projectName) {
if (projectName == null) {
throw new MissingRequiredPropertyException("GcpProjectDetailsResponse", "projectName");
}
this.projectName = projectName;
return this;
}
@CustomType.Setter
public Builder projectNumber(@Nullable String projectNumber) {
this.projectNumber = projectNumber;
return this;
}
@CustomType.Setter
public Builder workloadIdentityPoolId(String workloadIdentityPoolId) {
if (workloadIdentityPoolId == null) {
throw new MissingRequiredPropertyException("GcpProjectDetailsResponse", "workloadIdentityPoolId");
}
this.workloadIdentityPoolId = workloadIdentityPoolId;
return this;
}
public GcpProjectDetailsResponse build() {
final var _resultValue = new GcpProjectDetailsResponse();
_resultValue.projectId = projectId;
_resultValue.projectName = projectName;
_resultValue.projectNumber = projectNumber;
_resultValue.workloadIdentityPoolId = workloadIdentityPoolId;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy