Class ManagedEnvironmentInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.appcontainers.fluent.models.ManagedEnvironmentInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>

public final class ManagedEnvironmentInner extends com.azure.core.management.Resource
An environment for hosting container apps.
  • Constructor Details

    • ManagedEnvironmentInner

      public ManagedEnvironmentInner()
      Creates an instance of ManagedEnvironmentInner class.
  • Method Details

    • kind

      public String kind()
      Get the kind property: Kind of the Environment.
      Returns:
      the kind value.
    • withKind

      public ManagedEnvironmentInner withKind(String kind)
      Set the kind property: Kind of the Environment.
      Parameters:
      kind - the kind value to set.
      Returns:
      the ManagedEnvironmentInner object itself.
    • identity

      public ManagedServiceIdentity identity()
      Get the identity property: Managed identities for the Managed Environment to interact with other Azure services without maintaining any secrets or credentials in code.
      Returns:
      the identity value.
    • withIdentity

      public ManagedEnvironmentInner withIdentity(ManagedServiceIdentity identity)
      Set the identity property: Managed identities for the Managed Environment to interact with other Azure services without maintaining any secrets or credentials in code.
      Parameters:
      identity - the identity value to set.
      Returns:
      the ManagedEnvironmentInner object itself.
    • systemData

      public com.azure.core.management.SystemData systemData()
      Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
      Returns:
      the systemData value.
    • type

      public String type()
      Get the type property: The type of the resource.
      Overrides:
      type in class com.azure.core.management.ProxyResource
      Returns:
      the type value.
    • name

      public String name()
      Get the name property: The name of the resource.
      Overrides:
      name in class com.azure.core.management.ProxyResource
      Returns:
      the name value.
    • id

      public String id()
      Get the id property: Fully qualified resource Id for the resource.
      Overrides:
      id in class com.azure.core.management.ProxyResource
      Returns:
      the id value.
    • withLocation

      public ManagedEnvironmentInner withLocation(String location)
      Overrides:
      withLocation in class com.azure.core.management.Resource
    • withTags

      public ManagedEnvironmentInner withTags(Map<String,String> tags)
      Overrides:
      withTags in class com.azure.core.management.Resource
    • provisioningState

      public EnvironmentProvisioningState provisioningState()
      Get the provisioningState property: Provisioning state of the Environment.
      Returns:
      the provisioningState value.
    • daprAIInstrumentationKey

      public String daprAIInstrumentationKey()
      Get the daprAIInstrumentationKey property: Azure Monitor instrumentation key used by Dapr to export Service to Service communication telemetry.
      Returns:
      the daprAIInstrumentationKey value.
    • withDaprAIInstrumentationKey

      public ManagedEnvironmentInner withDaprAIInstrumentationKey(String daprAIInstrumentationKey)
      Set the daprAIInstrumentationKey property: Azure Monitor instrumentation key used by Dapr to export Service to Service communication telemetry.
      Parameters:
      daprAIInstrumentationKey - the daprAIInstrumentationKey value to set.
      Returns:
      the ManagedEnvironmentInner object itself.
    • daprAIConnectionString

      public String daprAIConnectionString()
      Get the daprAIConnectionString property: Application Insights connection string used by Dapr to export Service to Service communication telemetry.
      Returns:
      the daprAIConnectionString value.
    • withDaprAIConnectionString

      public ManagedEnvironmentInner withDaprAIConnectionString(String daprAIConnectionString)
      Set the daprAIConnectionString property: Application Insights connection string used by Dapr to export Service to Service communication telemetry.
      Parameters:
      daprAIConnectionString - the daprAIConnectionString value to set.
      Returns:
      the ManagedEnvironmentInner object itself.
    • vnetConfiguration

      public VnetConfiguration vnetConfiguration()
      Get the vnetConfiguration property: Vnet configuration for the environment.
      Returns:
      the vnetConfiguration value.
    • withVnetConfiguration

      public ManagedEnvironmentInner withVnetConfiguration(VnetConfiguration vnetConfiguration)
      Set the vnetConfiguration property: Vnet configuration for the environment.
      Parameters:
      vnetConfiguration - the vnetConfiguration value to set.
      Returns:
      the ManagedEnvironmentInner object itself.
    • deploymentErrors

      public String deploymentErrors()
      Get the deploymentErrors property: Any errors that occurred during deployment or deployment validation.
      Returns:
      the deploymentErrors value.
    • defaultDomain

      public String defaultDomain()
      Get the defaultDomain property: Default Domain Name for the cluster.
      Returns:
      the defaultDomain value.
    • staticIp

      public String staticIp()
      Get the staticIp property: Static IP of the Environment.
      Returns:
      the staticIp value.
    • appLogsConfiguration

      public AppLogsConfiguration appLogsConfiguration()
      Get the appLogsConfiguration property: Cluster configuration which enables the log daemon to export app logs to configured destination.
      Returns:
      the appLogsConfiguration value.
    • withAppLogsConfiguration

      public ManagedEnvironmentInner withAppLogsConfiguration(AppLogsConfiguration appLogsConfiguration)
      Set the appLogsConfiguration property: Cluster configuration which enables the log daemon to export app logs to configured destination.
      Parameters:
      appLogsConfiguration - the appLogsConfiguration value to set.
      Returns:
      the ManagedEnvironmentInner object itself.
    • zoneRedundant

      public Boolean zoneRedundant()
      Get the zoneRedundant property: Whether or not this Managed Environment is zone-redundant.
      Returns:
      the zoneRedundant value.
    • withZoneRedundant

      public ManagedEnvironmentInner withZoneRedundant(Boolean zoneRedundant)
      Set the zoneRedundant property: Whether or not this Managed Environment is zone-redundant.
      Parameters:
      zoneRedundant - the zoneRedundant value to set.
      Returns:
      the ManagedEnvironmentInner object itself.
    • customDomainConfiguration

      public CustomDomainConfiguration customDomainConfiguration()
      Get the customDomainConfiguration property: Custom domain configuration for the environment.
      Returns:
      the customDomainConfiguration value.
    • withCustomDomainConfiguration

      public ManagedEnvironmentInner withCustomDomainConfiguration(CustomDomainConfiguration customDomainConfiguration)
      Set the customDomainConfiguration property: Custom domain configuration for the environment.
      Parameters:
      customDomainConfiguration - the customDomainConfiguration value to set.
      Returns:
      the ManagedEnvironmentInner object itself.
    • eventStreamEndpoint

      public String eventStreamEndpoint()
      Get the eventStreamEndpoint property: The endpoint of the eventstream of the Environment.
      Returns:
      the eventStreamEndpoint value.
    • workloadProfiles

      public List<WorkloadProfile> workloadProfiles()
      Get the workloadProfiles property: Workload profiles configured for the Managed Environment.
      Returns:
      the workloadProfiles value.
    • withWorkloadProfiles

      public ManagedEnvironmentInner withWorkloadProfiles(List<WorkloadProfile> workloadProfiles)
      Set the workloadProfiles property: Workload profiles configured for the Managed Environment.
      Parameters:
      workloadProfiles - the workloadProfiles value to set.
      Returns:
      the ManagedEnvironmentInner object itself.
    • kedaConfiguration

      public KedaConfiguration kedaConfiguration()
      Get the kedaConfiguration property: The configuration of Keda component.
      Returns:
      the kedaConfiguration value.
    • withKedaConfiguration

      public ManagedEnvironmentInner withKedaConfiguration(KedaConfiguration kedaConfiguration)
      Set the kedaConfiguration property: The configuration of Keda component.
      Parameters:
      kedaConfiguration - the kedaConfiguration value to set.
      Returns:
      the ManagedEnvironmentInner object itself.
    • daprConfiguration

      public DaprConfiguration daprConfiguration()
      Get the daprConfiguration property: The configuration of Dapr component.
      Returns:
      the daprConfiguration value.
    • withDaprConfiguration

      public ManagedEnvironmentInner withDaprConfiguration(DaprConfiguration daprConfiguration)
      Set the daprConfiguration property: The configuration of Dapr component.
      Parameters:
      daprConfiguration - the daprConfiguration value to set.
      Returns:
      the ManagedEnvironmentInner object itself.
    • infrastructureResourceGroup

      public String infrastructureResourceGroup()
      Get the infrastructureResourceGroup property: Name of the platform-managed resource group created for the Managed Environment to host infrastructure resources. If a subnet ID is provided, this resource group will be created in the same subscription as the subnet.
      Returns:
      the infrastructureResourceGroup value.
    • withInfrastructureResourceGroup

      public ManagedEnvironmentInner withInfrastructureResourceGroup(String infrastructureResourceGroup)
      Set the infrastructureResourceGroup property: Name of the platform-managed resource group created for the Managed Environment to host infrastructure resources. If a subnet ID is provided, this resource group will be created in the same subscription as the subnet.
      Parameters:
      infrastructureResourceGroup - the infrastructureResourceGroup value to set.
      Returns:
      the ManagedEnvironmentInner object itself.
    • peerAuthentication

      Get the peerAuthentication property: Peer authentication settings for the Managed Environment.
      Returns:
      the peerAuthentication value.
    • withPeerAuthentication

      public ManagedEnvironmentInner withPeerAuthentication(ManagedEnvironmentPropertiesPeerAuthentication peerAuthentication)
      Set the peerAuthentication property: Peer authentication settings for the Managed Environment.
      Parameters:
      peerAuthentication - the peerAuthentication value to set.
      Returns:
      the ManagedEnvironmentInner object itself.
    • peerTrafficConfiguration

      public ManagedEnvironmentPropertiesPeerTrafficConfiguration peerTrafficConfiguration()
      Get the peerTrafficConfiguration property: Peer traffic settings for the Managed Environment.
      Returns:
      the peerTrafficConfiguration value.
    • withPeerTrafficConfiguration

      public ManagedEnvironmentInner withPeerTrafficConfiguration(ManagedEnvironmentPropertiesPeerTrafficConfiguration peerTrafficConfiguration)
      Set the peerTrafficConfiguration property: Peer traffic settings for the Managed Environment.
      Parameters:
      peerTrafficConfiguration - the peerTrafficConfiguration value to set.
      Returns:
      the ManagedEnvironmentInner object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
      Overrides:
      toJson in class com.azure.core.management.Resource
      Throws:
      IOException
    • fromJson

      public static ManagedEnvironmentInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ManagedEnvironmentInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ManagedEnvironmentInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ManagedEnvironmentInner.