code: public byte[] convertToXmlByteArray(InventoryConfiguration config) throws SdkClientException {
          XmlWriter xml = new XmlWriter();
          xml.start("InventoryConfiguration", "xmlns", Constants.XML_NAMESPACE);
  
          xml.start("Id").value(config.getId()).end();
          xml.start("IsEnabled").value(String.valueOf(config.isEnabled())).end();
          xml.start("IncludedObjectVersions").value(config.getIncludedObjectVersions()).end();
  
          writeInventoryDestination(xml, config.getDestination());
          writeInventoryFilter(xml, config.getInventoryFilter());
          addInventorySchedule(xml, config.getSchedule());
          addInventoryOptionalFields(xml, config.getOptionalFields());
  
          xml.end(); // </InventoryConfiguration>
  
          return xml.getBytes();
      }
docs: /*
  <?xml version="1.0" encoding="UTF-8"?>
  <InventoryConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
  <Destination>
  <S3BucketDestination>
  <AccountId>A2OCNCIEQW9MSG</AccountId>
  <Bucket>s3-object-inventory-list-gamma-us-east-1</Bucket>
  <Format>CSV</Format>
  <Prefix>string</Prefix>
  </S3BucketDestination>
  </Destination>
  <IsEnabled>true</IsEnabled>
  <Filter>
  <Prefix>string</Prefix>
  </Filter>
  <Id>configId</Id>
  <IncludedObjectVersions>All</IncludedObjectVersions>
  <OptionalFields>
  <Field>Size</Field>
  <Field>LastModifiedDate</Field>
  <Field>StorageClass</Field>
  <Field>ETag</Field>
  <Field>IsMultipartUploaded</Field>
  <Field>ReplicationStatus</Field>
  </OptionalFields>
  <Schedule>
  <Frequency>Daily</Frequency>
  </Schedule>
  </InventoryConfiguration>