com.pulumi.aws.cloudwatch.outputs.EventTargetHttpTarget 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.aws.cloudwatch.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class EventTargetHttpTarget {
/**
* @return Enables you to specify HTTP headers to add to the request.
*
*/
private @Nullable Map headerParameters;
/**
* @return The list of values that correspond sequentially to any path variables in your endpoint ARN (for example `arn:aws:execute-api:us-east-1:123456:myapi/*/POST/pets/*`).
*
*/
private @Nullable List pathParameterValues;
/**
* @return Represents keys/values of query string parameters that are appended to the invoked endpoint.
*
*/
private @Nullable Map queryStringParameters;
private EventTargetHttpTarget() {}
/**
* @return Enables you to specify HTTP headers to add to the request.
*
*/
public Map headerParameters() {
return this.headerParameters == null ? Map.of() : this.headerParameters;
}
/**
* @return The list of values that correspond sequentially to any path variables in your endpoint ARN (for example `arn:aws:execute-api:us-east-1:123456:myapi/*/POST/pets/*`).
*
*/
public List pathParameterValues() {
return this.pathParameterValues == null ? List.of() : this.pathParameterValues;
}
/**
* @return Represents keys/values of query string parameters that are appended to the invoked endpoint.
*
*/
public Map queryStringParameters() {
return this.queryStringParameters == null ? Map.of() : this.queryStringParameters;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(EventTargetHttpTarget defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Map headerParameters;
private @Nullable List pathParameterValues;
private @Nullable Map queryStringParameters;
public Builder() {}
public Builder(EventTargetHttpTarget defaults) {
Objects.requireNonNull(defaults);
this.headerParameters = defaults.headerParameters;
this.pathParameterValues = defaults.pathParameterValues;
this.queryStringParameters = defaults.queryStringParameters;
}
@CustomType.Setter
public Builder headerParameters(@Nullable Map headerParameters) {
this.headerParameters = headerParameters;
return this;
}
@CustomType.Setter
public Builder pathParameterValues(@Nullable List pathParameterValues) {
this.pathParameterValues = pathParameterValues;
return this;
}
public Builder pathParameterValues(String... pathParameterValues) {
return pathParameterValues(List.of(pathParameterValues));
}
@CustomType.Setter
public Builder queryStringParameters(@Nullable Map queryStringParameters) {
this.queryStringParameters = queryStringParameters;
return this;
}
public EventTargetHttpTarget build() {
final var _resultValue = new EventTargetHttpTarget();
_resultValue.headerParameters = headerParameters;
_resultValue.pathParameterValues = pathParameterValues;
_resultValue.queryStringParameters = queryStringParameters;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy