Module com.azure.runtime.host
Package com.azure.runtime.host.resources
Class AzureBicepResource<T extends AzureBicepResource<T>>
java.lang.Object
com.azure.runtime.host.resources.Resource<T>
com.azure.runtime.host.resources.AzureBicepResource<T>
- Type Parameters:
T
- The specific type of the resource, which may or may not be a subtype of this class. This allows for method chaining, even when using a subtype, when used in conjunction with the API onSelfAware
.
- All Implemented Interfaces:
ResourceTrait<T>
,ResourceWithLifecycle
,ResourceWithParameters<T>
,ResourceWithTemplate<T>
,SelfAware<T>
- Direct Known Subclasses:
AzureEventHubsResource
,AzureOpenAIResource
,AzureStorageResource
public abstract class AzureBicepResource<T extends AzureBicepResource<T>>
extends Resource<T>
implements ResourceWithParameters<T>, ResourceWithTemplate<T>
Represents a
Resource
that is deployed using Azure Bicep.-
Constructor Summary
ConstructorDescriptionAzureBicepResource
(ResourceType type, String name) AzureBicepResource
(ResourceType type, String name, String path) AzureBicepResource
(String name) AzureBicepResource
(String name, String path) -
Method Summary
Modifier and TypeMethodDescriptionReturns a read-only map of parameters for this resource.self()
Returns a reference to the object that implements this interface.withParameter
(String name, Object value) Adds a parameter to this resource.Methods inherited from class com.azure.runtime.host.resources.Resource
copyInto, getAnnotations, getName, getType, withAnnotation
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.runtime.host.resources.traits.ResourceWithLifecycle
onResourceAdded, onResourcePrecommit, onResourceRemoved
Methods inherited from interface com.azure.runtime.host.resources.traits.ResourceWithParameters
withParameters
Methods inherited from interface com.azure.runtime.host.resources.traits.ResourceWithTemplate
processTemplate
-
Constructor Details
-
AzureBicepResource
-
AzureBicepResource
-
AzureBicepResource
-
AzureBicepResource
-
-
Method Details
-
withPath
-
withParameter
Description copied from interface:ResourceWithParameters
Adds a parameter to this resource.- Specified by:
withParameter
in interfaceResourceWithParameters<T extends AzureBicepResource<T>>
-
getParameters
Description copied from interface:ResourceWithParameters
Returns a read-only map of parameters for this resource.- Specified by:
getParameters
in interfaceResourceWithParameters<T extends AzureBicepResource<T>>
-
self
Description copied from interface:SelfAware
Returns a reference to the object that implements this interface.- Specified by:
self
in interfaceSelfAware<T extends AzureBicepResource<T>>
- Returns:
- A reference to the object that implements this interface.
-