public CreateLocationObjectStorageRequest withAgentArns(java.util.Collection<String> agentArns) {
        setAgentArns(agentArns);
        return this;
    }
<p>
Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can securely connect with your location.
</p>

@param agentArns
       Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can securely connect with your
       location.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-datasync/src/main/java/com/amazonaws/services/datasync/model/CreateLocationObjectStorageRequest.java