/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.opensearch.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UpdateScheduledActionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The name of the domain to reschedule an action for. *

*/ private String domainName; /** *

* The unique identifier of the action to reschedule. To retrieve this ID, send a ListScheduledActions request. *

*/ private String actionID; /** *

* The type of action to reschedule. Can be one of SERVICE_SOFTWARE_UPDATE, * JVM_HEAP_SIZE_TUNING, or JVM_YOUNG_GEN_TUNING. To retrieve this value, send a ListScheduledActions request. *

*/ private String actionType; /** *

* When to schedule the action. *

* */ private String scheduleAt; /** *

* The time to implement the change, in Coordinated Universal Time (UTC). Only specify this parameter if you set * ScheduleAt to TIMESTAMP. *

*/ private Long desiredStartTime; /** *

* The name of the domain to reschedule an action for. *

* * @param domainName * The name of the domain to reschedule an action for. */ public void setDomainName(String domainName) { this.domainName = domainName; } /** *

* The name of the domain to reschedule an action for. *

* * @return The name of the domain to reschedule an action for. */ public String getDomainName() { return this.domainName; } /** *

* The name of the domain to reschedule an action for. *

* * @param domainName * The name of the domain to reschedule an action for. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateScheduledActionRequest withDomainName(String domainName) { setDomainName(domainName); return this; } /** *

* The unique identifier of the action to reschedule. To retrieve this ID, send a ListScheduledActions request. *

* * @param actionID * The unique identifier of the action to reschedule. To retrieve this ID, send a ListScheduledActions request. */ public void setActionID(String actionID) { this.actionID = actionID; } /** *

* The unique identifier of the action to reschedule. To retrieve this ID, send a ListScheduledActions request. *

* * @return The unique identifier of the action to reschedule. To retrieve this ID, send a ListScheduledActions request. */ public String getActionID() { return this.actionID; } /** *

* The unique identifier of the action to reschedule. To retrieve this ID, send a ListScheduledActions request. *

* * @param actionID * The unique identifier of the action to reschedule. To retrieve this ID, send a ListScheduledActions request. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateScheduledActionRequest withActionID(String actionID) { setActionID(actionID); return this; } /** *

* The type of action to reschedule. Can be one of SERVICE_SOFTWARE_UPDATE, * JVM_HEAP_SIZE_TUNING, or JVM_YOUNG_GEN_TUNING. To retrieve this value, send a ListScheduledActions request. *

* * @param actionType * The type of action to reschedule. Can be one of SERVICE_SOFTWARE_UPDATE, * JVM_HEAP_SIZE_TUNING, or JVM_YOUNG_GEN_TUNING. To retrieve this value, send a * ListScheduledActions request. * @see ActionType */ public void setActionType(String actionType) { this.actionType = actionType; } /** *

* The type of action to reschedule. Can be one of SERVICE_SOFTWARE_UPDATE, * JVM_HEAP_SIZE_TUNING, or JVM_YOUNG_GEN_TUNING. To retrieve this value, send a ListScheduledActions request. *

* * @return The type of action to reschedule. Can be one of SERVICE_SOFTWARE_UPDATE, * JVM_HEAP_SIZE_TUNING, or JVM_YOUNG_GEN_TUNING. To retrieve this value, send a * ListScheduledActions request. * @see ActionType */ public String getActionType() { return this.actionType; } /** *

* The type of action to reschedule. Can be one of SERVICE_SOFTWARE_UPDATE, * JVM_HEAP_SIZE_TUNING, or JVM_YOUNG_GEN_TUNING. To retrieve this value, send a ListScheduledActions request. *

* * @param actionType * The type of action to reschedule. Can be one of SERVICE_SOFTWARE_UPDATE, * JVM_HEAP_SIZE_TUNING, or JVM_YOUNG_GEN_TUNING. To retrieve this value, send a * ListScheduledActions request. * @return Returns a reference to this object so that method calls can be chained together. * @see ActionType */ public UpdateScheduledActionRequest withActionType(String actionType) { setActionType(actionType); return this; } /** *

* The type of action to reschedule. Can be one of SERVICE_SOFTWARE_UPDATE, * JVM_HEAP_SIZE_TUNING, or JVM_YOUNG_GEN_TUNING. To retrieve this value, send a ListScheduledActions request. *

* * @param actionType * The type of action to reschedule. Can be one of SERVICE_SOFTWARE_UPDATE, * JVM_HEAP_SIZE_TUNING, or JVM_YOUNG_GEN_TUNING. To retrieve this value, send a * ListScheduledActions request. * @return Returns a reference to this object so that method calls can be chained together. * @see ActionType */ public UpdateScheduledActionRequest withActionType(ActionType actionType) { this.actionType = actionType.toString(); return this; } /** *

* When to schedule the action. *

* * * @param scheduleAt * When to schedule the action.

*