All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.containerregistry.outputs.SourcePropertiesResponse Maven / Gradle / Ivy

There is a newer version: 2.89.2
Show newest version
// *** 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.containerregistry.outputs;

import com.pulumi.azurenative.containerregistry.outputs.AuthInfoResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class SourcePropertiesResponse {
    /**
     * @return The branch name of the source code.
     * 
     */
    private @Nullable String branch;
    /**
     * @return The full URL to the source code repository
     * 
     */
    private String repositoryUrl;
    /**
     * @return The authorization properties for accessing the source code repository and to set up
     * webhooks for notifications.
     * 
     */
    private @Nullable AuthInfoResponse sourceControlAuthProperties;
    /**
     * @return The type of source control service.
     * 
     */
    private String sourceControlType;

    private SourcePropertiesResponse() {}
    /**
     * @return The branch name of the source code.
     * 
     */
    public Optional branch() {
        return Optional.ofNullable(this.branch);
    }
    /**
     * @return The full URL to the source code repository
     * 
     */
    public String repositoryUrl() {
        return this.repositoryUrl;
    }
    /**
     * @return The authorization properties for accessing the source code repository and to set up
     * webhooks for notifications.
     * 
     */
    public Optional sourceControlAuthProperties() {
        return Optional.ofNullable(this.sourceControlAuthProperties);
    }
    /**
     * @return The type of source control service.
     * 
     */
    public String sourceControlType() {
        return this.sourceControlType;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(SourcePropertiesResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String branch;
        private String repositoryUrl;
        private @Nullable AuthInfoResponse sourceControlAuthProperties;
        private String sourceControlType;
        public Builder() {}
        public Builder(SourcePropertiesResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.branch = defaults.branch;
    	      this.repositoryUrl = defaults.repositoryUrl;
    	      this.sourceControlAuthProperties = defaults.sourceControlAuthProperties;
    	      this.sourceControlType = defaults.sourceControlType;
        }

        @CustomType.Setter
        public Builder branch(@Nullable String branch) {

            this.branch = branch;
            return this;
        }
        @CustomType.Setter
        public Builder repositoryUrl(String repositoryUrl) {
            if (repositoryUrl == null) {
              throw new MissingRequiredPropertyException("SourcePropertiesResponse", "repositoryUrl");
            }
            this.repositoryUrl = repositoryUrl;
            return this;
        }
        @CustomType.Setter
        public Builder sourceControlAuthProperties(@Nullable AuthInfoResponse sourceControlAuthProperties) {

            this.sourceControlAuthProperties = sourceControlAuthProperties;
            return this;
        }
        @CustomType.Setter
        public Builder sourceControlType(String sourceControlType) {
            if (sourceControlType == null) {
              throw new MissingRequiredPropertyException("SourcePropertiesResponse", "sourceControlType");
            }
            this.sourceControlType = sourceControlType;
            return this;
        }
        public SourcePropertiesResponse build() {
            final var _resultValue = new SourcePropertiesResponse();
            _resultValue.branch = branch;
            _resultValue.repositoryUrl = repositoryUrl;
            _resultValue.sourceControlAuthProperties = sourceControlAuthProperties;
            _resultValue.sourceControlType = sourceControlType;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy