public ActionDeclaration withRoleArn(String roleArn) {
        setRoleArn(roleArn);
        return this;
    }
<p>
The ARN of the IAM service role that performs the declared action. This is assumed through the roleArn for the
pipeline.
</p>

@param roleArn
       The ARN of the IAM service role that performs the declared action. This is assumed through the roleArn for
       the pipeline.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codepipeline/src/main/java/com/amazonaws/services/codepipeline/model/ActionDeclaration.java