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

package com.azure.resourcemanager.storagemover.generated;

import com.azure.resourcemanager.storagemover.models.CopyMode;

/** Samples for JobDefinitions CreateOrUpdate. */
public final class JobDefinitionsCreateOrUpdateSamples {
    /*
     * x-ms-original-file: specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-03-01/examples/JobDefinitions_CreateOrUpdate.json
     */
    /**
     * Sample code: JobDefinitions_CreateOrUpdate.
     *
     * @param manager Entry point to StorageMoverManager.
     */
    public static void jobDefinitionsCreateOrUpdate(
        com.azure.resourcemanager.storagemover.StorageMoverManager manager) {
        manager
            .jobDefinitions()
            .define("examples-jobDefinitionName")
            .withExistingProject("examples-rg", "examples-storageMoverName", "examples-projectName")
            .withCopyMode(CopyMode.ADDITIVE)
            .withSourceName("examples-sourceEndpointName")
            .withTargetName("examples-targetEndpointName")
            .withDescription("Example Job Definition Description")
            .withSourceSubpath("/")
            .withTargetSubpath("/")
            .withAgentName("migration-agent")
            .create();
    }
}
