
com.pulumi.aws.iot.outputs.TopicRuleHttp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud 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.aws.iot.outputs;
import com.pulumi.aws.iot.outputs.TopicRuleHttpHttpHeader;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class TopicRuleHttp {
/**
* @return The HTTPS URL used to verify ownership of `url`.
*
*/
private @Nullable String confirmationUrl;
/**
* @return Custom HTTP header IoT Core should send. It is possible to define more than one custom header.
*
*/
private @Nullable List httpHeaders;
/**
* @return The HTTPS URL.
*
*/
private String url;
private TopicRuleHttp() {}
/**
* @return The HTTPS URL used to verify ownership of `url`.
*
*/
public Optional confirmationUrl() {
return Optional.ofNullable(this.confirmationUrl);
}
/**
* @return Custom HTTP header IoT Core should send. It is possible to define more than one custom header.
*
*/
public List httpHeaders() {
return this.httpHeaders == null ? List.of() : this.httpHeaders;
}
/**
* @return The HTTPS URL.
*
*/
public String url() {
return this.url;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(TopicRuleHttp defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String confirmationUrl;
private @Nullable List httpHeaders;
private String url;
public Builder() {}
public Builder(TopicRuleHttp defaults) {
Objects.requireNonNull(defaults);
this.confirmationUrl = defaults.confirmationUrl;
this.httpHeaders = defaults.httpHeaders;
this.url = defaults.url;
}
@CustomType.Setter
public Builder confirmationUrl(@Nullable String confirmationUrl) {
this.confirmationUrl = confirmationUrl;
return this;
}
@CustomType.Setter
public Builder httpHeaders(@Nullable List httpHeaders) {
this.httpHeaders = httpHeaders;
return this;
}
public Builder httpHeaders(TopicRuleHttpHttpHeader... httpHeaders) {
return httpHeaders(List.of(httpHeaders));
}
@CustomType.Setter
public Builder url(String url) {
if (url == null) {
throw new MissingRequiredPropertyException("TopicRuleHttp", "url");
}
this.url = url;
return this;
}
public TopicRuleHttp build() {
final var _resultValue = new TopicRuleHttp();
_resultValue.confirmationUrl = confirmationUrl;
_resultValue.httpHeaders = httpHeaders;
_resultValue.url = url;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy