
com.pulumi.azurenative.apimanagement.outputs.BackendCredentialsContractResponse 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.azurenative.apimanagement.outputs;
import com.pulumi.azurenative.apimanagement.outputs.BackendAuthorizationHeaderCredentialsResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class BackendCredentialsContractResponse {
/**
* @return Authorization header authentication
*
*/
private @Nullable BackendAuthorizationHeaderCredentialsResponse authorization;
/**
* @return List of Client Certificate Thumbprints. Will be ignored if certificatesIds are provided.
*
*/
private @Nullable List certificate;
/**
* @return List of Client Certificate Ids.
*
*/
private @Nullable List certificateIds;
/**
* @return Header Parameter description.
*
*/
private @Nullable Map> header;
/**
* @return Query Parameter description.
*
*/
private @Nullable Map> query;
private BackendCredentialsContractResponse() {}
/**
* @return Authorization header authentication
*
*/
public Optional authorization() {
return Optional.ofNullable(this.authorization);
}
/**
* @return List of Client Certificate Thumbprints. Will be ignored if certificatesIds are provided.
*
*/
public List certificate() {
return this.certificate == null ? List.of() : this.certificate;
}
/**
* @return List of Client Certificate Ids.
*
*/
public List certificateIds() {
return this.certificateIds == null ? List.of() : this.certificateIds;
}
/**
* @return Header Parameter description.
*
*/
public Map> header() {
return this.header == null ? Map.of() : this.header;
}
/**
* @return Query Parameter description.
*
*/
public Map> query() {
return this.query == null ? Map.of() : this.query;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(BackendCredentialsContractResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable BackendAuthorizationHeaderCredentialsResponse authorization;
private @Nullable List certificate;
private @Nullable List certificateIds;
private @Nullable Map> header;
private @Nullable Map> query;
public Builder() {}
public Builder(BackendCredentialsContractResponse defaults) {
Objects.requireNonNull(defaults);
this.authorization = defaults.authorization;
this.certificate = defaults.certificate;
this.certificateIds = defaults.certificateIds;
this.header = defaults.header;
this.query = defaults.query;
}
@CustomType.Setter
public Builder authorization(@Nullable BackendAuthorizationHeaderCredentialsResponse authorization) {
this.authorization = authorization;
return this;
}
@CustomType.Setter
public Builder certificate(@Nullable List certificate) {
this.certificate = certificate;
return this;
}
public Builder certificate(String... certificate) {
return certificate(List.of(certificate));
}
@CustomType.Setter
public Builder certificateIds(@Nullable List certificateIds) {
this.certificateIds = certificateIds;
return this;
}
public Builder certificateIds(String... certificateIds) {
return certificateIds(List.of(certificateIds));
}
@CustomType.Setter
public Builder header(@Nullable Map> header) {
this.header = header;
return this;
}
@CustomType.Setter
public Builder query(@Nullable Map> query) {
this.query = query;
return this;
}
public BackendCredentialsContractResponse build() {
final var _resultValue = new BackendCredentialsContractResponse();
_resultValue.authorization = authorization;
_resultValue.certificate = certificate;
_resultValue.certificateIds = certificateIds;
_resultValue.header = header;
_resultValue.query = query;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy