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

com.pulumi.azurenative.migrate.outputs.GetSqlCollectorOperationResult Maven / Gradle / Ivy

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

import com.pulumi.azurenative.migrate.outputs.CollectorAgentPropertiesBaseResponse;
import com.pulumi.azurenative.migrate.outputs.SystemDataResponse;
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 GetSqlCollectorOperationResult {
    /**
     * @return Gets or sets the collector agent properties.
     * 
     */
    private @Nullable CollectorAgentPropertiesBaseResponse agentProperties;
    /**
     * @return Gets the Timestamp when collector was created.
     * 
     */
    private String createdTimestamp;
    /**
     * @return Gets the discovery site id.
     * 
     */
    private @Nullable String discoverySiteId;
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    private String id;
    /**
     * @return The name of the resource
     * 
     */
    private String name;
    /**
     * @return The status of the last operation.
     * 
     */
    private @Nullable String provisioningState;
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    private String type;
    /**
     * @return Timestamp when collector was last updated.
     * 
     */
    private String updatedTimestamp;

    private GetSqlCollectorOperationResult() {}
    /**
     * @return Gets or sets the collector agent properties.
     * 
     */
    public Optional agentProperties() {
        return Optional.ofNullable(this.agentProperties);
    }
    /**
     * @return Gets the Timestamp when collector was created.
     * 
     */
    public String createdTimestamp() {
        return this.createdTimestamp;
    }
    /**
     * @return Gets the discovery site id.
     * 
     */
    public Optional discoverySiteId() {
        return Optional.ofNullable(this.discoverySiteId);
    }
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The name of the resource
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The status of the last operation.
     * 
     */
    public Optional provisioningState() {
        return Optional.ofNullable(this.provisioningState);
    }
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return Timestamp when collector was last updated.
     * 
     */
    public String updatedTimestamp() {
        return this.updatedTimestamp;
    }

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

    public static Builder builder(GetSqlCollectorOperationResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable CollectorAgentPropertiesBaseResponse agentProperties;
        private String createdTimestamp;
        private @Nullable String discoverySiteId;
        private String id;
        private String name;
        private @Nullable String provisioningState;
        private SystemDataResponse systemData;
        private String type;
        private String updatedTimestamp;
        public Builder() {}
        public Builder(GetSqlCollectorOperationResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.agentProperties = defaults.agentProperties;
    	      this.createdTimestamp = defaults.createdTimestamp;
    	      this.discoverySiteId = defaults.discoverySiteId;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.provisioningState = defaults.provisioningState;
    	      this.systemData = defaults.systemData;
    	      this.type = defaults.type;
    	      this.updatedTimestamp = defaults.updatedTimestamp;
        }

        @CustomType.Setter
        public Builder agentProperties(@Nullable CollectorAgentPropertiesBaseResponse agentProperties) {

            this.agentProperties = agentProperties;
            return this;
        }
        @CustomType.Setter
        public Builder createdTimestamp(String createdTimestamp) {
            if (createdTimestamp == null) {
              throw new MissingRequiredPropertyException("GetSqlCollectorOperationResult", "createdTimestamp");
            }
            this.createdTimestamp = createdTimestamp;
            return this;
        }
        @CustomType.Setter
        public Builder discoverySiteId(@Nullable String discoverySiteId) {

            this.discoverySiteId = discoverySiteId;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetSqlCollectorOperationResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetSqlCollectorOperationResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(@Nullable String provisioningState) {

            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetSqlCollectorOperationResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetSqlCollectorOperationResult", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder updatedTimestamp(String updatedTimestamp) {
            if (updatedTimestamp == null) {
              throw new MissingRequiredPropertyException("GetSqlCollectorOperationResult", "updatedTimestamp");
            }
            this.updatedTimestamp = updatedTimestamp;
            return this;
        }
        public GetSqlCollectorOperationResult build() {
            final var _resultValue = new GetSqlCollectorOperationResult();
            _resultValue.agentProperties = agentProperties;
            _resultValue.createdTimestamp = createdTimestamp;
            _resultValue.discoverySiteId = discoverySiteId;
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.provisioningState = provisioningState;
            _resultValue.systemData = systemData;
            _resultValue.type = type;
            _resultValue.updatedTimestamp = updatedTimestamp;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy