public interface Zone extends BaseResource, DomainResource<Zone>
Modifier and Type | Method and Description |
---|---|
static ZoneBuilder |
builder() |
static ZoneBuilder |
builder(Zone template) |
@NotNull ZonedDateTime |
getCreatedAt() |
@Valid CreatedBy |
getCreatedBy() |
String |
getDescription() |
@NotNull String |
getId()
The unique ID of the zone.
|
String |
getKey()
User-specific unique identifier for a zone.
|
@NotNull ZonedDateTime |
getLastModifiedAt() |
@Valid LastModifiedBy |
getLastModifiedBy() |
@NotNull @Valid List<Location> |
getLocations() |
@NotNull String |
getName() |
@NotNull Long |
getVersion()
The current version of the zone.
|
static Zone |
of() |
static Zone |
of(Zone template) |
void |
setCreatedAt(ZonedDateTime createdAt) |
void |
setCreatedBy(CreatedBy createdBy) |
void |
setDescription(String description) |
void |
setId(String id) |
void |
setKey(String key) |
void |
setLastModifiedAt(ZonedDateTime lastModifiedAt) |
void |
setLastModifiedBy(LastModifiedBy lastModifiedBy) |
void |
setLocations(List<Location> locations) |
void |
setLocations(Location... locations) |
void |
setName(String name) |
void |
setVersion(Long version) |
default <T> T |
withZone(Function<Zone,T> helper) |
withBaseResource
get
@NotNull @NotNull String getId()
The unique ID of the zone.
getId
in interface BaseResource
getId
in interface DomainResource<Zone>
@NotNull @NotNull Long getVersion()
The current version of the zone.
getVersion
in interface BaseResource
getVersion
in interface DomainResource<Zone>
@NotNull @NotNull ZonedDateTime getCreatedAt()
getCreatedAt
in interface BaseResource
@NotNull @NotNull ZonedDateTime getLastModifiedAt()
getLastModifiedAt
in interface BaseResource
@Valid @Valid LastModifiedBy getLastModifiedBy()
@Valid @Valid CreatedBy getCreatedBy()
String getKey()
User-specific unique identifier for a zone. Must be unique across a project. The field can be reset using the Set Key UpdateAction.
@NotNull @NotNull String getName()
String getDescription()
void setId(String id)
setId
in interface BaseResource
void setVersion(Long version)
setVersion
in interface BaseResource
void setCreatedAt(ZonedDateTime createdAt)
setCreatedAt
in interface BaseResource
void setLastModifiedAt(ZonedDateTime lastModifiedAt)
setLastModifiedAt
in interface BaseResource
void setLastModifiedBy(LastModifiedBy lastModifiedBy)
void setCreatedBy(CreatedBy createdBy)
void setKey(String key)
void setName(String name)
void setDescription(String description)
void setLocations(Location... locations)
static Zone of()
static ZoneBuilder builder()
static ZoneBuilder builder(Zone template)