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

com.pulumi.azurenative.managementpartner.outputs.GetPartnerResult Maven / Gradle / Ivy

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

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

@CustomType
public final class GetPartnerResult {
    /**
     * @return This is the DateTime when the partner was created.
     * 
     */
    private @Nullable String createdTime;
    /**
     * @return Type of the partner
     * 
     */
    private @Nullable Integer etag;
    /**
     * @return Identifier of the partner
     * 
     */
    private String id;
    /**
     * @return Name of the partner
     * 
     */
    private String name;
    /**
     * @return This is the object id.
     * 
     */
    private @Nullable String objectId;
    /**
     * @return This is the partner id
     * 
     */
    private @Nullable String partnerId;
    /**
     * @return This is the partner name
     * 
     */
    private @Nullable String partnerName;
    /**
     * @return This is the tenant id.
     * 
     */
    private @Nullable String tenantId;
    /**
     * @return Type of resource. "Microsoft.ManagementPartner/partners"
     * 
     */
    private String type;
    /**
     * @return This is the DateTime when the partner was updated.
     * 
     */
    private @Nullable String updatedTime;
    /**
     * @return This is the version.
     * 
     */
    private @Nullable Integer version;

    private GetPartnerResult() {}
    /**
     * @return This is the DateTime when the partner was created.
     * 
     */
    public Optional createdTime() {
        return Optional.ofNullable(this.createdTime);
    }
    /**
     * @return Type of the partner
     * 
     */
    public Optional etag() {
        return Optional.ofNullable(this.etag);
    }
    /**
     * @return Identifier of the partner
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Name of the partner
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return This is the object id.
     * 
     */
    public Optional objectId() {
        return Optional.ofNullable(this.objectId);
    }
    /**
     * @return This is the partner id
     * 
     */
    public Optional partnerId() {
        return Optional.ofNullable(this.partnerId);
    }
    /**
     * @return This is the partner name
     * 
     */
    public Optional partnerName() {
        return Optional.ofNullable(this.partnerName);
    }
    /**
     * @return This is the tenant id.
     * 
     */
    public Optional tenantId() {
        return Optional.ofNullable(this.tenantId);
    }
    /**
     * @return Type of resource. "Microsoft.ManagementPartner/partners"
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return This is the DateTime when the partner was updated.
     * 
     */
    public Optional updatedTime() {
        return Optional.ofNullable(this.updatedTime);
    }
    /**
     * @return This is the version.
     * 
     */
    public Optional version() {
        return Optional.ofNullable(this.version);
    }

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

    public static Builder builder(GetPartnerResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String createdTime;
        private @Nullable Integer etag;
        private String id;
        private String name;
        private @Nullable String objectId;
        private @Nullable String partnerId;
        private @Nullable String partnerName;
        private @Nullable String tenantId;
        private String type;
        private @Nullable String updatedTime;
        private @Nullable Integer version;
        public Builder() {}
        public Builder(GetPartnerResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.createdTime = defaults.createdTime;
    	      this.etag = defaults.etag;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.objectId = defaults.objectId;
    	      this.partnerId = defaults.partnerId;
    	      this.partnerName = defaults.partnerName;
    	      this.tenantId = defaults.tenantId;
    	      this.type = defaults.type;
    	      this.updatedTime = defaults.updatedTime;
    	      this.version = defaults.version;
        }

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

            this.createdTime = createdTime;
            return this;
        }
        @CustomType.Setter
        public Builder etag(@Nullable Integer etag) {

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

            this.objectId = objectId;
            return this;
        }
        @CustomType.Setter
        public Builder partnerId(@Nullable String partnerId) {

            this.partnerId = partnerId;
            return this;
        }
        @CustomType.Setter
        public Builder partnerName(@Nullable String partnerName) {

            this.partnerName = partnerName;
            return this;
        }
        @CustomType.Setter
        public Builder tenantId(@Nullable String tenantId) {

            this.tenantId = tenantId;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetPartnerResult", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder updatedTime(@Nullable String updatedTime) {

            this.updatedTime = updatedTime;
            return this;
        }
        @CustomType.Setter
        public Builder version(@Nullable Integer version) {

            this.version = version;
            return this;
        }
        public GetPartnerResult build() {
            final var _resultValue = new GetPartnerResult();
            _resultValue.createdTime = createdTime;
            _resultValue.etag = etag;
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.objectId = objectId;
            _resultValue.partnerId = partnerId;
            _resultValue.partnerName = partnerName;
            _resultValue.tenantId = tenantId;
            _resultValue.type = type;
            _resultValue.updatedTime = updatedTime;
            _resultValue.version = version;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy