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

com.pulumi.alicloud.ecs.outputs.GetEcsKeyPairsPair Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.ecs.outputs;

import com.pulumi.alicloud.ecs.outputs.GetEcsKeyPairsPairInstance;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;

@CustomType
public final class GetEcsKeyPairsPair {
    /**
     * @return The finger print of the key pair.
     * 
     */
    private String fingerPrint;
    /**
     * @return The ID of the Key Pair.
     * 
     */
    private String id;
    /**
     * @return A list of ECS instances that has been bound this key pair.
     * 
     */
    private List instances;
    /**
     * @return The Key Pair Name.
     * 
     */
    private String keyName;
    private String keyPairName;
    /**
     * @return The Resource Group Id.
     * 
     */
    private String resourceGroupId;
    /**
     * @return The tags.
     * 
     */
    private Map tags;

    private GetEcsKeyPairsPair() {}
    /**
     * @return The finger print of the key pair.
     * 
     */
    public String fingerPrint() {
        return this.fingerPrint;
    }
    /**
     * @return The ID of the Key Pair.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return A list of ECS instances that has been bound this key pair.
     * 
     */
    public List instances() {
        return this.instances;
    }
    /**
     * @return The Key Pair Name.
     * 
     */
    public String keyName() {
        return this.keyName;
    }
    public String keyPairName() {
        return this.keyPairName;
    }
    /**
     * @return The Resource Group Id.
     * 
     */
    public String resourceGroupId() {
        return this.resourceGroupId;
    }
    /**
     * @return The tags.
     * 
     */
    public Map tags() {
        return this.tags;
    }

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

    public static Builder builder(GetEcsKeyPairsPair defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String fingerPrint;
        private String id;
        private List instances;
        private String keyName;
        private String keyPairName;
        private String resourceGroupId;
        private Map tags;
        public Builder() {}
        public Builder(GetEcsKeyPairsPair defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.fingerPrint = defaults.fingerPrint;
    	      this.id = defaults.id;
    	      this.instances = defaults.instances;
    	      this.keyName = defaults.keyName;
    	      this.keyPairName = defaults.keyPairName;
    	      this.resourceGroupId = defaults.resourceGroupId;
    	      this.tags = defaults.tags;
        }

        @CustomType.Setter
        public Builder fingerPrint(String fingerPrint) {
            if (fingerPrint == null) {
              throw new MissingRequiredPropertyException("GetEcsKeyPairsPair", "fingerPrint");
            }
            this.fingerPrint = fingerPrint;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetEcsKeyPairsPair", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder instances(List instances) {
            if (instances == null) {
              throw new MissingRequiredPropertyException("GetEcsKeyPairsPair", "instances");
            }
            this.instances = instances;
            return this;
        }
        public Builder instances(GetEcsKeyPairsPairInstance... instances) {
            return instances(List.of(instances));
        }
        @CustomType.Setter
        public Builder keyName(String keyName) {
            if (keyName == null) {
              throw new MissingRequiredPropertyException("GetEcsKeyPairsPair", "keyName");
            }
            this.keyName = keyName;
            return this;
        }
        @CustomType.Setter
        public Builder keyPairName(String keyPairName) {
            if (keyPairName == null) {
              throw new MissingRequiredPropertyException("GetEcsKeyPairsPair", "keyPairName");
            }
            this.keyPairName = keyPairName;
            return this;
        }
        @CustomType.Setter
        public Builder resourceGroupId(String resourceGroupId) {
            if (resourceGroupId == null) {
              throw new MissingRequiredPropertyException("GetEcsKeyPairsPair", "resourceGroupId");
            }
            this.resourceGroupId = resourceGroupId;
            return this;
        }
        @CustomType.Setter
        public Builder tags(Map tags) {
            if (tags == null) {
              throw new MissingRequiredPropertyException("GetEcsKeyPairsPair", "tags");
            }
            this.tags = tags;
            return this;
        }
        public GetEcsKeyPairsPair build() {
            final var _resultValue = new GetEcsKeyPairsPair();
            _resultValue.fingerPrint = fingerPrint;
            _resultValue.id = id;
            _resultValue.instances = instances;
            _resultValue.keyName = keyName;
            _resultValue.keyPairName = keyPairName;
            _resultValue.resourceGroupId = resourceGroupId;
            _resultValue.tags = tags;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy