congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
MetricsTagPredicate.getTag
Code IndexAdd Tabnine to your IDE (free)

How to use
getTag
method
in
com.amazonaws.services.s3.model.metrics.MetricsTagPredicate

Best Java code snippets using com.amazonaws.services.s3.model.metrics.MetricsTagPredicate.getTag (Showing top 7 results out of 315)

origin: aws/aws-sdk-java

@Override
public void visit(MetricsTagPredicate metricsTagPredicate) {
  writeTag(xml, metricsTagPredicate.getTag());
}
origin: aws/aws-sdk-java

@Override
public void visit(MetricsTagPredicate metricsTagPredicate) {
  writeTag(xml, metricsTagPredicate.getTag());
}
origin: aws-amplify/aws-sdk-android

@Override
public void visit(MetricsTagPredicate metricsTagPredicate) {
  writeTag(xml, metricsTagPredicate.getTag());
}
origin: aws-amplify/aws-sdk-android

@Test
public void getResponse_unmarshalls_properly() throws Exception {
  MetricsConfiguration configuration = parseGetBucketMetricsConfigurationResponse(GET_RESPONSE).getMetricsConfiguration();
  MetricsFilter filter = configuration.getFilter();
  assertEquals("metrics-id", configuration.getId());
  List<MetricsFilterPredicate> operands = ((MetricsAndOperator) filter.getPredicate()).getOperands();
  assertEquals(3, operands.size());
  assertEquals("documents/", ((MetricsPrefixPredicate) operands.get(0)).getPrefix());
  assertEquals("foo", ((MetricsTagPredicate) operands.get(1)).getTag().getKey());
  assertEquals("bar", ((MetricsTagPredicate) operands.get(1)).getTag().getValue());
  assertEquals("", ((MetricsTagPredicate) operands.get(2)).getTag().getKey());
  assertEquals("", ((MetricsTagPredicate) operands.get(2)).getTag().getValue());
}
origin: Nextdoor/bender

@Override
public void visit(MetricsTagPredicate metricsTagPredicate) {
  writeTag(xml, metricsTagPredicate.getTag());
}
origin: com.amazonaws/aws-android-sdk-s3

@Override
public void visit(MetricsTagPredicate metricsTagPredicate) {
  writeTag(xml, metricsTagPredicate.getTag());
}
origin: aws-amplify/aws-sdk-android

@Test
public void listResponse_unmarshalls_properly() throws Exception {
  ListBucketMetricsConfigurationsResult result = parseListBucketMetricsConfigurationsResponse(LIST_RESPONSE);
  assertTrue(result.isTruncated());
  assertEquals("token1", result.getContinuationToken());
  assertEquals("token2", result.getNextContinuationToken());
  List<MetricsConfiguration> metricsConfigurationList = result.getMetricsConfigurationList();
  assertEquals(2, metricsConfigurationList.size());
  // Test first metrics configuration
  MetricsConfiguration configuration = metricsConfigurationList.get(0);
  MetricsFilter filter = configuration.getFilter();
  assertEquals("id1", configuration.getId());
  assertNotNull(filter);
  List<MetricsFilterPredicate> operands = ((MetricsAndOperator) filter.getPredicate()).getOperands();
  assertEquals(2, operands.size());
  assertEquals("documents/", ((MetricsPrefixPredicate) operands.get(0)).getPrefix());
  assertEquals("foo", ((MetricsTagPredicate) operands.get(1)).getTag().getKey());
  assertEquals("bar", ((MetricsTagPredicate) operands.get(1)).getTag().getValue());
  // Test second metrics configuration
  configuration = metricsConfigurationList.get(1);
  assertEquals("id2", configuration.getId());
  MetricsTagPredicate tagPredicate = (MetricsTagPredicate) configuration.getFilter().getPredicate();
  assertEquals("key", tagPredicate.getTag().getKey());
  assertEquals("value", tagPredicate.getTag().getValue());
}
com.amazonaws.services.s3.model.metricsMetricsTagPredicategetTag

Popular methods of MetricsTagPredicate

  • <init>
    Constructor.

Popular in Java

  • Making http post requests using okhttp
  • getContentResolver (Context)
  • onRequestPermissionsResult (Fragment)
  • getResourceAsStream (ClassLoader)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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