
com.pulumi.azurenative.securityinsights.outputs.RepositoryResponse 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.azurenative.securityinsights.outputs.ContentPathMapResponse;
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 RepositoryResponse {
/**
* @return Branch name of repository.
*
*/
private @Nullable String branch;
/**
* @return Url to access repository action logs.
*
*/
private @Nullable String deploymentLogsUrl;
/**
* @return Display url of repository.
*
*/
private @Nullable String displayUrl;
/**
* @return Dictionary of source control content type and path mapping.
*
*/
private @Nullable List pathMapping;
/**
* @return Url of repository.
*
*/
private @Nullable String url;
private RepositoryResponse() {}
/**
* @return Branch name of repository.
*
*/
public Optional branch() {
return Optional.ofNullable(this.branch);
}
/**
* @return Url to access repository action logs.
*
*/
public Optional deploymentLogsUrl() {
return Optional.ofNullable(this.deploymentLogsUrl);
}
/**
* @return Display url of repository.
*
*/
public Optional displayUrl() {
return Optional.ofNullable(this.displayUrl);
}
/**
* @return Dictionary of source control content type and path mapping.
*
*/
public List pathMapping() {
return this.pathMapping == null ? List.of() : this.pathMapping;
}
/**
* @return Url of repository.
*
*/
public Optional url() {
return Optional.ofNullable(this.url);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RepositoryResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String branch;
private @Nullable String deploymentLogsUrl;
private @Nullable String displayUrl;
private @Nullable List pathMapping;
private @Nullable String url;
public Builder() {}
public Builder(RepositoryResponse defaults) {
Objects.requireNonNull(defaults);
this.branch = defaults.branch;
this.deploymentLogsUrl = defaults.deploymentLogsUrl;
this.displayUrl = defaults.displayUrl;
this.pathMapping = defaults.pathMapping;
this.url = defaults.url;
}
@CustomType.Setter
public Builder branch(@Nullable String branch) {
this.branch = branch;
return this;
}
@CustomType.Setter
public Builder deploymentLogsUrl(@Nullable String deploymentLogsUrl) {
this.deploymentLogsUrl = deploymentLogsUrl;
return this;
}
@CustomType.Setter
public Builder displayUrl(@Nullable String displayUrl) {
this.displayUrl = displayUrl;
return this;
}
@CustomType.Setter
public Builder pathMapping(@Nullable List pathMapping) {
this.pathMapping = pathMapping;
return this;
}
public Builder pathMapping(ContentPathMapResponse... pathMapping) {
return pathMapping(List.of(pathMapping));
}
@CustomType.Setter
public Builder url(@Nullable String url) {
this.url = url;
return this;
}
public RepositoryResponse build() {
final var _resultValue = new RepositoryResponse();
_resultValue.branch = branch;
_resultValue.deploymentLogsUrl = deploymentLogsUrl;
_resultValue.displayUrl = displayUrl;
_resultValue.pathMapping = pathMapping;
_resultValue.url = url;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy