com.pulumi.azurenative.securityinsights.outputs.RepoResponse 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.securityinsights.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 RepoResponse {
/**
* @return Array of branches.
*
*/
private @Nullable List branches;
/**
* @return The name of the repository.
*
*/
private @Nullable String fullName;
/**
* @return The url to access the repository.
*
*/
private @Nullable String url;
private RepoResponse() {}
/**
* @return Array of branches.
*
*/
public List branches() {
return this.branches == null ? List.of() : this.branches;
}
/**
* @return The name of the repository.
*
*/
public Optional fullName() {
return Optional.ofNullable(this.fullName);
}
/**
* @return The url to access the repository.
*
*/
public Optional url() {
return Optional.ofNullable(this.url);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RepoResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List branches;
private @Nullable String fullName;
private @Nullable String url;
public Builder() {}
public Builder(RepoResponse defaults) {
Objects.requireNonNull(defaults);
this.branches = defaults.branches;
this.fullName = defaults.fullName;
this.url = defaults.url;
}
@CustomType.Setter
public Builder branches(@Nullable List branches) {
this.branches = branches;
return this;
}
public Builder branches(String... branches) {
return branches(List.of(branches));
}
@CustomType.Setter
public Builder fullName(@Nullable String fullName) {
this.fullName = fullName;
return this;
}
@CustomType.Setter
public Builder url(@Nullable String url) {
this.url = url;
return this;
}
public RepoResponse build() {
final var _resultValue = new RepoResponse();
_resultValue.branches = branches;
_resultValue.fullName = fullName;
_resultValue.url = url;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy