/** * <p> * Creates a new bucket notification configuration with the given configuration. * </p> * * @param name the name for the configuration * @param notificationConfiguration the notification configuration for the Amazon S3 bucket. */ public BucketNotificationConfiguration(String name, NotificationConfiguration notificationConfiguration) { this.configurations = new HashMap<String, NotificationConfiguration>(); addConfiguration(name, notificationConfiguration); }
/** * <p> * Sets the {@link BucketNotificationConfiguration.TopicConfiguration}. * </p> * <p> * Calling this method will overwrite any * previously set <code>TopicConfigurations</code> for this object. * </p> * * @param topicConfigurations * A collection of topic configurations. * * @deprecated * @see BucketNotificationConfiguration#setConfigurations(Map) */ public void setTopicConfigurations( Collection<TopicConfiguration> topicConfigurations ) { this.configurations.clear(); if (topicConfigurations != null) { for (TopicConfiguration topicConfiguration : topicConfigurations) { addConfiguration(UUID.randomUUID().toString(), topicConfiguration); } } }
/** * <p> * Creates a new bucket notification configuration containing the specified * <code>TopicConfigurations</code>. * </p> * <p> * Passing the new configuration directly to * {@link AmazonS3#setBucketNotificationConfiguration(String,BucketNotificationConfiguration)} * will set the bucket's notification configuration and overwrite any existing configuration. * </p> * @deprecated * @see BucketNotificationConfiguration#BucketNotificationConfiguration(String, NotificationConfiguration) */ public BucketNotificationConfiguration( Collection<TopicConfiguration> topicConfigurations ) { this.configurations = new HashMap<String, NotificationConfiguration>(); if (topicConfigurations != null){ for(TopicConfiguration config : topicConfigurations) { addConfiguration(UUID.randomUUID().toString(), config); } } }
Entry<String, NotificationConfiguration> entry = TopicConfigurationStaxUnmarshaller.getInstance() .unmarshall(context); config.addConfiguration(entry.getKey(), entry.getValue()); } else if (context.testExpression("QueueConfiguration", targetDepth)) { Entry<String, NotificationConfiguration> entry = QueueConfigurationStaxUnmarshaller.getInstance() .unmarshall(context); config.addConfiguration(entry.getKey(), entry.getValue()); } else if (context.testExpression("CloudFunctionConfiguration", targetDepth)) { Entry<String, NotificationConfiguration> entry = LambdaConfigurationStaxUnmarshaller.getInstance() .unmarshall(context); config.addConfiguration(entry.getKey(), entry.getValue());
/** * <p> * Creates a new bucket notification configuration with the given * configuration. * </p> * * @param name the name for the configuration * @param notificationConfiguration the notification configuration for the * Amazon S3 bucket. */ public BucketNotificationConfiguration(String name, NotificationConfiguration notificationConfiguration) { this.configurations = new HashMap<String, NotificationConfiguration>(); addConfiguration(name, notificationConfiguration); }
/** * <p> * Creates a new bucket notification configuration containing the specified * <code>TopicConfigurations</code>. * </p> * <p> * Passing the new configuration directly to * {@link AmazonS3#setBucketNotificationConfiguration(String,BucketNotificationConfiguration)} * will set the bucket's notification configuration and overwrite any * existing configuration. * </p> * * @deprecated * @see BucketNotificationConfiguration#BucketNotificationConfiguration(String, * NotificationConfiguration) */ @Deprecated public BucketNotificationConfiguration(Collection<TopicConfiguration> topicConfigurations) { this.configurations = new HashMap<String, NotificationConfiguration>(); if (topicConfigurations != null) { for (final TopicConfiguration config : topicConfigurations) { addConfiguration(UUID.randomUUID().toString(), config); } } }
/** * <p> * Sets the {@link BucketNotificationConfiguration.TopicConfiguration}. * </p> * <p> * Calling this method will overwrite any previously set * <code>TopicConfigurations</code> for this object. * </p> * * @param topicConfigurations A collection of topic configurations. * @deprecated * @see BucketNotificationConfiguration#setConfigurations(Map) */ @Deprecated public void setTopicConfigurations(Collection<TopicConfiguration> topicConfigurations) { this.configurations.clear(); if (topicConfigurations != null) { for (final TopicConfiguration topicConfiguration : topicConfigurations) { addConfiguration(UUID.randomUUID().toString(), topicConfiguration); } } }
final Entry<String, NotificationConfiguration> entry = TopicConfigurationStaxUnmarshaller.getInstance() .unmarshall(context); config.addConfiguration(entry.getKey(), entry.getValue()); } else if (context.testExpression("QueueConfiguration", targetDepth)) { final Entry<String, NotificationConfiguration> entry = QueueConfigurationStaxUnmarshaller.getInstance() .unmarshall(context); config.addConfiguration(entry.getKey(), entry.getValue()); } else if (context.testExpression("CloudFunctionConfiguration", targetDepth)) { final Entry<String, NotificationConfiguration> entry = LambdaConfigurationStaxUnmarshaller.getInstance() .unmarshall(context); config.addConfiguration(entry.getKey(), entry.getValue());
/** * <p> * Creates a new bucket notification configuration with the given configuration. * </p> * * @param name the name for the configuration * @param notificationConfiguration the notification configuration for the Amazon S3 bucket. */ public BucketNotificationConfiguration(String name, NotificationConfiguration notificationConfiguration) { this.configurations = new HashMap<String, NotificationConfiguration>(); addConfiguration(name, notificationConfiguration); }
/** * <p> * Creates a new bucket notification configuration with the given * configuration. * </p> * * @param name the name for the configuration * @param notificationConfiguration the notification configuration for the * Amazon S3 bucket. */ public BucketNotificationConfiguration(String name, NotificationConfiguration notificationConfiguration) { this.configurations = new HashMap<String, NotificationConfiguration>(); addConfiguration(name, notificationConfiguration); }
/** * <p> * Sets the {@link BucketNotificationConfiguration.TopicConfiguration}. * </p> * <p> * Calling this method will overwrite any * previously set <code>TopicConfigurations</code> for this object. * </p> * * @param topicConfigurations * A collection of topic configurations. * * @deprecated * @see BucketNotificationConfiguration#setConfigurations(Map) */ public void setTopicConfigurations( Collection<TopicConfiguration> topicConfigurations ) { this.configurations.clear(); if (topicConfigurations != null) { for (TopicConfiguration topicConfiguration : topicConfigurations) { addConfiguration(UUID.randomUUID().toString(), topicConfiguration); } } }
/** * <p> * Creates a new bucket notification configuration containing the specified * <code>TopicConfigurations</code>. * </p> * <p> * Passing the new configuration directly to * {@link AmazonS3#setBucketNotificationConfiguration(String,BucketNotificationConfiguration)} * will set the bucket's notification configuration and overwrite any existing configuration. * </p> * @deprecated * @see BucketNotificationConfiguration#BucketNotificationConfiguration(String, NotificationConfiguration) */ public BucketNotificationConfiguration( Collection<TopicConfiguration> topicConfigurations ) { this.configurations = new HashMap<String, NotificationConfiguration>(); if (topicConfigurations != null){ for(TopicConfiguration config : topicConfigurations) { addConfiguration(UUID.randomUUID().toString(), config); } } }
/** * <p> * Sets the {@link BucketNotificationConfiguration.TopicConfiguration}. * </p> * <p> * Calling this method will overwrite any previously set * <code>TopicConfigurations</code> for this object. * </p> * * @param topicConfigurations A collection of topic configurations. * @deprecated * @see BucketNotificationConfiguration#setConfigurations(Map) */ @Deprecated public void setTopicConfigurations(Collection<TopicConfiguration> topicConfigurations) { this.configurations.clear(); if (topicConfigurations != null) { for (final TopicConfiguration topicConfiguration : topicConfigurations) { addConfiguration(UUID.randomUUID().toString(), topicConfiguration); } } }
/** * <p> * Creates a new bucket notification configuration containing the specified * <code>TopicConfigurations</code>. * </p> * <p> * Passing the new configuration directly to * {@link AmazonS3#setBucketNotificationConfiguration(String,BucketNotificationConfiguration)} * will set the bucket's notification configuration and overwrite any * existing configuration. * </p> * * @deprecated * @see BucketNotificationConfiguration#BucketNotificationConfiguration(String, * NotificationConfiguration) */ @Deprecated public BucketNotificationConfiguration(Collection<TopicConfiguration> topicConfigurations) { this.configurations = new HashMap<String, NotificationConfiguration>(); if (topicConfigurations != null) { for (final TopicConfiguration config : topicConfigurations) { addConfiguration(UUID.randomUUID().toString(), config); } } }
Entry<String, NotificationConfiguration> entry = TopicConfigurationStaxUnmarshaller.getInstance() .unmarshall(context); config.addConfiguration(entry.getKey(), entry.getValue()); } else if (context.testExpression("QueueConfiguration", targetDepth)) { Entry<String, NotificationConfiguration> entry = QueueConfigurationStaxUnmarshaller.getInstance() .unmarshall(context); config.addConfiguration(entry.getKey(), entry.getValue()); } else if (context.testExpression("CloudFunctionConfiguration", targetDepth)) { Entry<String, NotificationConfiguration> entry = LambdaConfigurationStaxUnmarshaller.getInstance() .unmarshall(context); config.addConfiguration(entry.getKey(), entry.getValue());
final Entry<String, NotificationConfiguration> entry = TopicConfigurationStaxUnmarshaller.getInstance() .unmarshall(context); config.addConfiguration(entry.getKey(), entry.getValue()); } else if (context.testExpression("QueueConfiguration", targetDepth)) { final Entry<String, NotificationConfiguration> entry = QueueConfigurationStaxUnmarshaller.getInstance() .unmarshall(context); config.addConfiguration(entry.getKey(), entry.getValue()); } else if (context.testExpression("CloudFunctionConfiguration", targetDepth)) { final Entry<String, NotificationConfiguration> entry = LambdaConfigurationStaxUnmarshaller.getInstance() .unmarshall(context); config.addConfiguration(entry.getKey(), entry.getValue());