com.pulumi.alicloud.bastionhost.HostAttachmentArgs 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.bastionhost;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class HostAttachmentArgs extends com.pulumi.resources.ResourceArgs {
public static final HostAttachmentArgs Empty = new HostAttachmentArgs();
/**
* Specifies the added to the host group ID.
*
*/
@Import(name="hostGroupId", required=true)
private Output hostGroupId;
/**
* @return Specifies the added to the host group ID.
*
*/
public Output hostGroupId() {
return this.hostGroupId;
}
/**
* Specified to be part of a host group of host ID.
*
*/
@Import(name="hostId", required=true)
private Output hostId;
/**
* @return Specified to be part of a host group of host ID.
*
*/
public Output hostId() {
return this.hostId;
}
/**
* The bastion host instance id.
*
*/
@Import(name="instanceId", required=true)
private Output instanceId;
/**
* @return The bastion host instance id.
*
*/
public Output instanceId() {
return this.instanceId;
}
private HostAttachmentArgs() {}
private HostAttachmentArgs(HostAttachmentArgs $) {
this.hostGroupId = $.hostGroupId;
this.hostId = $.hostId;
this.instanceId = $.instanceId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(HostAttachmentArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private HostAttachmentArgs $;
public Builder() {
$ = new HostAttachmentArgs();
}
public Builder(HostAttachmentArgs defaults) {
$ = new HostAttachmentArgs(Objects.requireNonNull(defaults));
}
/**
* @param hostGroupId Specifies the added to the host group ID.
*
* @return builder
*
*/
public Builder hostGroupId(Output hostGroupId) {
$.hostGroupId = hostGroupId;
return this;
}
/**
* @param hostGroupId Specifies the added to the host group ID.
*
* @return builder
*
*/
public Builder hostGroupId(String hostGroupId) {
return hostGroupId(Output.of(hostGroupId));
}
/**
* @param hostId Specified to be part of a host group of host ID.
*
* @return builder
*
*/
public Builder hostId(Output hostId) {
$.hostId = hostId;
return this;
}
/**
* @param hostId Specified to be part of a host group of host ID.
*
* @return builder
*
*/
public Builder hostId(String hostId) {
return hostId(Output.of(hostId));
}
/**
* @param instanceId The bastion host instance id.
*
* @return builder
*
*/
public Builder instanceId(Output instanceId) {
$.instanceId = instanceId;
return this;
}
/**
* @param instanceId The bastion host instance id.
*
* @return builder
*
*/
public Builder instanceId(String instanceId) {
return instanceId(Output.of(instanceId));
}
public HostAttachmentArgs build() {
if ($.hostGroupId == null) {
throw new MissingRequiredPropertyException("HostAttachmentArgs", "hostGroupId");
}
if ($.hostId == null) {
throw new MissingRequiredPropertyException("HostAttachmentArgs", "hostId");
}
if ($.instanceId == null) {
throw new MissingRequiredPropertyException("HostAttachmentArgs", "instanceId");
}
return $;
}
}
}