org.graylog.integrations.ipfix.IpfixMessage Maven / Gradle / Ivy
/*
* Copyright (C) 2020 Graylog, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* Server Side Public License for more details.
*
* You should have received a copy of the Server Side Public License
* along with this program. If not, see
* .
*/
package org.graylog.integrations.ipfix;
import com.google.auto.value.AutoValue;
import com.google.common.collect.ImmutableList;
import java.util.Set;
@AutoValue
public abstract class IpfixMessage {
public static Builder builder() {
return new AutoValue_IpfixMessage.Builder();
}
public abstract ImmutableList templateRecords();
public abstract ImmutableList optionsTemplateRecords();
public abstract ImmutableList flows();
@AutoValue.Builder
public abstract static class Builder {
public abstract Builder templateRecords(ImmutableList templateRecords);
public abstract ImmutableList.Builder templateRecordsBuilder();
public abstract Builder optionsTemplateRecords(ImmutableList optionsTemplateRecords);
public abstract ImmutableList.Builder optionsTemplateRecordsBuilder();
public abstract Builder flows(ImmutableList flows);
public abstract ImmutableList.Builder flowsBuilder();
public abstract IpfixMessage build();
public Builder addAllTemplates(Set templateRecords) {
templateRecordsBuilder().addAll(templateRecords);
return this;
}
public Builder addAllOptionsTemplateSet(Set optionsTemplateRecords) {
optionsTemplateRecordsBuilder().addAll(optionsTemplateRecords);
return this;
}
public Builder addAllFlows(Set flows) {
flowsBuilder().addAll(flows);
return this;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy