com.farao_community.farao.cse_valid.api.resource.CseValidFileResource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gridcapa-cse-valid-api Show documentation
Show all versions of gridcapa-cse-valid-api Show documentation
Client API to gridcapa cse validation process
The newest version!
/*
* Copyright (c) 2022, RTE (http://www.rte-france.com)
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package com.farao_community.farao.cse_valid.api.resource;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import java.util.Objects;
/**
* @author Theo Pascoli {@literal }
*/
public class CseValidFileResource {
private final String filename;
private final String url;
@JsonCreator
public CseValidFileResource(@JsonProperty("filename") String filename,
@JsonProperty("url") String url) {
this.filename = Objects.requireNonNull(filename);
this.url = Objects.requireNonNull(url);
}
public String getFilename() {
return filename;
}
public String getUrl() {
return url;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy