public BucketReplicationConfiguration withRoleARN(String roleARN) {
        setRoleARN(roleARN);
        return this;
    }
Sets the IAM role that will be used by Amazon S3 while replication.
Returns the updated object.

@param roleARN
           The IAM role for this configuration.
@return The updated {@link BucketReplicationConfiguration} object.
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/BucketReplicationConfiguration.java