All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ionoscloud.s3.messages.NotificationConfiguration Maven / Gradle / Ivy

The newest version!
package com.ionoscloud.s3.messages;

import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Namespace;
import org.simpleframework.xml.Root;

/**
 * Object representation of request XML of PutBucketNotificationConfiguration
 * API and response XML of GetBucketNotificationConfiguration
 * API.
 */
@Root(name = "NotificationConfiguration", strict = false)
@Namespace(reference = "http://s3.amazonaws.com/doc/2006-03-01/")
public class NotificationConfiguration {
  @ElementList(name = "CloudFunctionConfiguration", inline = true, required = false)
  private List cloudFunctionConfigurationList;

  @ElementList(name = "QueueConfiguration", inline = true, required = false)
  private List queueConfigurationList;

  @ElementList(name = "TopicConfiguration", inline = true, required = false)
  private List topicConfigurationList;

  public NotificationConfiguration() {}

  /** Returns cloud function configuration. */
  public List cloudFunctionConfigurationList() {
    return Collections.unmodifiableList(
        cloudFunctionConfigurationList == null
            ? new LinkedList<>()
            : cloudFunctionConfigurationList);
  }

  /** Sets cloud function configuration list. */
  public void setCloudFunctionConfigurationList(
      List cloudFunctionConfigurationList) {
    this.cloudFunctionConfigurationList =
        Collections.unmodifiableList(cloudFunctionConfigurationList);
  }

  /** Returns queue configuration list. */
  public List queueConfigurationList() {
    return Collections.unmodifiableList(
        queueConfigurationList == null ? new LinkedList<>() : queueConfigurationList);
  }

  /** Sets queue configuration list. */
  public void setQueueConfigurationList(List queueConfigurationList) {
    this.queueConfigurationList = Collections.unmodifiableList(queueConfigurationList);
  }

  /** Returns topic configuration list. */
  public List topicConfigurationList() {
    return Collections.unmodifiableList(
        topicConfigurationList == null ? new LinkedList<>() : topicConfigurationList);
  }

  /** Sets topic configuration list. */
  public void setTopicConfigurationList(List topicConfigurationList) {
    this.topicConfigurationList = Collections.unmodifiableList(topicConfigurationList);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy