public CreateStackRequest withServiceRoleArn(String serviceRoleArn) {
        setServiceRoleArn(serviceRoleArn);
        return this;
    }
<p>
The stack's IAM role, which allows OpsWorks Stacks to work with Amazon Web Services resources on your behalf. You
must set this parameter to the Amazon Resource Name (ARN) for an existing IAM role. For more information about
IAM ARNs, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">Using
Identifiers</a>.
</p>

@param serviceRoleArn
       The stack's IAM role, which allows OpsWorks Stacks to work with Amazon Web Services resources on your
       behalf. You must set this parameter to the Amazon Resource Name (ARN) for an existing IAM role. For more
       information about IAM ARNs, see <a
       href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">Using Identifiers</a>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-opsworks/src/main/java/com/amazonaws/services/opsworks/model/CreateStackRequest.java