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

io.timson.firehose.request.CreateDeliveryStreamRequest Maven / Gradle / Ivy

There is a newer version: 0.0.4
Show newest version
package io.timson.firehose.request;

import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.ObjectMapper;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

public class CreateDeliveryStreamRequest {

    private static final ObjectMapper mapper = new ObjectMapper();

    @JsonProperty("DeliveryStreamName")
    private String name;

    @JsonProperty("ExtendedS3DestinationConfiguration")
    private S3DeliveryStreamConfig s3DeliveryStreamRequest;

    private Map otherProperties = new HashMap<>();

    @JsonAnyGetter
    public Map any() {
        return otherProperties;
    }

    @JsonAnySetter
    public void set(String name, Object value) {
        otherProperties.put(name, value);
    }

    public static CreateDeliveryStreamRequest fromJson(String json) throws IOException {
        return mapper.readValue(json, CreateDeliveryStreamRequest.class);
    }

    public String getName() {
        return name;
    }

    public S3DeliveryStreamConfig getS3DeliveryStreamRequest() {
        return s3DeliveryStreamRequest;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy