public CommandInvocation withServiceRole(String serviceRole) {
        setServiceRole(serviceRole);
        return this;
    }
<p>
The Identity and Access Management (IAM) service role that Run Command, a capability of Amazon Web Services
Systems Manager, uses to act on your behalf when sending notifications about command status changes on a per
managed node basis.
</p>

@param serviceRole
       The Identity and Access Management (IAM) service role that Run Command, a capability of Amazon Web
       Services Systems Manager, uses to act on your behalf when sending notifications about command status
       changes on a per managed node basis.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/CommandInvocation.java