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

com.pulumi.azurenative.sql.outputs.GetSyncAgentResult 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.sql.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetSyncAgentResult {
    /**
     * @return Expiration time of the sync agent version.
     * 
     */
    private String expiryTime;
    /**
     * @return Resource ID.
     * 
     */
    private String id;
    /**
     * @return If the sync agent version is up to date.
     * 
     */
    private Boolean isUpToDate;
    /**
     * @return Last alive time of the sync agent.
     * 
     */
    private String lastAliveTime;
    /**
     * @return Resource name.
     * 
     */
    private String name;
    /**
     * @return State of the sync agent.
     * 
     */
    private String state;
    /**
     * @return ARM resource id of the sync database in the sync agent.
     * 
     */
    private @Nullable String syncDatabaseId;
    /**
     * @return Resource type.
     * 
     */
    private String type;
    /**
     * @return Version of the sync agent.
     * 
     */
    private String version;

    private GetSyncAgentResult() {}
    /**
     * @return Expiration time of the sync agent version.
     * 
     */
    public String expiryTime() {
        return this.expiryTime;
    }
    /**
     * @return Resource ID.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return If the sync agent version is up to date.
     * 
     */
    public Boolean isUpToDate() {
        return this.isUpToDate;
    }
    /**
     * @return Last alive time of the sync agent.
     * 
     */
    public String lastAliveTime() {
        return this.lastAliveTime;
    }
    /**
     * @return Resource name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return State of the sync agent.
     * 
     */
    public String state() {
        return this.state;
    }
    /**
     * @return ARM resource id of the sync database in the sync agent.
     * 
     */
    public Optional syncDatabaseId() {
        return Optional.ofNullable(this.syncDatabaseId);
    }
    /**
     * @return Resource type.
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return Version of the sync agent.
     * 
     */
    public String version() {
        return this.version;
    }

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

    public static Builder builder(GetSyncAgentResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String expiryTime;
        private String id;
        private Boolean isUpToDate;
        private String lastAliveTime;
        private String name;
        private String state;
        private @Nullable String syncDatabaseId;
        private String type;
        private String version;
        public Builder() {}
        public Builder(GetSyncAgentResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.expiryTime = defaults.expiryTime;
    	      this.id = defaults.id;
    	      this.isUpToDate = defaults.isUpToDate;
    	      this.lastAliveTime = defaults.lastAliveTime;
    	      this.name = defaults.name;
    	      this.state = defaults.state;
    	      this.syncDatabaseId = defaults.syncDatabaseId;
    	      this.type = defaults.type;
    	      this.version = defaults.version;
        }

        @CustomType.Setter
        public Builder expiryTime(String expiryTime) {
            if (expiryTime == null) {
              throw new MissingRequiredPropertyException("GetSyncAgentResult", "expiryTime");
            }
            this.expiryTime = expiryTime;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetSyncAgentResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder isUpToDate(Boolean isUpToDate) {
            if (isUpToDate == null) {
              throw new MissingRequiredPropertyException("GetSyncAgentResult", "isUpToDate");
            }
            this.isUpToDate = isUpToDate;
            return this;
        }
        @CustomType.Setter
        public Builder lastAliveTime(String lastAliveTime) {
            if (lastAliveTime == null) {
              throw new MissingRequiredPropertyException("GetSyncAgentResult", "lastAliveTime");
            }
            this.lastAliveTime = lastAliveTime;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetSyncAgentResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder state(String state) {
            if (state == null) {
              throw new MissingRequiredPropertyException("GetSyncAgentResult", "state");
            }
            this.state = state;
            return this;
        }
        @CustomType.Setter
        public Builder syncDatabaseId(@Nullable String syncDatabaseId) {

            this.syncDatabaseId = syncDatabaseId;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetSyncAgentResult", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder version(String version) {
            if (version == null) {
              throw new MissingRequiredPropertyException("GetSyncAgentResult", "version");
            }
            this.version = version;
            return this;
        }
        public GetSyncAgentResult build() {
            final var _resultValue = new GetSyncAgentResult();
            _resultValue.expiryTime = expiryTime;
            _resultValue.id = id;
            _resultValue.isUpToDate = isUpToDate;
            _resultValue.lastAliveTime = lastAliveTime;
            _resultValue.name = name;
            _resultValue.state = state;
            _resultValue.syncDatabaseId = syncDatabaseId;
            _resultValue.type = type;
            _resultValue.version = version;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy