com.pulumi.aws.workspaces.outputs.GetDirectoryResult Maven / Gradle / Ivy
// *** 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.aws.workspaces.outputs;
import com.pulumi.aws.workspaces.outputs.GetDirectorySelfServicePermission;
import com.pulumi.aws.workspaces.outputs.GetDirectoryWorkspaceAccessProperty;
import com.pulumi.aws.workspaces.outputs.GetDirectoryWorkspaceCreationProperty;
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;
import javax.annotation.Nullable;
@CustomType
public final class GetDirectoryResult {
/**
* @return Directory alias.
*
*/
private String alias;
/**
* @return User name for the service account.
*
*/
private String customerUserName;
private String directoryId;
/**
* @return Name of the directory.
*
*/
private String directoryName;
/**
* @return Directory type.
*
*/
private String directoryType;
/**
* @return IP addresses of the DNS servers for the directory.
*
*/
private List dnsIpAddresses;
/**
* @return Identifier of the IAM role. This is the role that allows Amazon WorkSpaces to make calls to other services, such as Amazon EC2, on your behalf.
*
*/
private String iamRoleId;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return Identifiers of the IP access control groups associated with the directory.
*
*/
private List ipGroupIds;
/**
* @return Registration code for the directory. This is the code that users enter in their Amazon WorkSpaces client application to connect to the directory.
*
*/
private String registrationCode;
/**
* @return The permissions to enable or disable self-service capabilities.
*
*/
private List selfServicePermissions;
/**
* @return Identifiers of the subnets where the directory resides.
*
*/
private List subnetIds;
/**
* @return A map of tags assigned to the WorkSpaces directory.
*
*/
private @Nullable Map tags;
/**
* @return (Optional) Specifies which devices and operating systems users can use to access their WorkSpaces. Defined below.
*
*/
private List workspaceAccessProperties;
/**
* @return The default properties that are used for creating WorkSpaces. Defined below.
*
*/
private List workspaceCreationProperties;
/**
* @return The identifier of the security group that is assigned to new WorkSpaces. Defined below.
*
*/
private String workspaceSecurityGroupId;
private GetDirectoryResult() {}
/**
* @return Directory alias.
*
*/
public String alias() {
return this.alias;
}
/**
* @return User name for the service account.
*
*/
public String customerUserName() {
return this.customerUserName;
}
public String directoryId() {
return this.directoryId;
}
/**
* @return Name of the directory.
*
*/
public String directoryName() {
return this.directoryName;
}
/**
* @return Directory type.
*
*/
public String directoryType() {
return this.directoryType;
}
/**
* @return IP addresses of the DNS servers for the directory.
*
*/
public List dnsIpAddresses() {
return this.dnsIpAddresses;
}
/**
* @return Identifier of the IAM role. This is the role that allows Amazon WorkSpaces to make calls to other services, such as Amazon EC2, on your behalf.
*
*/
public String iamRoleId() {
return this.iamRoleId;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return Identifiers of the IP access control groups associated with the directory.
*
*/
public List ipGroupIds() {
return this.ipGroupIds;
}
/**
* @return Registration code for the directory. This is the code that users enter in their Amazon WorkSpaces client application to connect to the directory.
*
*/
public String registrationCode() {
return this.registrationCode;
}
/**
* @return The permissions to enable or disable self-service capabilities.
*
*/
public List selfServicePermissions() {
return this.selfServicePermissions;
}
/**
* @return Identifiers of the subnets where the directory resides.
*
*/
public List subnetIds() {
return this.subnetIds;
}
/**
* @return A map of tags assigned to the WorkSpaces directory.
*
*/
public Map tags() {
return this.tags == null ? Map.of() : this.tags;
}
/**
* @return (Optional) Specifies which devices and operating systems users can use to access their WorkSpaces. Defined below.
*
*/
public List workspaceAccessProperties() {
return this.workspaceAccessProperties;
}
/**
* @return The default properties that are used for creating WorkSpaces. Defined below.
*
*/
public List workspaceCreationProperties() {
return this.workspaceCreationProperties;
}
/**
* @return The identifier of the security group that is assigned to new WorkSpaces. Defined below.
*
*/
public String workspaceSecurityGroupId() {
return this.workspaceSecurityGroupId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetDirectoryResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String alias;
private String customerUserName;
private String directoryId;
private String directoryName;
private String directoryType;
private List dnsIpAddresses;
private String iamRoleId;
private String id;
private List ipGroupIds;
private String registrationCode;
private List selfServicePermissions;
private List subnetIds;
private @Nullable Map tags;
private List workspaceAccessProperties;
private List workspaceCreationProperties;
private String workspaceSecurityGroupId;
public Builder() {}
public Builder(GetDirectoryResult defaults) {
Objects.requireNonNull(defaults);
this.alias = defaults.alias;
this.customerUserName = defaults.customerUserName;
this.directoryId = defaults.directoryId;
this.directoryName = defaults.directoryName;
this.directoryType = defaults.directoryType;
this.dnsIpAddresses = defaults.dnsIpAddresses;
this.iamRoleId = defaults.iamRoleId;
this.id = defaults.id;
this.ipGroupIds = defaults.ipGroupIds;
this.registrationCode = defaults.registrationCode;
this.selfServicePermissions = defaults.selfServicePermissions;
this.subnetIds = defaults.subnetIds;
this.tags = defaults.tags;
this.workspaceAccessProperties = defaults.workspaceAccessProperties;
this.workspaceCreationProperties = defaults.workspaceCreationProperties;
this.workspaceSecurityGroupId = defaults.workspaceSecurityGroupId;
}
@CustomType.Setter
public Builder alias(String alias) {
if (alias == null) {
throw new MissingRequiredPropertyException("GetDirectoryResult", "alias");
}
this.alias = alias;
return this;
}
@CustomType.Setter
public Builder customerUserName(String customerUserName) {
if (customerUserName == null) {
throw new MissingRequiredPropertyException("GetDirectoryResult", "customerUserName");
}
this.customerUserName = customerUserName;
return this;
}
@CustomType.Setter
public Builder directoryId(String directoryId) {
if (directoryId == null) {
throw new MissingRequiredPropertyException("GetDirectoryResult", "directoryId");
}
this.directoryId = directoryId;
return this;
}
@CustomType.Setter
public Builder directoryName(String directoryName) {
if (directoryName == null) {
throw new MissingRequiredPropertyException("GetDirectoryResult", "directoryName");
}
this.directoryName = directoryName;
return this;
}
@CustomType.Setter
public Builder directoryType(String directoryType) {
if (directoryType == null) {
throw new MissingRequiredPropertyException("GetDirectoryResult", "directoryType");
}
this.directoryType = directoryType;
return this;
}
@CustomType.Setter
public Builder dnsIpAddresses(List dnsIpAddresses) {
if (dnsIpAddresses == null) {
throw new MissingRequiredPropertyException("GetDirectoryResult", "dnsIpAddresses");
}
this.dnsIpAddresses = dnsIpAddresses;
return this;
}
public Builder dnsIpAddresses(String... dnsIpAddresses) {
return dnsIpAddresses(List.of(dnsIpAddresses));
}
@CustomType.Setter
public Builder iamRoleId(String iamRoleId) {
if (iamRoleId == null) {
throw new MissingRequiredPropertyException("GetDirectoryResult", "iamRoleId");
}
this.iamRoleId = iamRoleId;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetDirectoryResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder ipGroupIds(List ipGroupIds) {
if (ipGroupIds == null) {
throw new MissingRequiredPropertyException("GetDirectoryResult", "ipGroupIds");
}
this.ipGroupIds = ipGroupIds;
return this;
}
public Builder ipGroupIds(String... ipGroupIds) {
return ipGroupIds(List.of(ipGroupIds));
}
@CustomType.Setter
public Builder registrationCode(String registrationCode) {
if (registrationCode == null) {
throw new MissingRequiredPropertyException("GetDirectoryResult", "registrationCode");
}
this.registrationCode = registrationCode;
return this;
}
@CustomType.Setter
public Builder selfServicePermissions(List selfServicePermissions) {
if (selfServicePermissions == null) {
throw new MissingRequiredPropertyException("GetDirectoryResult", "selfServicePermissions");
}
this.selfServicePermissions = selfServicePermissions;
return this;
}
public Builder selfServicePermissions(GetDirectorySelfServicePermission... selfServicePermissions) {
return selfServicePermissions(List.of(selfServicePermissions));
}
@CustomType.Setter
public Builder subnetIds(List subnetIds) {
if (subnetIds == null) {
throw new MissingRequiredPropertyException("GetDirectoryResult", "subnetIds");
}
this.subnetIds = subnetIds;
return this;
}
public Builder subnetIds(String... subnetIds) {
return subnetIds(List.of(subnetIds));
}
@CustomType.Setter
public Builder tags(@Nullable Map tags) {
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder workspaceAccessProperties(List workspaceAccessProperties) {
if (workspaceAccessProperties == null) {
throw new MissingRequiredPropertyException("GetDirectoryResult", "workspaceAccessProperties");
}
this.workspaceAccessProperties = workspaceAccessProperties;
return this;
}
public Builder workspaceAccessProperties(GetDirectoryWorkspaceAccessProperty... workspaceAccessProperties) {
return workspaceAccessProperties(List.of(workspaceAccessProperties));
}
@CustomType.Setter
public Builder workspaceCreationProperties(List workspaceCreationProperties) {
if (workspaceCreationProperties == null) {
throw new MissingRequiredPropertyException("GetDirectoryResult", "workspaceCreationProperties");
}
this.workspaceCreationProperties = workspaceCreationProperties;
return this;
}
public Builder workspaceCreationProperties(GetDirectoryWorkspaceCreationProperty... workspaceCreationProperties) {
return workspaceCreationProperties(List.of(workspaceCreationProperties));
}
@CustomType.Setter
public Builder workspaceSecurityGroupId(String workspaceSecurityGroupId) {
if (workspaceSecurityGroupId == null) {
throw new MissingRequiredPropertyException("GetDirectoryResult", "workspaceSecurityGroupId");
}
this.workspaceSecurityGroupId = workspaceSecurityGroupId;
return this;
}
public GetDirectoryResult build() {
final var _resultValue = new GetDirectoryResult();
_resultValue.alias = alias;
_resultValue.customerUserName = customerUserName;
_resultValue.directoryId = directoryId;
_resultValue.directoryName = directoryName;
_resultValue.directoryType = directoryType;
_resultValue.dnsIpAddresses = dnsIpAddresses;
_resultValue.iamRoleId = iamRoleId;
_resultValue.id = id;
_resultValue.ipGroupIds = ipGroupIds;
_resultValue.registrationCode = registrationCode;
_resultValue.selfServicePermissions = selfServicePermissions;
_resultValue.subnetIds = subnetIds;
_resultValue.tags = tags;
_resultValue.workspaceAccessProperties = workspaceAccessProperties;
_resultValue.workspaceCreationProperties = workspaceCreationProperties;
_resultValue.workspaceSecurityGroupId = workspaceSecurityGroupId;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy