public CreateLayerRequest withCustomInstanceProfileArn(String customInstanceProfileArn) {
        setCustomInstanceProfileArn(customInstanceProfileArn);
        return this;
    }
<p>
The ARN of an IAM profile to be used for the layer's EC2 instances. 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 customInstanceProfileArn
       The ARN of an IAM profile to be used for the layer's EC2 instances. 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/CreateLayerRequest.java