
com.hp.autonomy.frontend.configuration.GetVersionResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of configuration-idol Show documentation
Show all versions of configuration-idol Show documentation
IDOL implementation of the Micro Focus IDOL Configuration API
/*
* Copyright 2013-2015 Hewlett-Packard Development Company, L.P.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
*/
package com.hp.autonomy.frontend.configuration;
import com.autonomy.aci.client.annotations.IdolBuilder;
import com.autonomy.aci.client.annotations.IdolBuilderBuild;
import com.autonomy.aci.client.annotations.IdolDocument;
import com.autonomy.aci.client.annotations.IdolField;
import lombok.Data;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
@IdolDocument("responsedata")
@Data
public class GetVersionResponse {
private final Set productTypes;
private GetVersionResponse(final Set productTypes) {
this.productTypes = productTypes;
}
@IdolDocument("responsedata")
@IdolBuilder
public static class Builder {
private Set productTypes;
@IdolField("autn:producttypecsv")
public Builder setProductTypes(final String productTypes) {
this.productTypes = new HashSet<>(Arrays.asList(productTypes.split(",")));
return this;
}
@IdolBuilderBuild
public GetVersionResponse build() {
return new GetVersionResponse(productTypes);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy