com.pulumi.alicloud.ecs.outputs.GetKeyPairsPair Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud resources.
// *** 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.GetKeyPairsPairInstance;
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 GetKeyPairsPair {
/**
* @return A finger print used to retrieve specified key pair.
*
*/
private String fingerPrint;
/**
* @return 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 Name of the key pair.
*
*/
private String keyName;
private String keyPairName;
/**
* @return The Id of resource group which the key pair belongs.
*
*/
private String resourceGroupId;
/**
* @return A mapping of tags to assign to the resource.
*
*/
private Map tags;
private GetKeyPairsPair() {}
/**
* @return A finger print used to retrieve specified key pair.
*
*/
public String fingerPrint() {
return this.fingerPrint;
}
/**
* @return 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 Name of the key pair.
*
*/
public String keyName() {
return this.keyName;
}
public String keyPairName() {
return this.keyPairName;
}
/**
* @return The Id of resource group which the key pair belongs.
*
*/
public String resourceGroupId() {
return this.resourceGroupId;
}
/**
* @return A mapping of tags to assign to the resource.
*
*/
public Map tags() {
return this.tags;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetKeyPairsPair 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(GetKeyPairsPair 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("GetKeyPairsPair", "fingerPrint");
}
this.fingerPrint = fingerPrint;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetKeyPairsPair", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder instances(List instances) {
if (instances == null) {
throw new MissingRequiredPropertyException("GetKeyPairsPair", "instances");
}
this.instances = instances;
return this;
}
public Builder instances(GetKeyPairsPairInstance... instances) {
return instances(List.of(instances));
}
@CustomType.Setter
public Builder keyName(String keyName) {
if (keyName == null) {
throw new MissingRequiredPropertyException("GetKeyPairsPair", "keyName");
}
this.keyName = keyName;
return this;
}
@CustomType.Setter
public Builder keyPairName(String keyPairName) {
if (keyPairName == null) {
throw new MissingRequiredPropertyException("GetKeyPairsPair", "keyPairName");
}
this.keyPairName = keyPairName;
return this;
}
@CustomType.Setter
public Builder resourceGroupId(String resourceGroupId) {
if (resourceGroupId == null) {
throw new MissingRequiredPropertyException("GetKeyPairsPair", "resourceGroupId");
}
this.resourceGroupId = resourceGroupId;
return this;
}
@CustomType.Setter
public Builder tags(Map tags) {
if (tags == null) {
throw new MissingRequiredPropertyException("GetKeyPairsPair", "tags");
}
this.tags = tags;
return this;
}
public GetKeyPairsPair build() {
final var _resultValue = new GetKeyPairsPair();
_resultValue.fingerPrint = fingerPrint;
_resultValue.id = id;
_resultValue.instances = instances;
_resultValue.keyName = keyName;
_resultValue.keyPairName = keyPairName;
_resultValue.resourceGroupId = resourceGroupId;
_resultValue.tags = tags;
return _resultValue;
}
}
}