Package com.datadog.api.client.v2.model
Class ScheduleCreateRequestDataAttributesLayersItems
java.lang.Object
com.datadog.api.client.v2.model.ScheduleCreateRequestDataAttributesLayersItems
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ScheduleCreateRequestDataAttributesLayersItems
extends Object
Describes a schedule layer, including rotation intervals, members, restrictions, and timeline
settings.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionScheduleCreateRequestDataAttributesLayersItems(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 ScheduleCreateRequestDataAttributesLayersItems object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The date/time when this layer becomes active (in ISO 8601).The date/time after which this layer no longer applies (in ISO 8601).Defines how often the rotation repeats, using a combination of days and optional seconds.A list of members who participate in this layer's rotation.getName()The name of this layer.Zero or more time-based restrictions (for example, only weekdays, during business hours).The date/time when the rotation for this layer starts (in ISO 8601).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) voidsetInterval(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_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
-
ScheduleCreateRequestDataAttributesLayersItems
public ScheduleCreateRequestDataAttributesLayersItems() -
ScheduleCreateRequestDataAttributesLayersItems
public ScheduleCreateRequestDataAttributesLayersItems(OffsetDateTime effectiveDate, LayerAttributesInterval interval, List<ScheduleRequestDataAttributesLayersItemsMembersItems> members, String name, OffsetDateTime rotationStart)
-
-
Method Details
-
effectiveDate
-
getEffectiveDate
The date/time when this layer becomes active (in ISO 8601).- Returns:
- effectiveDate
-
setEffectiveDate
-
endDate
-
getEndDate
The date/time after which this layer no longer applies (in ISO 8601).- Returns:
- endDate
-
setEndDate
-
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 ScheduleCreateRequestDataAttributesLayersItems members(List<ScheduleRequestDataAttributesLayersItemsMembersItems> members) -
addMembersItem
public ScheduleCreateRequestDataAttributesLayersItems addMembersItem(ScheduleRequestDataAttributesLayersItemsMembersItems membersItem) -
getMembers
A list of members who participate in this layer's rotation.- Returns:
- members
-
setMembers
-
name
-
getName
The name of this layer.- Returns:
- name
-
setName
-
restrictions
public ScheduleCreateRequestDataAttributesLayersItems restrictions(List<TimeRestriction> restrictions) -
addRestrictionsItem
public ScheduleCreateRequestDataAttributesLayersItems addRestrictionsItem(TimeRestriction restrictionsItem) -
getRestrictions
Zero or more time-based restrictions (for example, only weekdays, during business hours).- Returns:
- restrictions
-
setRestrictions
-
rotationStart
-
getRotationStart
The date/time when the rotation for this layer starts (in ISO 8601).- Returns:
- rotationStart
-
setRotationStart
-
timeZone
-
getTimeZone
The time zone for this layer.- Returns:
- timeZone
-
setTimeZone
-
putAdditionalProperty
public ScheduleCreateRequestDataAttributesLayersItems 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:
- ScheduleCreateRequestDataAttributesLayersItems
-
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 ScheduleCreateRequestDataAttributesLayersItems object is equal to o. -
hashCode
public int hashCode() -
toString
-