
com.pulumi.azurenative.awsconnector.outputs.AwsCloudFrontDistributionPropertiesResponse 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.azurenative.awsconnector.outputs.DistributionConfigResponse;
import com.pulumi.azurenative.awsconnector.outputs.TagResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class AwsCloudFrontDistributionPropertiesResponse {
/**
* @return The distribution's configuration. A distribution configuration.
*
*/
private @Nullable DistributionConfigResponse distributionConfig;
/**
* @return Property domainName
*
*/
private @Nullable String domainName;
/**
* @return Property id
*
*/
private @Nullable String id;
/**
* @return A complex type that contains zero or more ``Tag`` elements.
*
*/
private @Nullable List tags;
private AwsCloudFrontDistributionPropertiesResponse() {}
/**
* @return The distribution's configuration. A distribution configuration.
*
*/
public Optional distributionConfig() {
return Optional.ofNullable(this.distributionConfig);
}
/**
* @return Property domainName
*
*/
public Optional domainName() {
return Optional.ofNullable(this.domainName);
}
/**
* @return Property id
*
*/
public Optional id() {
return Optional.ofNullable(this.id);
}
/**
* @return A complex type that contains zero or more ``Tag`` elements.
*
*/
public List tags() {
return this.tags == null ? List.of() : this.tags;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AwsCloudFrontDistributionPropertiesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable DistributionConfigResponse distributionConfig;
private @Nullable String domainName;
private @Nullable String id;
private @Nullable List tags;
public Builder() {}
public Builder(AwsCloudFrontDistributionPropertiesResponse defaults) {
Objects.requireNonNull(defaults);
this.distributionConfig = defaults.distributionConfig;
this.domainName = defaults.domainName;
this.id = defaults.id;
this.tags = defaults.tags;
}
@CustomType.Setter
public Builder distributionConfig(@Nullable DistributionConfigResponse distributionConfig) {
this.distributionConfig = distributionConfig;
return this;
}
@CustomType.Setter
public Builder domainName(@Nullable String domainName) {
this.domainName = domainName;
return this;
}
@CustomType.Setter
public Builder id(@Nullable String id) {
this.id = id;
return this;
}
@CustomType.Setter
public Builder tags(@Nullable List tags) {
this.tags = tags;
return this;
}
public Builder tags(TagResponse... tags) {
return tags(List.of(tags));
}
public AwsCloudFrontDistributionPropertiesResponse build() {
final var _resultValue = new AwsCloudFrontDistributionPropertiesResponse();
_resultValue.distributionConfig = distributionConfig;
_resultValue.domainName = domainName;
_resultValue.id = id;
_resultValue.tags = tags;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy