@Override protected void doStartElement( String uri, String name, String qName, Attributes attrs) { if (in("InventoryConfiguration")) { if (name.equals("Destination")) { inventoryDestination = new InventoryDestination(); } else if(name.equals("Filter")) { filter = new InventoryFilter(); } else if(name.equals("Schedule")) { inventorySchedule = new InventorySchedule(); } else if(name.equals("OptionalFields")) { optionalFields = new ArrayList<String>(); } } else if (in("InventoryConfiguration", "Destination")) { if (name.equals("S3BucketDestination")) { s3BucketDestination = new InventoryS3BucketDestination(); } } }
if (in("InventoryConfiguration")) { if (name.equals("Id")) { configuration.setId(getText()); } else if (in("InventoryConfiguration", "Destination")) { if ( name.equals("S3BucketDestination") ) { inventoryDestination.setS3BucketDestination(s3BucketDestination); } else if (in("InventoryConfiguration", "Destination", "S3BucketDestination")) { if (name.equals("AccountId")) { s3BucketDestination.setAccountId(getText()); } else if (in("InventoryConfiguration", "Destination", "S3BucketDestination", "Encryption")) { if (name.equals(SSE_S3)) { s3BucketDestination.setEncryption(new ServerSideEncryptionS3()); } else if (in("InventoryConfiguration", "Filter")) { if (name.equals("Prefix")) { filter.setPredicate(new InventoryPrefixPredicate(getText())); } else if (in("InventoryConfiguration", "Schedule")) { if (name.equals("Frequency")) { inventorySchedule.setFrequency(getText()); } else if (in("InventoryConfiguration", "OptionalFields")) { if (name.equals("Field")) { optionalFields.add(getText());
@Override protected void doStartElement( String uri, String name, String qName, Attributes attrs) { if (in("InventoryConfiguration")) { if (name.equals("Destination")) { inventoryDestination = new InventoryDestination(); } else if (name.equals("Filter")) { filter = new InventoryFilter(); } else if (name.equals("Schedule")) { inventorySchedule = new InventorySchedule(); } else if (name.equals("OptionalFields")) { optionalFields = new ArrayList<String>(); } } else if (in("InventoryConfiguration", "Destination")) { if (name.equals("S3BucketDestination")) { s3BucketDestination = new InventoryS3BucketDestination(); } } }
if (in("InventoryConfiguration")) { if (name.equals("Id")) { configuration.setId(getText()); } else if (in("InventoryConfiguration", "Destination")) { if ( name.equals("S3BucketDestination") ) { inventoryDestination.setS3BucketDestination(s3BucketDestination); } else if (in("InventoryConfiguration", "Destination", "S3BucketDestination")) { if (name.equals("AccountId")) { s3BucketDestination.setAccountId(getText()); } else if (in("InventoryConfiguration", "Destination", "S3BucketDestination", "Encryption")) { if (name.equals(SSE_S3)) { s3BucketDestination.setEncryption(new ServerSideEncryptionS3()); } else if (in("InventoryConfiguration", "Filter")) { if (name.equals("Prefix")) { filter.setPredicate(new InventoryPrefixPredicate(getText())); } else if (in("InventoryConfiguration", "Schedule")) { if (name.equals("Frequency")) { inventorySchedule.setFrequency(getText()); } else if (in("InventoryConfiguration", "OptionalFields")) { if (name.equals("Field")) { optionalFields.add(getText());
@Override protected void doEndElement(String uri, String name, String qName) { if (in("InventoryConfiguration")) { if (name.equals("Id")) { configuration.setId(getText()); optionalFields = null; } else if (in("InventoryConfiguration", "Destination")) { if (name.equals("S3BucketDestination")) { inventoryDestination.setS3BucketDestination(s3BucketDestination); s3BucketDestination = null; } else if (in("InventoryConfiguration", "Destination", "S3BucketDestination")) { if (name.equals("AccountId")) { s3BucketDestination.setAccountId(getText()); } else if (in("InventoryConfiguration", "Filter")) { if (name.equals("Prefix")) { filter.setPredicate(new InventoryPrefixPredicate(getText())); } else if (in("InventoryConfiguration", "Schedule")) { if (name.equals("Frequency")) { inventorySchedule.setFrequency(getText()); } else if (in("InventoryConfiguration", "OptionalFields")) { if (name.equals("Field")) { optionalFields.add(getText());
@Override protected void doStartElement( String uri, String name, String qName, Attributes attrs) { if (in("InventoryConfiguration")) { if (name.equals("Destination")) { inventoryDestination = new InventoryDestination(); } else if(name.equals("Filter")) { filter = new InventoryFilter(); } else if(name.equals("Schedule")) { inventorySchedule = new InventorySchedule(); } else if(name.equals("OptionalFields")) { optionalFields = new ArrayList<String>(); } } else if (in("InventoryConfiguration", "Destination")) { if (name.equals("S3BucketDestination")) { s3BucketDestination = new InventoryS3BucketDestination(); } } }
@Override protected void doStartElement( String uri, String name, String qName, Attributes attrs) { if (in("InventoryConfiguration")) { if (name.equals("Destination")) { inventoryDestination = new InventoryDestination(); } else if (name.equals("Filter")) { filter = new InventoryFilter(); } else if (name.equals("Schedule")) { inventorySchedule = new InventorySchedule(); } else if (name.equals("OptionalFields")) { optionalFields = new ArrayList<String>(); } } else if (in("InventoryConfiguration", "Destination")) { if (name.equals("S3BucketDestination")) { s3BucketDestination = new InventoryS3BucketDestination(); } } }
@Override protected void doEndElement(String uri, String name, String qName) { if (in("InventoryConfiguration")) { if (name.equals("Id")) { configuration.setId(getText()); optionalFields = null; } else if (in("InventoryConfiguration", "Destination")) { if (name.equals("S3BucketDestination")) { inventoryDestination.setS3BucketDestination(s3BucketDestination); s3BucketDestination = null; } else if (in("InventoryConfiguration", "Destination", "S3BucketDestination")) { if (name.equals("AccountId")) { s3BucketDestination.setAccountId(getText()); } else if (in("InventoryConfiguration", "Filter")) { if (name.equals("Prefix")) { filter.setPredicate(new InventoryPrefixPredicate(getText())); } else if (in("InventoryConfiguration", "Schedule")) { if (name.equals("Frequency")) { inventorySchedule.setFrequency(getText()); } else if (in("InventoryConfiguration", "OptionalFields")) { if (name.equals("Field")) { optionalFields.add(getText());