Tabnine Logo
XmlResponsesSaxParser$GetBucketInventoryConfigurationHandler
Code IndexAdd Tabnine to your IDE (free)

How to use
XmlResponsesSaxParser$GetBucketInventoryConfigurationHandler
in
com.amazonaws.services.s3.model.transform

Best Java code snippets using com.amazonaws.services.s3.model.transform.XmlResponsesSaxParser$GetBucketInventoryConfigurationHandler (Showing top 17 results out of 315)

origin: aws/aws-sdk-java

if (in("InventoryConfiguration")) {
  if (name.equals("Id")) {
    configuration.setId(getText());
    configuration.setEnabled("true".equals(getText()));
    configuration.setIncludedObjectVersions(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 (name.equals("Bucket")) {
    s3BucketDestination.setBucketArn(getText());
  } else if (name.equals("Format")) {
    s3BucketDestination.setFormat(getText());
  } else if (name.equals("Prefix")) {
    s3BucketDestination.setPrefix(getText());
} else if (in("InventoryConfiguration", "Destination", "S3BucketDestination", "Encryption")) {
  if (name.equals(SSE_S3)) {
    s3BucketDestination.setEncryption(new ServerSideEncryptionS3());
  } else if (name.equals(SSE_KMS)) {
    ServerSideEncryptionKMS kmsEncryption = new ServerSideEncryptionKMS().withKeyId(getText());
    s3BucketDestination.setEncryption(kmsEncryption);
origin: Nextdoor/bender

if (in("InventoryConfiguration")) {
  if (name.equals("Id")) {
    configuration.setId(getText());
    configuration.setEnabled("true".equals(getText()));
    configuration.setIncludedObjectVersions(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 (name.equals("Bucket")) {
    s3BucketDestination.setBucketArn(getText());
  } else if (name.equals("Format")) {
    s3BucketDestination.setFormat(getText());
  } else if (name.equals("Prefix")) {
    s3BucketDestination.setPrefix(getText());
} else if (in("InventoryConfiguration", "Destination", "S3BucketDestination", "Encryption")) {
  if (name.equals(SSE_S3)) {
    s3BucketDestination.setEncryption(new ServerSideEncryptionS3());
  } else if (name.equals(SSE_KMS)) {
    ServerSideEncryptionKMS kmsEncryption = new ServerSideEncryptionKMS().withKeyId(getText());
    s3BucketDestination.setEncryption(kmsEncryption);
origin: com.amazonaws/aws-android-sdk-s3

@Override
protected void doEndElement(String uri, String name, String qName) {
  if (in("InventoryConfiguration")) {
    if (name.equals("Id")) {
      configuration.setId(getText());
    } else if (name.equals("Destination")) {
      configuration.setDestination(inventoryDestination);
      inventoryDestination = null;
    } else if (name.equals("IsEnabled")) {
      configuration.setEnabled("true".equals(getText()));
    } else if (name.equals("Filter")) {
      configuration.setInventoryFilter(filter);
      filter = null;
    } else if (name.equals("IncludedObjectVersions")) {
      configuration.setIncludedObjectVersions(getText());
    } else if (name.equals("Schedule")) {
      configuration.setSchedule(inventorySchedule);
  } 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 (name.equals("Bucket")) {
      s3BucketDestination.setBucketArn(getText());
    } else if (name.equals("Format")) {
      s3BucketDestination.setFormat(getText());
origin: Nextdoor/bender

@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();
    }
  }
}
origin: com.amazonaws/aws-android-sdk-s3

@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();
    }
  }
}
origin: Nextdoor/bender

  public GetBucketInventoryConfigurationResult unmarshall(InputStream in) throws Exception {
    return new XmlResponsesSaxParser().parseGetBucketInventoryConfigurationResponse(in).getResult();
  }
}
origin: Nextdoor/bender

public GetBucketInventoryConfigurationHandler parseGetBucketInventoryConfigurationResponse(InputStream inputStream)
    throws IOException {
  GetBucketInventoryConfigurationHandler handler = new GetBucketInventoryConfigurationHandler();
  parseXmlInputStream(handler, inputStream);
  return handler;
}
origin: com.amazonaws/aws-android-sdk-s3

public GetBucketInventoryConfigurationHandler parseGetBucketInventoryConfigurationResponse(
    InputStream inputStream)
    throws IOException {
  final GetBucketInventoryConfigurationHandler handler = new GetBucketInventoryConfigurationHandler();
  parseXmlInputStream(handler, inputStream);
  return handler;
}
origin: com.amazonaws/aws-android-sdk-s3

  @Override
  public GetBucketInventoryConfigurationResult unmarshall(InputStream in) throws Exception {
    return new XmlResponsesSaxParser().parseGetBucketInventoryConfigurationResponse(in)
        .getResult();
  }
}
origin: aws-amplify/aws-sdk-android

@Override
protected void doEndElement(String uri, String name, String qName) {
  if (in("InventoryConfiguration")) {
    if (name.equals("Id")) {
      configuration.setId(getText());
    } else if (name.equals("Destination")) {
      configuration.setDestination(inventoryDestination);
      inventoryDestination = null;
    } else if (name.equals("IsEnabled")) {
      configuration.setEnabled("true".equals(getText()));
    } else if (name.equals("Filter")) {
      configuration.setInventoryFilter(filter);
      filter = null;
    } else if (name.equals("IncludedObjectVersions")) {
      configuration.setIncludedObjectVersions(getText());
    } else if (name.equals("Schedule")) {
      configuration.setSchedule(inventorySchedule);
  } 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 (name.equals("Bucket")) {
      s3BucketDestination.setBucketArn(getText());
    } else if (name.equals("Format")) {
      s3BucketDestination.setFormat(getText());
origin: aws-amplify/aws-sdk-android

@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();
    }
  }
}
origin: aws-amplify/aws-sdk-android

/**
 * @param resourceLocation
 *            Location of resource containing XML to unmarshall
 * @return Marshalled response
 */
private GetBucketInventoryConfigurationResult parseGetBucketInventoryConfigurationResponse(String resourceLocation) throws Exception {
  return new XmlResponsesSaxParser()
      .parseGetBucketInventoryConfigurationResponse(getClass().getResourceAsStream(resourceLocation))
      .getResult();
}
origin: aws-amplify/aws-sdk-android

  @Override
  public GetBucketInventoryConfigurationResult unmarshall(InputStream in) throws Exception {
    return new XmlResponsesSaxParser().parseGetBucketInventoryConfigurationResponse(in)
        .getResult();
  }
}
origin: aws-amplify/aws-sdk-android

public GetBucketInventoryConfigurationHandler parseGetBucketInventoryConfigurationResponse(
    InputStream inputStream)
    throws IOException {
  final GetBucketInventoryConfigurationHandler handler = new GetBucketInventoryConfigurationHandler();
  parseXmlInputStream(handler, inputStream);
  return handler;
}
origin: aws/aws-sdk-java

@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();
    }
  }
}
origin: aws/aws-sdk-java

public GetBucketInventoryConfigurationHandler parseGetBucketInventoryConfigurationResponse(InputStream inputStream)
    throws IOException {
  GetBucketInventoryConfigurationHandler handler = new GetBucketInventoryConfigurationHandler();
  parseXmlInputStream(handler, inputStream);
  return handler;
}
origin: aws/aws-sdk-java

  public GetBucketInventoryConfigurationResult unmarshall(InputStream in) throws Exception {
    return new XmlResponsesSaxParser().parseGetBucketInventoryConfigurationResponse(in).getResult();
  }
}
com.amazonaws.services.s3.model.transformXmlResponsesSaxParser$GetBucketInventoryConfigurationHandler

Most used methods

  • getResult
  • <init>
  • getText
  • in

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getResourceAsStream (ClassLoader)
  • getExternalFilesDir (Context)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • JButton (javax.swing)
  • JLabel (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now