Interface GetMicrovmResponse.Builder

  • Method Details

    • microvmId

      GetMicrovmResponse.Builder microvmId(String microvmId)

      The unique identifier of the MicroVM.

      Parameters:
      microvmId - The unique identifier of the MicroVM.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • state

      The current lifecycle state of the MicroVM.

      Parameters:
      state - The current lifecycle state of the MicroVM.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • state

      The current lifecycle state of the MicroVM.

      Parameters:
      state - The current lifecycle state of the MicroVM.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • endpoint

      GetMicrovmResponse.Builder endpoint(String endpoint)

      The HTTPS endpoint URL for communicating with the MicroVM. Include a valid authentication token in the X-aws-proxy-auth header when sending requests.

      Parameters:
      endpoint - The HTTPS endpoint URL for communicating with the MicroVM. Include a valid authentication token in the X-aws-proxy-auth header when sending requests.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • imageArn

      GetMicrovmResponse.Builder imageArn(String imageArn)

      The ARN of the MicroVM image used to run this MicroVM.

      Parameters:
      imageArn - The ARN of the MicroVM image used to run this MicroVM.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • imageVersion

      GetMicrovmResponse.Builder imageVersion(String imageVersion)

      The version of the MicroVM image used to run this MicroVM.

      Parameters:
      imageVersion - The version of the MicroVM image used to run this MicroVM.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • executionRoleArn

      GetMicrovmResponse.Builder executionRoleArn(String executionRoleArn)

      The ARN of the IAM execution role assumed by the MicroVM.

      Parameters:
      executionRoleArn - The ARN of the IAM execution role assumed by the MicroVM.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • idlePolicy

      GetMicrovmResponse.Builder idlePolicy(IdlePolicy idlePolicy)

      The idle policy configuration of the MicroVM, controlling auto-suspend and auto-resume behavior.

      Parameters:
      idlePolicy - The idle policy configuration of the MicroVM, controlling auto-suspend and auto-resume behavior.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • idlePolicy

      default GetMicrovmResponse.Builder idlePolicy(Consumer<IdlePolicy.Builder> idlePolicy)

      The idle policy configuration of the MicroVM, controlling auto-suspend and auto-resume behavior.

      This is a convenience method that creates an instance of the IdlePolicy.Builder avoiding the need to create one manually via IdlePolicy.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to idlePolicy(IdlePolicy).

      Parameters:
      idlePolicy - a consumer that will call methods on IdlePolicy.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • maximumDurationInSeconds

      GetMicrovmResponse.Builder maximumDurationInSeconds(Integer maximumDurationInSeconds)

      The maximum duration in seconds that the MicroVM can exist before being terminated by the platform.

      Parameters:
      maximumDurationInSeconds - The maximum duration in seconds that the MicroVM can exist before being terminated by the platform.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • startedAt

      GetMicrovmResponse.Builder startedAt(Instant startedAt)

      The timestamp when the MicroVM first started.

      Parameters:
      startedAt - The timestamp when the MicroVM first started.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • terminatedAt

      GetMicrovmResponse.Builder terminatedAt(Instant terminatedAt)

      The timestamp when the MicroVM terminated.

      Parameters:
      terminatedAt - The timestamp when the MicroVM terminated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • stateReason

      GetMicrovmResponse.Builder stateReason(String stateReason)

      The reason for why the MicroVM is in the current state.

      Parameters:
      stateReason - The reason for why the MicroVM is in the current state.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ingressNetworkConnectors

      GetMicrovmResponse.Builder ingressNetworkConnectors(Collection<String> ingressNetworkConnectors)

      The list of ingress network connectors configured for the MicroVM.

      Parameters:
      ingressNetworkConnectors - The list of ingress network connectors configured for the MicroVM.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ingressNetworkConnectors

      GetMicrovmResponse.Builder ingressNetworkConnectors(String... ingressNetworkConnectors)

      The list of ingress network connectors configured for the MicroVM.

      Parameters:
      ingressNetworkConnectors - The list of ingress network connectors configured for the MicroVM.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • egressNetworkConnectors

      GetMicrovmResponse.Builder egressNetworkConnectors(Collection<String> egressNetworkConnectors)

      The list of egress network connectors configured for the MicroVM.

      Parameters:
      egressNetworkConnectors - The list of egress network connectors configured for the MicroVM.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • egressNetworkConnectors

      GetMicrovmResponse.Builder egressNetworkConnectors(String... egressNetworkConnectors)

      The list of egress network connectors configured for the MicroVM.

      Parameters:
      egressNetworkConnectors - The list of egress network connectors configured for the MicroVM.
      Returns:
      Returns a reference to this object so that method calls can be chained together.