public EnvironmentAccountConnection withRoleArn(String roleArn) {
        setRoleArn(roleArn);
        return this;
    }
<p>
The IAM service role that's associated with the environment account connection.
</p>

@param roleArn
       The IAM service role that's associated with the environment account connection.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-proton/src/main/java/com/amazonaws/services/proton/model/EnvironmentAccountConnection.java