Class Provenance
- java.lang.Object
-
- com.styra.opa.openapi.models.shared.Provenance
-
public class Provenance extends java.lang.Object
Provenance - Provenance information can be requested on individual API calls and are returned inline with the API response. To obtain provenance information on an API call, specify the `provenance=true` query parameter when executing the API call.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Provenance.Builder
-
Constructor Summary
Constructors Constructor Description Provenance()
Provenance(java.util.Optional<java.lang.String> version, java.util.Optional<java.lang.String> buildCommit, java.util.Optional<java.time.OffsetDateTime> buildTimestamp, java.util.Optional<java.lang.String> buildHost, java.util.Optional<? extends java.util.Map<java.lang.String,Revision>> bundles)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.String>
buildCommit()
static Provenance.Builder
builder()
java.util.Optional<java.lang.String>
buildHost()
java.util.Optional<java.time.OffsetDateTime>
buildTimestamp()
java.util.Optional<java.util.Map<java.lang.String,Revision>>
bundles()
boolean
equals(java.lang.Object o)
int
hashCode()
java.lang.String
toString()
java.util.Optional<java.lang.String>
version()
Provenance
withBuildCommit(java.lang.String buildCommit)
Provenance
withBuildCommit(java.util.Optional<java.lang.String> buildCommit)
Provenance
withBuildHost(java.lang.String buildHost)
Provenance
withBuildHost(java.util.Optional<java.lang.String> buildHost)
Provenance
withBuildTimestamp(java.time.OffsetDateTime buildTimestamp)
Provenance
withBuildTimestamp(java.util.Optional<java.time.OffsetDateTime> buildTimestamp)
Provenance
withBundles(java.util.Map<java.lang.String,Revision> bundles)
Provenance
withBundles(java.util.Optional<? extends java.util.Map<java.lang.String,Revision>> bundles)
Provenance
withVersion(java.lang.String version)
Provenance
withVersion(java.util.Optional<java.lang.String> version)
-
-
-
Constructor Detail
-
Provenance
public Provenance(java.util.Optional<java.lang.String> version, java.util.Optional<java.lang.String> buildCommit, java.util.Optional<java.time.OffsetDateTime> buildTimestamp, java.util.Optional<java.lang.String> buildHost, java.util.Optional<? extends java.util.Map<java.lang.String,Revision>> bundles)
-
Provenance
public Provenance()
-
-
Method Detail
-
version
public java.util.Optional<java.lang.String> version()
-
buildCommit
public java.util.Optional<java.lang.String> buildCommit()
-
buildTimestamp
public java.util.Optional<java.time.OffsetDateTime> buildTimestamp()
-
buildHost
public java.util.Optional<java.lang.String> buildHost()
-
bundles
public java.util.Optional<java.util.Map<java.lang.String,Revision>> bundles()
-
builder
public static final Provenance.Builder builder()
-
withVersion
public Provenance withVersion(java.lang.String version)
-
withVersion
public Provenance withVersion(java.util.Optional<java.lang.String> version)
-
withBuildCommit
public Provenance withBuildCommit(java.lang.String buildCommit)
-
withBuildCommit
public Provenance withBuildCommit(java.util.Optional<java.lang.String> buildCommit)
-
withBuildTimestamp
public Provenance withBuildTimestamp(java.time.OffsetDateTime buildTimestamp)
-
withBuildTimestamp
public Provenance withBuildTimestamp(java.util.Optional<java.time.OffsetDateTime> buildTimestamp)
-
withBuildHost
public Provenance withBuildHost(java.lang.String buildHost)
-
withBuildHost
public Provenance withBuildHost(java.util.Optional<java.lang.String> buildHost)
-
withBundles
public Provenance withBundles(java.util.Map<java.lang.String,Revision> bundles)
-
withBundles
public Provenance withBundles(java.util.Optional<? extends java.util.Map<java.lang.String,Revision>> bundles)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-