
com.pulumi.azurenative.security.outputs.TargetBranchConfigurationResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure 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.azurenative.security.outputs;
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 TargetBranchConfigurationResponse {
/**
* @return Configuration of PR Annotations on default branch.
*
* Enabled - PR Annotations are enabled on the resource's default branch.
* Disabled - PR Annotations are disabled on the resource's default branch.
*
*/
private @Nullable String annotateDefaultBranch;
/**
* @return Gets or sets branches that should have annotations.
*
*/
private @Nullable List branchNames;
private TargetBranchConfigurationResponse() {}
/**
* @return Configuration of PR Annotations on default branch.
*
* Enabled - PR Annotations are enabled on the resource's default branch.
* Disabled - PR Annotations are disabled on the resource's default branch.
*
*/
public Optional annotateDefaultBranch() {
return Optional.ofNullable(this.annotateDefaultBranch);
}
/**
* @return Gets or sets branches that should have annotations.
*
*/
public List branchNames() {
return this.branchNames == null ? List.of() : this.branchNames;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(TargetBranchConfigurationResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String annotateDefaultBranch;
private @Nullable List branchNames;
public Builder() {}
public Builder(TargetBranchConfigurationResponse defaults) {
Objects.requireNonNull(defaults);
this.annotateDefaultBranch = defaults.annotateDefaultBranch;
this.branchNames = defaults.branchNames;
}
@CustomType.Setter
public Builder annotateDefaultBranch(@Nullable String annotateDefaultBranch) {
this.annotateDefaultBranch = annotateDefaultBranch;
return this;
}
@CustomType.Setter
public Builder branchNames(@Nullable List branchNames) {
this.branchNames = branchNames;
return this;
}
public Builder branchNames(String... branchNames) {
return branchNames(List.of(branchNames));
}
public TargetBranchConfigurationResponse build() {
final var _resultValue = new TargetBranchConfigurationResponse();
_resultValue.annotateDefaultBranch = annotateDefaultBranch;
_resultValue.branchNames = branchNames;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy