
com.pulumi.aws.auditmanager.outputs.AssessmentRole 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.auditmanager.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class AssessmentRole {
/**
* @return Amazon Resource Name (ARN) of the IAM role.
*
*/
private String roleArn;
/**
* @return Type of customer persona. For assessment creation, type must always be `PROCESS_OWNER`.
*
*/
private String roleType;
private AssessmentRole() {}
/**
* @return Amazon Resource Name (ARN) of the IAM role.
*
*/
public String roleArn() {
return this.roleArn;
}
/**
* @return Type of customer persona. For assessment creation, type must always be `PROCESS_OWNER`.
*
*/
public String roleType() {
return this.roleType;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AssessmentRole defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String roleArn;
private String roleType;
public Builder() {}
public Builder(AssessmentRole defaults) {
Objects.requireNonNull(defaults);
this.roleArn = defaults.roleArn;
this.roleType = defaults.roleType;
}
@CustomType.Setter
public Builder roleArn(String roleArn) {
if (roleArn == null) {
throw new MissingRequiredPropertyException("AssessmentRole", "roleArn");
}
this.roleArn = roleArn;
return this;
}
@CustomType.Setter
public Builder roleType(String roleType) {
if (roleType == null) {
throw new MissingRequiredPropertyException("AssessmentRole", "roleType");
}
this.roleType = roleType;
return this;
}
public AssessmentRole build() {
final var _resultValue = new AssessmentRole();
_resultValue.roleArn = roleArn;
_resultValue.roleType = roleType;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy