public RegisterOnPremisesInstanceRequest withIamSessionArn(String iamSessionArn) {
        setIamSessionArn(iamSessionArn);
        return this;
    }
<p>
The ARN of the IAM session to associate with the on-premises instance.
</p>

@param iamSessionArn
       The ARN of the IAM session to associate with the on-premises instance.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codedeploy/src/main/java/com/amazonaws/services/codedeploy/model/RegisterOnPremisesInstanceRequest.java