com.pulumi.alicloud.eventbridge.outputs.ConnectionAuthParametersOauthParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud 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.alicloud.eventbridge.outputs;
import com.pulumi.alicloud.eventbridge.outputs.ConnectionAuthParametersOauthParametersClientParameters;
import com.pulumi.alicloud.eventbridge.outputs.ConnectionAuthParametersOauthParametersOauthHttpParameters;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ConnectionAuthParametersOauthParameters {
/**
* @return The IP address of the authorized endpoint.
*
*/
private @Nullable String authorizationEndpoint;
/**
* @return The parameters that are configured for the client. See `client_parameters` below.
*
*/
private @Nullable ConnectionAuthParametersOauthParametersClientParameters clientParameters;
/**
* @return The HTTP request method. Valid values: `GET`, `POST`, `HEAD`, `DELETE`, `PUT`, `PATCH`.
*
*/
private @Nullable String httpMethod;
/**
* @return The request parameters that are configured for OAuth authentication. See `oauth_http_parameters` below.
*
*/
private @Nullable ConnectionAuthParametersOauthParametersOauthHttpParameters oauthHttpParameters;
private ConnectionAuthParametersOauthParameters() {}
/**
* @return The IP address of the authorized endpoint.
*
*/
public Optional authorizationEndpoint() {
return Optional.ofNullable(this.authorizationEndpoint);
}
/**
* @return The parameters that are configured for the client. See `client_parameters` below.
*
*/
public Optional clientParameters() {
return Optional.ofNullable(this.clientParameters);
}
/**
* @return The HTTP request method. Valid values: `GET`, `POST`, `HEAD`, `DELETE`, `PUT`, `PATCH`.
*
*/
public Optional httpMethod() {
return Optional.ofNullable(this.httpMethod);
}
/**
* @return The request parameters that are configured for OAuth authentication. See `oauth_http_parameters` below.
*
*/
public Optional oauthHttpParameters() {
return Optional.ofNullable(this.oauthHttpParameters);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ConnectionAuthParametersOauthParameters defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String authorizationEndpoint;
private @Nullable ConnectionAuthParametersOauthParametersClientParameters clientParameters;
private @Nullable String httpMethod;
private @Nullable ConnectionAuthParametersOauthParametersOauthHttpParameters oauthHttpParameters;
public Builder() {}
public Builder(ConnectionAuthParametersOauthParameters defaults) {
Objects.requireNonNull(defaults);
this.authorizationEndpoint = defaults.authorizationEndpoint;
this.clientParameters = defaults.clientParameters;
this.httpMethod = defaults.httpMethod;
this.oauthHttpParameters = defaults.oauthHttpParameters;
}
@CustomType.Setter
public Builder authorizationEndpoint(@Nullable String authorizationEndpoint) {
this.authorizationEndpoint = authorizationEndpoint;
return this;
}
@CustomType.Setter
public Builder clientParameters(@Nullable ConnectionAuthParametersOauthParametersClientParameters clientParameters) {
this.clientParameters = clientParameters;
return this;
}
@CustomType.Setter
public Builder httpMethod(@Nullable String httpMethod) {
this.httpMethod = httpMethod;
return this;
}
@CustomType.Setter
public Builder oauthHttpParameters(@Nullable ConnectionAuthParametersOauthParametersOauthHttpParameters oauthHttpParameters) {
this.oauthHttpParameters = oauthHttpParameters;
return this;
}
public ConnectionAuthParametersOauthParameters build() {
final var _resultValue = new ConnectionAuthParametersOauthParameters();
_resultValue.authorizationEndpoint = authorizationEndpoint;
_resultValue.clientParameters = clientParameters;
_resultValue.httpMethod = httpMethod;
_resultValue.oauthHttpParameters = oauthHttpParameters;
return _resultValue;
}
}
}