public AssumeQueueRoleForWorkerResult withCredentials(AwsCredentials credentials) {
        setCredentials(credentials);
        return this;
    }
<p>
The Amazon Web Services credentials for the role that the worker is assuming.
</p>

@param credentials
       The Amazon Web Services credentials for the role that the worker is assuming.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-deadline/src/main/java/com/amazonaws/services/deadline/model/AssumeQueueRoleForWorkerResult.java