当前位置: 首页>>代码示例>>Java>>正文


Java AnalyticsConfiguration类代码示例

本文整理汇总了Java中com.amazonaws.services.s3.model.analytics.AnalyticsConfiguration的典型用法代码示例。如果您正苦于以下问题:Java AnalyticsConfiguration类的具体用法?Java AnalyticsConfiguration怎么用?Java AnalyticsConfiguration使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


AnalyticsConfiguration类属于com.amazonaws.services.s3.model.analytics包,在下文中一共展示了AnalyticsConfiguration类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: testEvilNonInjectableMocks_shouldReturnNormal

import com.amazonaws.services.s3.model.analytics.AnalyticsConfiguration; //导入依赖的package包/类
@Test
public void testEvilNonInjectableMocks_shouldReturnNormal() {
  String dirtBucket = "dirt-mudd-stuff";
  s3.isRequesterPaysEnabled(dirtBucket);
  
  assertNotNull(s3.setBucketAnalyticsConfiguration(new SetBucketAnalyticsConfigurationRequest()
      .withBucketName(dirtBucket).withAnalyticsConfiguration(new AnalyticsConfiguration().withId("sdf"))));
  s3.setBucketCrossOriginConfiguration(new SetBucketCrossOriginConfigurationRequest(dirtBucket, 
      new BucketCrossOriginConfiguration().withRules(new CORSRule().withId("dfsf"))));
  s3.setBucketLifecycleConfiguration(new SetBucketLifecycleConfigurationRequest(dirtBucket, 
      new BucketLifecycleConfiguration().withRules(new BucketLifecycleConfiguration.Rule())));
  s3.setBucketPolicy(new SetBucketPolicyRequest(dirtBucket, "this policy must not be clean"));
  s3.setBucketNotificationConfiguration(new SetBucketNotificationConfigurationRequest(
     dirtBucket, new BucketNotificationConfiguration()));
  s3.setBucketReplicationConfiguration(new SetBucketReplicationConfigurationRequest().withBucketName(dirtBucket)
      .withReplicationConfiguration(new BucketReplicationConfiguration()));
  s3.setBucketTaggingConfiguration(new SetBucketTaggingConfigurationRequest(dirtBucket, new BucketTaggingConfiguration().withTagSets(new TagSet())));
  
  assertNotNull(s3.setObjectTagging(new SetObjectTaggingRequest(dirtBucket, "sdfdsf", new ObjectTagging(new ArrayList<>()))));
  assertNotNull(s3.getObjectTagging(new GetObjectTaggingRequest(dirtBucket, "lkjlkj")));
  assertNotNull(s3.listVersions(new ListVersionsRequest().withBucketName(dirtBucket)));
}
 
开发者ID:daflockinger,项目名称:unitstack,代码行数:23,代码来源:MockS3Test.java

示例2: doStartElement

import com.amazonaws.services.s3.model.analytics.AnalyticsConfiguration; //导入依赖的package包/类
@Override
protected void doStartElement(
        String uri,
        String name,
        String qName,
        Attributes attrs) {

    if (in("ListBucketAnalyticsConfigurationsResult")) {
        if (name.equals("AnalyticsConfiguration")) {
            currentConfiguration = new AnalyticsConfiguration();
        }

    } else if (in("ListBucketAnalyticsConfigurationsResult", "AnalyticsConfiguration")) {
        if (name.equals("Filter")) {
            currentFilter = new AnalyticsFilter();
        } else if (name.equals("StorageClassAnalysis")) {
            storageClassAnalysis = new StorageClassAnalysis();
        }

    } else if (in("ListBucketAnalyticsConfigurationsResult", "AnalyticsConfiguration", "Filter")) {
        if (name.equals("And")) {
            andOperandsList = new ArrayList<AnalyticsFilterPredicate>();
        }

    } else if (in("ListBucketAnalyticsConfigurationsResult", "AnalyticsConfiguration", "StorageClassAnalysis")) {
        if (name.equals("DataExport")) {
            dataExport = new StorageClassAnalysisDataExport();
        }

    } else if (in("ListBucketAnalyticsConfigurationsResult", "AnalyticsConfiguration", "StorageClassAnalysis", "DataExport")) {
        if (name.equals("Destination")) {
            destination = new AnalyticsExportDestination();
        }

    } else if (in("ListBucketAnalyticsConfigurationsResult", "AnalyticsConfiguration", "StorageClassAnalysis", "DataExport", "Destination")) {
        if (name.equals("S3BucketDestination")) {
            s3BucketDestination = new AnalyticsS3BucketDestination();
        }
    }
}
 
开发者ID:IBM,项目名称:ibm-cos-sdk-java,代码行数:41,代码来源:XmlResponsesSaxParser.java

示例3: SetBucketAnalyticsConfigurationRequest

import com.amazonaws.services.s3.model.analytics.AnalyticsConfiguration; //导入依赖的package包/类
public SetBucketAnalyticsConfigurationRequest(String bucketName, AnalyticsConfiguration analyticsConfiguration) {
    this.bucketName = bucketName;
    this.analyticsConfiguration = analyticsConfiguration;
}
 
开发者ID:IBM,项目名称:ibm-cos-sdk-java,代码行数:5,代码来源:SetBucketAnalyticsConfigurationRequest.java

示例4: getAnalyticsConfiguration

import com.amazonaws.services.s3.model.analytics.AnalyticsConfiguration; //导入依赖的package包/类
/**
 * Returns the {@link AnalyticsConfiguration} object.
 */
public AnalyticsConfiguration getAnalyticsConfiguration() {
    return analyticsConfiguration;
}
 
开发者ID:IBM,项目名称:ibm-cos-sdk-java,代码行数:7,代码来源:SetBucketAnalyticsConfigurationRequest.java

示例5: setAnalyticsConfiguration

import com.amazonaws.services.s3.model.analytics.AnalyticsConfiguration; //导入依赖的package包/类
/**
 * Sets the {@link AnalyticsConfiguration} object.
 */
public void setAnalyticsConfiguration(AnalyticsConfiguration analyticsConfiguration) {
    this.analyticsConfiguration = analyticsConfiguration;
}
 
开发者ID:IBM,项目名称:ibm-cos-sdk-java,代码行数:7,代码来源:SetBucketAnalyticsConfigurationRequest.java

示例6: withAnalyticsConfiguration

import com.amazonaws.services.s3.model.analytics.AnalyticsConfiguration; //导入依赖的package包/类
/**
 * Sets the {@link AnalyticsConfiguration} object and
 * returns this object for method chaining.
 */
public SetBucketAnalyticsConfigurationRequest withAnalyticsConfiguration(AnalyticsConfiguration analyticsConfiguration) {
    setAnalyticsConfiguration(analyticsConfiguration);
    return this;
}
 
开发者ID:IBM,项目名称:ibm-cos-sdk-java,代码行数:9,代码来源:SetBucketAnalyticsConfigurationRequest.java

示例7: convertToXmlByteArray

import com.amazonaws.services.s3.model.analytics.AnalyticsConfiguration; //导入依赖的package包/类
/**
 * Converts the specified {@link com.amazonaws.services.s3.model.analytics.AnalyticsConfiguration} object to an
 * XML fragment that can be sent to Amazon S3.
 *
 * @param config
 *            The {@link com.amazonaws.services.s3.model.analytics.AnalyticsConfiguration}
 */
 /*
  * <AnalyticsConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
       <Id>XXX</Id>
       <Filter>
         <And>
           <Prefix>documents/</Prefix>
           <Tag>
             <Key>foo</Key>
             <Value>bar</Value>
           </Tag>
         </And>
       </Filter>
       <StorageClassAnalysis>
         <DataExport>
           <OutputSchemaVersion>1</OutputSchemaVersion>
           <Destination>
             <S3BucketDestination>
               <Format>CSV</Format>
               <BucketAccountId>123456789</BucketAccountId>
               <Bucket>destination-bucket</Bucket>
               <Prefix>destination-prefix</Prefix>
             </S3BucketDestination>
           </Destination>
         </DataExport>
       </StorageClassAnalysis>
    </AnalyticsConfiguration>
 */
public byte[] convertToXmlByteArray(AnalyticsConfiguration config) throws SdkClientException {
    XmlWriter xml = new XmlWriter();

    xml.start("AnalyticsConfiguration", "xmlns", Constants.XML_NAMESPACE);

    addParameterIfNotNull(xml, "Id", config.getId());
    writeAnalyticsFilter(xml, config.getFilter());
    writeStorageClassAnalysis(xml, config.getStorageClassAnalysis());

    xml.end();

    return xml.getBytes();
}
 
开发者ID:IBM,项目名称:ibm-cos-sdk-java,代码行数:48,代码来源:BucketConfigurationXmlFactory.java

示例8: getAnalyticsConfiguration

import com.amazonaws.services.s3.model.analytics.AnalyticsConfiguration; //导入依赖的package包/类
/**
 * Returns the requested analytics configuration.
 */
public AnalyticsConfiguration getAnalyticsConfiguration() {
    return analyticsConfiguration;
}
 
开发者ID:IBM,项目名称:ibm-cos-sdk-java,代码行数:7,代码来源:GetBucketAnalyticsConfigurationResult.java

示例9: setAnalyticsConfiguration

import com.amazonaws.services.s3.model.analytics.AnalyticsConfiguration; //导入依赖的package包/类
/**
 * Sets the requested analytics configuration.
 */
public void setAnalyticsConfiguration(AnalyticsConfiguration analyticsConfiguration) {
    this.analyticsConfiguration = analyticsConfiguration;
}
 
开发者ID:IBM,项目名称:ibm-cos-sdk-java,代码行数:7,代码来源:GetBucketAnalyticsConfigurationResult.java

示例10: withAnalyticsConfiguration

import com.amazonaws.services.s3.model.analytics.AnalyticsConfiguration; //导入依赖的package包/类
/**
 * Sets the requested analytics configuration and returns the
 * {@link GetBucketAnalyticsConfigurationResult} object for method chaining.
 */
public GetBucketAnalyticsConfigurationResult withAnalyticsConfiguration(AnalyticsConfiguration analyticsConfiguration) {
    setAnalyticsConfiguration(analyticsConfiguration);
    return this;
}
 
开发者ID:IBM,项目名称:ibm-cos-sdk-java,代码行数:9,代码来源:GetBucketAnalyticsConfigurationResult.java

示例11: getAnalyticsConfigurationList

import com.amazonaws.services.s3.model.analytics.AnalyticsConfiguration; //导入依赖的package包/类
/**
 * Returns the list of analytics configurations for a bucket.
 */
public List<AnalyticsConfiguration> getAnalyticsConfigurationList() {
    return analyticsConfigurationList;
}
 
开发者ID:IBM,项目名称:ibm-cos-sdk-java,代码行数:7,代码来源:ListBucketAnalyticsConfigurationsResult.java

示例12: setAnalyticsConfigurationList

import com.amazonaws.services.s3.model.analytics.AnalyticsConfiguration; //导入依赖的package包/类
/**
 * Sets the list of analytics configurations for a bucket.
 */
public void setAnalyticsConfigurationList(List<AnalyticsConfiguration> analyticsConfigurationList) {
    this.analyticsConfigurationList = analyticsConfigurationList;
}
 
开发者ID:IBM,项目名称:ibm-cos-sdk-java,代码行数:7,代码来源:ListBucketAnalyticsConfigurationsResult.java

示例13: withAnalyticsConfigurationList

import com.amazonaws.services.s3.model.analytics.AnalyticsConfiguration; //导入依赖的package包/类
/**
 * Sets the list of analytics configurations for a bucket and returns
 * {@link ListBucketAnalyticsConfigurationsResult} object for method chaining.
 */
public ListBucketAnalyticsConfigurationsResult withAnalyticsConfigurationList(List<AnalyticsConfiguration> analyticsConfigurationList) {
    setAnalyticsConfigurationList(analyticsConfigurationList);
    return this;
}
 
开发者ID:IBM,项目名称:ibm-cos-sdk-java,代码行数:9,代码来源:ListBucketAnalyticsConfigurationsResult.java

示例14: setBucketAnalyticsConfiguration

import com.amazonaws.services.s3.model.analytics.AnalyticsConfiguration; //导入依赖的package包/类
@Override
public SetBucketAnalyticsConfigurationResult setBucketAnalyticsConfiguration(String bucketName, AnalyticsConfiguration analyticsConfiguration) throws AmazonServiceException, AmazonServiceException {
  return call(() -> getDelegate().setBucketAnalyticsConfiguration(bucketName, analyticsConfiguration));
}
 
开发者ID:HubSpot,项目名称:S3Decorators,代码行数:5,代码来源:S3Decorator.java


注:本文中的com.amazonaws.services.s3.model.analytics.AnalyticsConfiguration类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。