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

com.pulumi.azurenative.security.outputs.GitHubOwnerPropertiesResponse Maven / Gradle / Ivy

// *** 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 com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GitHubOwnerPropertiesResponse {
    /**
     * @return Gets or sets internal GitHub id.
     * 
     */
    private String gitHubInternalId;
    /**
     * @return Details about resource onboarding status across all connectors.
     * 
     * OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources.
     * Onboarded - this resource has already been onboarded by the specified connector.
     * NotOnboarded - this resource has not been onboarded to any connector.
     * NotApplicable - the onboarding state is not applicable to the current endpoint.
     * 
     */
    private @Nullable String onboardingState;
    /**
     * @return Gets or sets GitHub Owner url.
     * 
     */
    private String ownerUrl;
    /**
     * @return The provisioning state of the resource.
     * 
     * Pending - Provisioning pending.
     * Failed - Provisioning failed.
     * Succeeded - Successful provisioning.
     * Canceled - Provisioning canceled.
     * PendingDeletion - Deletion pending.
     * DeletionSuccess - Deletion successful.
     * DeletionFailure - Deletion failure.
     * 
     */
    private @Nullable String provisioningState;
    /**
     * @return Gets or sets resource status message.
     * 
     */
    private String provisioningStatusMessage;
    /**
     * @return Gets or sets time when resource was last checked.
     * 
     */
    private String provisioningStatusUpdateTimeUtc;

    private GitHubOwnerPropertiesResponse() {}
    /**
     * @return Gets or sets internal GitHub id.
     * 
     */
    public String gitHubInternalId() {
        return this.gitHubInternalId;
    }
    /**
     * @return Details about resource onboarding status across all connectors.
     * 
     * OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources.
     * Onboarded - this resource has already been onboarded by the specified connector.
     * NotOnboarded - this resource has not been onboarded to any connector.
     * NotApplicable - the onboarding state is not applicable to the current endpoint.
     * 
     */
    public Optional onboardingState() {
        return Optional.ofNullable(this.onboardingState);
    }
    /**
     * @return Gets or sets GitHub Owner url.
     * 
     */
    public String ownerUrl() {
        return this.ownerUrl;
    }
    /**
     * @return The provisioning state of the resource.
     * 
     * Pending - Provisioning pending.
     * Failed - Provisioning failed.
     * Succeeded - Successful provisioning.
     * Canceled - Provisioning canceled.
     * PendingDeletion - Deletion pending.
     * DeletionSuccess - Deletion successful.
     * DeletionFailure - Deletion failure.
     * 
     */
    public Optional provisioningState() {
        return Optional.ofNullable(this.provisioningState);
    }
    /**
     * @return Gets or sets resource status message.
     * 
     */
    public String provisioningStatusMessage() {
        return this.provisioningStatusMessage;
    }
    /**
     * @return Gets or sets time when resource was last checked.
     * 
     */
    public String provisioningStatusUpdateTimeUtc() {
        return this.provisioningStatusUpdateTimeUtc;
    }

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

    public static Builder builder(GitHubOwnerPropertiesResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String gitHubInternalId;
        private @Nullable String onboardingState;
        private String ownerUrl;
        private @Nullable String provisioningState;
        private String provisioningStatusMessage;
        private String provisioningStatusUpdateTimeUtc;
        public Builder() {}
        public Builder(GitHubOwnerPropertiesResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.gitHubInternalId = defaults.gitHubInternalId;
    	      this.onboardingState = defaults.onboardingState;
    	      this.ownerUrl = defaults.ownerUrl;
    	      this.provisioningState = defaults.provisioningState;
    	      this.provisioningStatusMessage = defaults.provisioningStatusMessage;
    	      this.provisioningStatusUpdateTimeUtc = defaults.provisioningStatusUpdateTimeUtc;
        }

        @CustomType.Setter
        public Builder gitHubInternalId(String gitHubInternalId) {
            if (gitHubInternalId == null) {
              throw new MissingRequiredPropertyException("GitHubOwnerPropertiesResponse", "gitHubInternalId");
            }
            this.gitHubInternalId = gitHubInternalId;
            return this;
        }
        @CustomType.Setter
        public Builder onboardingState(@Nullable String onboardingState) {

            this.onboardingState = onboardingState;
            return this;
        }
        @CustomType.Setter
        public Builder ownerUrl(String ownerUrl) {
            if (ownerUrl == null) {
              throw new MissingRequiredPropertyException("GitHubOwnerPropertiesResponse", "ownerUrl");
            }
            this.ownerUrl = ownerUrl;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(@Nullable String provisioningState) {

            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningStatusMessage(String provisioningStatusMessage) {
            if (provisioningStatusMessage == null) {
              throw new MissingRequiredPropertyException("GitHubOwnerPropertiesResponse", "provisioningStatusMessage");
            }
            this.provisioningStatusMessage = provisioningStatusMessage;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningStatusUpdateTimeUtc(String provisioningStatusUpdateTimeUtc) {
            if (provisioningStatusUpdateTimeUtc == null) {
              throw new MissingRequiredPropertyException("GitHubOwnerPropertiesResponse", "provisioningStatusUpdateTimeUtc");
            }
            this.provisioningStatusUpdateTimeUtc = provisioningStatusUpdateTimeUtc;
            return this;
        }
        public GitHubOwnerPropertiesResponse build() {
            final var _resultValue = new GitHubOwnerPropertiesResponse();
            _resultValue.gitHubInternalId = gitHubInternalId;
            _resultValue.onboardingState = onboardingState;
            _resultValue.ownerUrl = ownerUrl;
            _resultValue.provisioningState = provisioningState;
            _resultValue.provisioningStatusMessage = provisioningStatusMessage;
            _resultValue.provisioningStatusUpdateTimeUtc = provisioningStatusUpdateTimeUtc;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy