@Value.Immutable public interface ReportMetricsRequest extends RESTRequest
| Modifier and Type | Interface and Description |
|---|---|
static class |
ReportMetricsRequest.ReportType |
| Modifier and Type | Method and Description |
|---|---|
static ReportMetricsRequest |
of(MetricsReport report) |
MetricsReport |
report() |
ReportMetricsRequest.ReportType |
reportType() |
default void |
validate()
Ensures that a constructed instance of a REST message is valid according to the REST spec.
|
ReportMetricsRequest.ReportType reportType()
MetricsReport report()
default void validate()
RESTMessageThis is needed when parsing data that comes from external sources and the object might have been constructed without all the required fields present.
validate in interface RESTMessagestatic ReportMetricsRequest of(MetricsReport report)