// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.developer.devcenter.generated;

import com.azure.core.http.rest.RequestOptions;
import com.azure.core.http.rest.Response;
import com.azure.core.util.BinaryData;
import com.azure.developer.devcenter.DevBoxesClient;
import com.azure.developer.devcenter.DevBoxesClientBuilder;
import com.azure.identity.DefaultAzureCredentialBuilder;
import java.time.OffsetDateTime;

public class DevBoxesDelayUpcomingAction {
    public static void main(String[] args) {
        DevBoxesClient devBoxesClient =
                new DevBoxesClientBuilder()
                        .credential(new DefaultAzureCredentialBuilder().build())
                        .endpoint(
                                "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/")
                        .buildClient();
        // BEGIN:com.azure.developer.devcenter.generated.devboxesdelayupcomingaction.devboxesdelayupcomingaction
        RequestOptions requestOptions = new RequestOptions();
        Response<BinaryData> response =
                devBoxesClient.delayUpcomingActionWithResponse(
                        "myProject",
                        "me",
                        "myDevBox",
                        "cae4d1f4-94b8-75f2-406d-5f00ae4c1da7",
                        OffsetDateTime.parse("2022-09-30T17:00:00Z"),
                        requestOptions);
        // END:com.azure.developer.devcenter.generated.devboxesdelayupcomingaction.devboxesdelayupcomingaction
    }
}
