com.pulumi.googlenative.pubsub.v1beta2.outputs.OidcTokenResponse 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.v1beta2.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class OidcTokenResponse {
/**
* @return Audience to be used when generating OIDC token. The audience claim identifies the recipients that the JWT is intended for. The audience value is a single case-sensitive string. Having multiple values (array) for the audience field is not supported. More info about the OIDC JWT token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3 Note: if not specified, the Push endpoint URL will be used.
*
*/
private String audience;
/**
* @return [Service account email](https://cloud.google.com/iam/docs/service-accounts) to be used for generating the OIDC token. The caller (for CreateSubscription, UpdateSubscription, and ModifyPushConfig RPCs) must have the iam.serviceAccounts.actAs permission for the service account.
*
*/
private String serviceAccountEmail;
private OidcTokenResponse() {}
/**
* @return Audience to be used when generating OIDC token. The audience claim identifies the recipients that the JWT is intended for. The audience value is a single case-sensitive string. Having multiple values (array) for the audience field is not supported. More info about the OIDC JWT token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3 Note: if not specified, the Push endpoint URL will be used.
*
*/
public String audience() {
return this.audience;
}
/**
* @return [Service account email](https://cloud.google.com/iam/docs/service-accounts) to be used for generating the OIDC token. The caller (for CreateSubscription, UpdateSubscription, and ModifyPushConfig RPCs) must have the iam.serviceAccounts.actAs permission for the service account.
*
*/
public String serviceAccountEmail() {
return this.serviceAccountEmail;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(OidcTokenResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String audience;
private String serviceAccountEmail;
public Builder() {}
public Builder(OidcTokenResponse defaults) {
Objects.requireNonNull(defaults);
this.audience = defaults.audience;
this.serviceAccountEmail = defaults.serviceAccountEmail;
}
@CustomType.Setter
public Builder audience(String audience) {
this.audience = Objects.requireNonNull(audience);
return this;
}
@CustomType.Setter
public Builder serviceAccountEmail(String serviceAccountEmail) {
this.serviceAccountEmail = Objects.requireNonNull(serviceAccountEmail);
return this;
}
public OidcTokenResponse build() {
final var o = new OidcTokenResponse();
o.audience = audience;
o.serviceAccountEmail = serviceAccountEmail;
return o;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy