Package com.datadog.api.client.v2.model
Class ScheduleUpdateRequestDataAttributesLayersItems
java.lang.Object
com.datadog.api.client.v2.model.ScheduleUpdateRequestDataAttributesLayersItems
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ScheduleUpdateRequestDataAttributesLayersItems
extends Object
Represents a layer within a schedule update, including rotation details, members, and optional
restrictions.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionScheduleUpdateRequestDataAttributesLayersItems(OffsetDateTime effectiveDate, LayerAttributesInterval interval, List<ScheduleRequestDataAttributesLayersItemsMembersItems> members, String name, OffsetDateTime rotationStart) -
Method Summary
Modifier and TypeMethodDescriptionaddRestrictionsItem(TimeRestriction restrictionsItem) effectiveDate(OffsetDateTime effectiveDate) endDate(OffsetDateTime endDate) booleanReturn true if this ScheduleUpdateRequestDataAttributesLayersItems object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.When this updated layer takes effect (ISO 8601 format).When this updated layer should stop being active (ISO 8601 format).getId()A unique identifier for the layer being updated.Defines how often the rotation repeats, using a combination of days and optional seconds.The members assigned to this layer.getName()The name for this layer (for example, "Secondary Coverage").Any time restrictions that define when this layer is active.The date/time at which the rotation begins (ISO 8601 format).The time zone for this layer.inthashCode()interval(LayerAttributesInterval interval) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.restrictions(List<TimeRestriction> restrictions) rotationStart(OffsetDateTime rotationStart) voidsetEffectiveDate(OffsetDateTime effectiveDate) voidsetEndDate(OffsetDateTime endDate) voidvoidsetInterval(LayerAttributesInterval interval) voidvoidvoidsetRestrictions(List<TimeRestriction> restrictions) voidsetRotationStart(OffsetDateTime rotationStart) voidsetTimeZone(String timeZone) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_EFFECTIVE_DATE
- See Also:
-
JSON_PROPERTY_END_DATE
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_INTERVAL
- See Also:
-
JSON_PROPERTY_MEMBERS
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_RESTRICTIONS
- See Also:
-
JSON_PROPERTY_ROTATION_START
- See Also:
-
JSON_PROPERTY_TIME_ZONE
- See Also:
-
-
Constructor Details
-
ScheduleUpdateRequestDataAttributesLayersItems
public ScheduleUpdateRequestDataAttributesLayersItems() -
ScheduleUpdateRequestDataAttributesLayersItems
public ScheduleUpdateRequestDataAttributesLayersItems(OffsetDateTime effectiveDate, LayerAttributesInterval interval, List<ScheduleRequestDataAttributesLayersItemsMembersItems> members, String name, OffsetDateTime rotationStart)
-
-
Method Details
-
effectiveDate
-
getEffectiveDate
When this updated layer takes effect (ISO 8601 format).- Returns:
- effectiveDate
-
setEffectiveDate
-
endDate
-
getEndDate
When this updated layer should stop being active (ISO 8601 format).- Returns:
- endDate
-
setEndDate
-
id
-
getId
A unique identifier for the layer being updated.- Returns:
- id
-
setId
-
interval
-
getInterval
Defines how often the rotation repeats, using a combination of days and optional seconds. Should be at least 1 hour.- Returns:
- interval
-
setInterval
-
members
public ScheduleUpdateRequestDataAttributesLayersItems members(List<ScheduleRequestDataAttributesLayersItemsMembersItems> members) -
addMembersItem
public ScheduleUpdateRequestDataAttributesLayersItems addMembersItem(ScheduleRequestDataAttributesLayersItemsMembersItems membersItem) -
getMembers
The members assigned to this layer.- Returns:
- members
-
setMembers
-
name
-
getName
The name for this layer (for example, "Secondary Coverage").- Returns:
- name
-
setName
-
restrictions
public ScheduleUpdateRequestDataAttributesLayersItems restrictions(List<TimeRestriction> restrictions) -
addRestrictionsItem
public ScheduleUpdateRequestDataAttributesLayersItems addRestrictionsItem(TimeRestriction restrictionsItem) -
getRestrictions
Any time restrictions that define when this layer is active.- Returns:
- restrictions
-
setRestrictions
-
rotationStart
-
getRotationStart
The date/time at which the rotation begins (ISO 8601 format).- Returns:
- rotationStart
-
setRotationStart
-
timeZone
-
getTimeZone
The time zone for this layer.- Returns:
- timeZone
-
setTimeZone
-
putAdditionalProperty
public ScheduleUpdateRequestDataAttributesLayersItems putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- The arbitrary key to setvalue- The associated value- Returns:
- ScheduleUpdateRequestDataAttributesLayersItems
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- The arbitrary key to get- Returns:
- The specific additional property for the given key
-
equals
Return true if this ScheduleUpdateRequestDataAttributesLayersItems object is equal to o. -
hashCode
public int hashCode() -
toString
-