
com.pulumi.azurenative.awsconnector.outputs.FunctionAssociationResponse 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.awsconnector.outputs;
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 FunctionAssociationResponse {
/**
* @return The event type of the function, either ``viewer-request`` or ``viewer-response``. You cannot use origin-facing event types (``origin-request`` and ``origin-response``) with a CloudFront function.
*
*/
private @Nullable String eventType;
/**
* @return The Amazon Resource Name (ARN) of the function.
*
*/
private @Nullable String functionARN;
private FunctionAssociationResponse() {}
/**
* @return The event type of the function, either ``viewer-request`` or ``viewer-response``. You cannot use origin-facing event types (``origin-request`` and ``origin-response``) with a CloudFront function.
*
*/
public Optional eventType() {
return Optional.ofNullable(this.eventType);
}
/**
* @return The Amazon Resource Name (ARN) of the function.
*
*/
public Optional functionARN() {
return Optional.ofNullable(this.functionARN);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(FunctionAssociationResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String eventType;
private @Nullable String functionARN;
public Builder() {}
public Builder(FunctionAssociationResponse defaults) {
Objects.requireNonNull(defaults);
this.eventType = defaults.eventType;
this.functionARN = defaults.functionARN;
}
@CustomType.Setter
public Builder eventType(@Nullable String eventType) {
this.eventType = eventType;
return this;
}
@CustomType.Setter
public Builder functionARN(@Nullable String functionARN) {
this.functionARN = functionARN;
return this;
}
public FunctionAssociationResponse build() {
final var _resultValue = new FunctionAssociationResponse();
_resultValue.eventType = eventType;
_resultValue.functionARN = functionARN;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy