Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. */
package com.microsoft.azure.arm.collection; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.management.apigeneration.LangDefinition; import com.microsoft.azure.management.apigeneration.LangDefinition.MethodConversion;
Providing access to creating Azure top level resources.

(Note: this interface is not intended to be implemented by user code)

Type parameters:
  • <T> – the initial blank definition interface
/** * Providing access to creating Azure top level resources. * <p> * (Note: this interface is not intended to be implemented by user code) * @param <T> the initial blank definition interface */
@LangDefinition(ContainerName = "CollectionActions", MethodConversionType = MethodConversion.OnlyMethod) public interface SupportsCreating<T> {
Begins a definition for a new resource.

This is the beginning of the builder pattern used to create top level resources in Azure. The final method completing the definition and starting the actual resource creation process in Azure is Creatable.create().

Note that the Creatable.create() method is only available at the stage of the resource definition that has the minimum set of input parameters specified. If you do not see Creatable.create() among the available methods, it means you have not yet specified all the required input settings. Input settings generally begin with the word "with", for example: .withNewResourceGroup() and return the next stage of the resource definition, as an interface in the "fluent interface" style.

Params:
  • name – the name of the new resource
Returns:the first stage of the new resource definition
/** * Begins a definition for a new resource. * <p> * This is the beginning of the builder pattern used to create top level resources * in Azure. The final method completing the definition and starting the actual resource creation * process in Azure is {@link Creatable#create()}. * <p> * Note that the {@link Creatable#create()} method is * only available at the stage of the resource definition that has the minimum set of input * parameters specified. If you do not see {@link Creatable#create()} among the available methods, it * means you have not yet specified all the required input settings. Input settings generally begin * with the word "with", for example: <code>.withNewResourceGroup()</code> and return the next stage * of the resource definition, as an interface in the "fluent interface" style. * @param name the name of the new resource * @return the first stage of the new resource definition */
T define(String name); }