public IamRoleConfiguration withTrustPolicy(String trustPolicy) {
        setTrustPolicy(trustPolicy);
        return this;
    }
<p>
The proposed trust policy for the IAM role.
</p>

@param trustPolicy
       The proposed trust policy for the IAM role.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-accessanalyzer/src/main/java/com/amazonaws/services/accessanalyzer/model/IamRoleConfiguration.java