Class Meta.MetaBuilder

  • Enclosing class:
    Meta

    public static class Meta.MetaBuilder
    extends Object
    a builder class that is not generated with lombok because of the multiple setter-methods for created and last modified
    • Constructor Detail

      • MetaBuilder

        public MetaBuilder​(Meta meta)
    • Method Detail

      • created

        public Meta.MetaBuilder created​(Instant created)
        The "DateTime" that the resource was added to the service provider. This attribute MUST be a DateTime.
      • created

        public Meta.MetaBuilder created​(LocalDateTime created)
        The "DateTime" that the resource was added to the service provider. This attribute MUST be a DateTime.
      • created

        public Meta.MetaBuilder created​(OffsetDateTime created)
        The "DateTime" that the resource was added to the service provider. This attribute MUST be a DateTime.
      • lastModified

        public Meta.MetaBuilder lastModified​(Instant lastModified)
        The most recent DateTime that the details of this resource were updated at the service provider. If this resource has never been modified since its initial creation, the value MUST be the same as the value of "created".
      • lastModified

        public Meta.MetaBuilder lastModified​(LocalDateTime lastModified)
        The most recent DateTime that the details of this resource were updated at the service provider. If this resource has never been modified since its initial creation, the value MUST be the same as the value of "created".
      • lastModified

        public Meta.MetaBuilder lastModified​(OffsetDateTime lastModified)
        The most recent DateTime that the details of this resource were updated at the service provider. If this resource has never been modified since its initial creation, the value MUST be the same as the value of "created".
      • location

        public Meta.MetaBuilder location​(String location)
        The URI of the resource being returned. This value MUST be the same as the "Content-Location" HTTP response header (see Section 3.1.4.2 of [RFC7231]).
      • resourceType

        public Meta.MetaBuilder resourceType​(String resourceType)
        The name of the resource type of the resource. This attribute has a mutability of "readOnly" and "caseExact" as "true".
      • version

        public Meta.MetaBuilder version​(String version)
        The version of the resource being returned. This value must be the same as the entity-tag (ETag) HTTP response header (see Sections 2.1 and 2.3 of [RFC7232]). This attribute has "caseExact" as "true". Service provider support for this attribute is optional and subject to the service provider's support for versioning (see Section 3.14 of [RFC7644]). If a service provider provides "version" (entity-tag) for a representation and the generation of that entity-tag does not satisfy all of the characteristics of a strong validator (see Section 2.1 of [RFC7232]), then the origin server MUST mark the "version" (entity-tag) as weak by prefixing its opaque value with "W/" (case sensitive).
      • version

        public Meta.MetaBuilder version​(ETag version)
        The version of the resource being returned. This value must be the same as the entity-tag (ETag) HTTP response header (see Sections 2.1 and 2.3 of [RFC7232]). This attribute has "caseExact" as "true". Service provider support for this attribute is optional and subject to the service provider's support for versioning (see Section 3.14 of [RFC7644]). If a service provider provides "version" (entity-tag) for a representation and the generation of that entity-tag does not satisfy all of the characteristics of a strong validator (see Section 2.1 of [RFC7232]), then the origin server MUST mark the "version" (entity-tag) as weak by prefixing its opaque value with "W/" (case sensitive).
      • build

        public Meta build()
        returns the built meta-object