Package com.datadog.api.client.v2.model
Class FleetScheduleCreateAttributes
java.lang.Object
com.datadog.api.client.v2.model.FleetScheduleCreateAttributes
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class FleetScheduleCreateAttributes
extends Object
Attributes for creating a new schedule.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFleetScheduleCreateAttributes(String name, String query, FleetScheduleRecurrenceRule rule) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this FleetScheduleCreateAttributes object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getName()Human-readable name for the schedule.getQuery()Query used to filter and select target hosts for scheduled deployments.getRule()Defines the recurrence pattern for the schedule.The status of the schedule.Number of major versions behind the latest to target for upgrades.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidvoidvoidsetStatus(FleetScheduleStatus status) voidsetVersionToLatest(Long versionToLatest) status(FleetScheduleStatus status) toString()versionToLatest(Long versionToLatest)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_QUERY
- See Also:
-
JSON_PROPERTY_RULE
- See Also:
-
JSON_PROPERTY_STATUS
- See Also:
-
JSON_PROPERTY_VERSION_TO_LATEST
- See Also:
-
-
Constructor Details
-
FleetScheduleCreateAttributes
public FleetScheduleCreateAttributes() -
FleetScheduleCreateAttributes
-
-
Method Details
-
name
-
getName
Human-readable name for the schedule.- Returns:
- name
-
setName
-
query
-
getQuery
Query used to filter and select target hosts for scheduled deployments. Uses the Datadog query syntax.- Returns:
- query
-
setQuery
-
rule
-
getRule
Defines the recurrence pattern for the schedule. Specifies when deployments should be automatically triggered based on maintenance windows.- Returns:
- rule
-
setRule
-
status
-
getStatus
The status of the schedule. -active: The schedule is active and will create deployments according to its recurrence rule. -inactive: The schedule is inactive and will not create any deployments.- Returns:
- status
-
setStatus
-
versionToLatest
-
getVersionToLatest
Number of major versions behind the latest to target for upgrades. - 0: Always upgrade to the latest version (default) - 1: Upgrade to latest minus 1 major version - 2: Upgrade to latest minus 2 major versions Maximum value is 2. minimum: 0 maximum: 2- Returns:
- versionToLatest
-
setVersionToLatest
-
putAdditionalProperty
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:
- FleetScheduleCreateAttributes
-
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 FleetScheduleCreateAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-