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

com.pulumi.azurenative.securityinsights.outputs.RepositoryResourceInfoResponse Maven / Gradle / Ivy

There is a newer version: 2.72.0
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.securityinsights.outputs;

import com.pulumi.azurenative.securityinsights.outputs.AzureDevOpsResourceInfoResponse;
import com.pulumi.azurenative.securityinsights.outputs.GitHubResourceInfoResponse;
import com.pulumi.azurenative.securityinsights.outputs.WebhookResponse;
import com.pulumi.core.annotations.CustomType;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class RepositoryResourceInfoResponse {
    /**
     * @return Resources created in Azure DevOps for this source-control.
     * 
     */
    private @Nullable AzureDevOpsResourceInfoResponse azureDevOpsResourceInfo;
    /**
     * @return Resources created in GitHub for this source-control.
     * 
     */
    private @Nullable GitHubResourceInfoResponse gitHubResourceInfo;
    /**
     * @return The webhook object created for the source-control.
     * 
     */
    private @Nullable WebhookResponse webhook;

    private RepositoryResourceInfoResponse() {}
    /**
     * @return Resources created in Azure DevOps for this source-control.
     * 
     */
    public Optional azureDevOpsResourceInfo() {
        return Optional.ofNullable(this.azureDevOpsResourceInfo);
    }
    /**
     * @return Resources created in GitHub for this source-control.
     * 
     */
    public Optional gitHubResourceInfo() {
        return Optional.ofNullable(this.gitHubResourceInfo);
    }
    /**
     * @return The webhook object created for the source-control.
     * 
     */
    public Optional webhook() {
        return Optional.ofNullable(this.webhook);
    }

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

    public static Builder builder(RepositoryResourceInfoResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable AzureDevOpsResourceInfoResponse azureDevOpsResourceInfo;
        private @Nullable GitHubResourceInfoResponse gitHubResourceInfo;
        private @Nullable WebhookResponse webhook;
        public Builder() {}
        public Builder(RepositoryResourceInfoResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.azureDevOpsResourceInfo = defaults.azureDevOpsResourceInfo;
    	      this.gitHubResourceInfo = defaults.gitHubResourceInfo;
    	      this.webhook = defaults.webhook;
        }

        @CustomType.Setter
        public Builder azureDevOpsResourceInfo(@Nullable AzureDevOpsResourceInfoResponse azureDevOpsResourceInfo) {

            this.azureDevOpsResourceInfo = azureDevOpsResourceInfo;
            return this;
        }
        @CustomType.Setter
        public Builder gitHubResourceInfo(@Nullable GitHubResourceInfoResponse gitHubResourceInfo) {

            this.gitHubResourceInfo = gitHubResourceInfo;
            return this;
        }
        @CustomType.Setter
        public Builder webhook(@Nullable WebhookResponse webhook) {

            this.webhook = webhook;
            return this;
        }
        public RepositoryResourceInfoResponse build() {
            final var _resultValue = new RepositoryResourceInfoResponse();
            _resultValue.azureDevOpsResourceInfo = azureDevOpsResourceInfo;
            _resultValue.gitHubResourceInfo = gitHubResourceInfo;
            _resultValue.webhook = webhook;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy