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

com.pulumi.azurenative.logic.outputs.GetIntegrationAccountPartnerResult Maven / Gradle / Ivy

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

import com.pulumi.azurenative.logic.outputs.PartnerContentResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetIntegrationAccountPartnerResult {
    /**
     * @return The changed time.
     * 
     */
    private String changedTime;
    /**
     * @return The partner content.
     * 
     */
    private PartnerContentResponse content;
    /**
     * @return The created time.
     * 
     */
    private String createdTime;
    /**
     * @return The resource id.
     * 
     */
    private String id;
    /**
     * @return The resource location.
     * 
     */
    private @Nullable String location;
    /**
     * @return The metadata.
     * 
     */
    private @Nullable Object metadata;
    /**
     * @return Gets the resource name.
     * 
     */
    private String name;
    /**
     * @return The partner type.
     * 
     */
    private String partnerType;
    /**
     * @return The resource tags.
     * 
     */
    private @Nullable Map tags;
    /**
     * @return Gets the resource type.
     * 
     */
    private String type;

    private GetIntegrationAccountPartnerResult() {}
    /**
     * @return The changed time.
     * 
     */
    public String changedTime() {
        return this.changedTime;
    }
    /**
     * @return The partner content.
     * 
     */
    public PartnerContentResponse content() {
        return this.content;
    }
    /**
     * @return The created time.
     * 
     */
    public String createdTime() {
        return this.createdTime;
    }
    /**
     * @return The resource id.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The resource location.
     * 
     */
    public Optional location() {
        return Optional.ofNullable(this.location);
    }
    /**
     * @return The metadata.
     * 
     */
    public Optional metadata() {
        return Optional.ofNullable(this.metadata);
    }
    /**
     * @return Gets the resource name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The partner type.
     * 
     */
    public String partnerType() {
        return this.partnerType;
    }
    /**
     * @return The resource tags.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return Gets the resource type.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetIntegrationAccountPartnerResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String changedTime;
        private PartnerContentResponse content;
        private String createdTime;
        private String id;
        private @Nullable String location;
        private @Nullable Object metadata;
        private String name;
        private String partnerType;
        private @Nullable Map tags;
        private String type;
        public Builder() {}
        public Builder(GetIntegrationAccountPartnerResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.changedTime = defaults.changedTime;
    	      this.content = defaults.content;
    	      this.createdTime = defaults.createdTime;
    	      this.id = defaults.id;
    	      this.location = defaults.location;
    	      this.metadata = defaults.metadata;
    	      this.name = defaults.name;
    	      this.partnerType = defaults.partnerType;
    	      this.tags = defaults.tags;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder changedTime(String changedTime) {
            if (changedTime == null) {
              throw new MissingRequiredPropertyException("GetIntegrationAccountPartnerResult", "changedTime");
            }
            this.changedTime = changedTime;
            return this;
        }
        @CustomType.Setter
        public Builder content(PartnerContentResponse content) {
            if (content == null) {
              throw new MissingRequiredPropertyException("GetIntegrationAccountPartnerResult", "content");
            }
            this.content = content;
            return this;
        }
        @CustomType.Setter
        public Builder createdTime(String createdTime) {
            if (createdTime == null) {
              throw new MissingRequiredPropertyException("GetIntegrationAccountPartnerResult", "createdTime");
            }
            this.createdTime = createdTime;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetIntegrationAccountPartnerResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder location(@Nullable String location) {

            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder metadata(@Nullable Object metadata) {

            this.metadata = metadata;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetIntegrationAccountPartnerResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder partnerType(String partnerType) {
            if (partnerType == null) {
              throw new MissingRequiredPropertyException("GetIntegrationAccountPartnerResult", "partnerType");
            }
            this.partnerType = partnerType;
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable Map tags) {

            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetIntegrationAccountPartnerResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetIntegrationAccountPartnerResult build() {
            final var _resultValue = new GetIntegrationAccountPartnerResult();
            _resultValue.changedTime = changedTime;
            _resultValue.content = content;
            _resultValue.createdTime = createdTime;
            _resultValue.id = id;
            _resultValue.location = location;
            _resultValue.metadata = metadata;
            _resultValue.name = name;
            _resultValue.partnerType = partnerType;
            _resultValue.tags = tags;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}