Module com.azure.runtime.host
Package com.azure.runtime.host.resources
Class Container<T extends Container<T>>
java.lang.Object
com.azure.runtime.host.resources.Resource<T>
com.azure.runtime.host.resources.Container<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>
,ResourceWithArguments<T>
,ResourceWithEndpoints<T>
,ResourceWithEnvironment<T>
,ResourceWithLifecycle
,ResourceWithReference<T>
,SelfAware<T>
- Direct Known Subclasses:
MicroserviceProject
public class Container<T extends Container<T>>
extends Resource<T>
implements ResourceWithArguments<T>, ResourceWithEnvironment<T>, ResourceWithEndpoints<T>, ResourceWithReference<T>
Represents a generic container resource.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionself()
Returns a reference to the object that implements this interface.withBindMount
(Container.BindMount bindMount) withEntryPoint
(String entryPoint) withVolume
(Container.Volume volume) 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.ResourceWithArguments
withArgument, withArguments, withArguments
Methods inherited from interface com.azure.runtime.host.resources.traits.ResourceWithEndpoints
getEndpoint, getEndpoints, withExternalHttpEndpoints, withHttpEndpoint, withHttpEndpoint, withHttpsEndpoint, withHttpsEndpoint
Methods inherited from interface com.azure.runtime.host.resources.traits.ResourceWithEnvironment
withEnvironment, withEnvironment, withEnvironment, withReference, withReference, withReference
Methods inherited from interface com.azure.runtime.host.resources.traits.ResourceWithLifecycle
onResourceAdded, onResourcePrecommit, onResourceRemoved
Methods inherited from interface com.azure.runtime.host.resources.traits.ResourceWithReference
withReference
-
Constructor Details
-
Container
-
Container
-
Container
-
-
Method Details
-
withImage
-
withEntryPoint
-
withVolume
-
withBindMount
-
self
Description copied from interface:SelfAware
Returns a reference to the object that implements this interface.
-