currentAction = $currentAction; } /** * @return self::CURRENT_ACTION_* */ public function getCurrentAction() { return $this->currentAction; } /** * Output only. [Output only] The unique identifier for this resource. This * field is empty when instance does not exist. * * @param string $id */ public function setId($id) { $this->id = $id; } /** * @return string */ public function getId() { return $this->id; } /** * Output only. [Output Only] The URL of the instance. The URL can exist even * if the instance has not yet been created. * * @param string $instance */ public function setInstance($instance) { $this->instance = $instance; } /** * @return string */ public function getInstance() { return $this->instance; } /** * Output only. [Output Only] Health state of the instance per health-check. * * @param ManagedInstanceInstanceHealth[] $instanceHealth */ public function setInstanceHealth($instanceHealth) { $this->instanceHealth = $instanceHealth; } /** * @return ManagedInstanceInstanceHealth[] */ public function getInstanceHealth() { return $this->instanceHealth; } /** * Output only. [Output Only] The status of the instance. This field is empty * when the instance does not exist. * * Accepted values: DEPROVISIONING, PENDING, PROVISIONING, REPAIRING, RUNNING, * STAGING, STOPPED, STOPPING, SUSPENDED, SUSPENDING, TERMINATED * * @param self::INSTANCE_STATUS_* $instanceStatus */ public function setInstanceStatus($instanceStatus) { $this->instanceStatus = $instanceStatus; } /** * @return self::INSTANCE_STATUS_* */ public function getInstanceStatus() { return $this->instanceStatus; } /** * Output only. [Output Only] Information about the last attempt to create or * delete the instance. * * @param ManagedInstanceLastAttempt $lastAttempt */ public function setLastAttempt(ManagedInstanceLastAttempt $lastAttempt) { $this->lastAttempt = $lastAttempt; } /** * @return ManagedInstanceLastAttempt */ public function getLastAttempt() { return $this->lastAttempt; } /** * Output only. [Output Only] The name of the instance. The name always exists * even if the instance has not yet been created. * * @param string $name */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * Output only. [Output Only] Preserved state applied from per-instance config * for this instance. * * @param PreservedState $preservedStateFromConfig */ public function setPreservedStateFromConfig(PreservedState $preservedStateFromConfig) { $this->preservedStateFromConfig = $preservedStateFromConfig; } /** * @return PreservedState */ public function getPreservedStateFromConfig() { return $this->preservedStateFromConfig; } /** * Output only. [Output Only] Preserved state generated based on stateful * policy for this instance. * * @param PreservedState $preservedStateFromPolicy */ public function setPreservedStateFromPolicy(PreservedState $preservedStateFromPolicy) { $this->preservedStateFromPolicy = $preservedStateFromPolicy; } /** * @return PreservedState */ public function getPreservedStateFromPolicy() { return $this->preservedStateFromPolicy; } /** * Output only. [Output Only] Instance properties selected for this instance * resulting from InstanceFlexibilityPolicy. * * @param ManagedInstancePropertiesFromFlexibilityPolicy $propertiesFromFlexibilityPolicy */ public function setPropertiesFromFlexibilityPolicy(ManagedInstancePropertiesFromFlexibilityPolicy $propertiesFromFlexibilityPolicy) { $this->propertiesFromFlexibilityPolicy = $propertiesFromFlexibilityPolicy; } /** * @return ManagedInstancePropertiesFromFlexibilityPolicy */ public function getPropertiesFromFlexibilityPolicy() { return $this->propertiesFromFlexibilityPolicy; } /** * Output only. [Output Only] Intended version of this instance. * * @param ManagedInstanceVersion $version */ public function setVersion(ManagedInstanceVersion $version) { $this->version = $version; } /** * @return ManagedInstanceVersion */ public function getVersion() { return $this->version; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ManagedInstance::class, 'Google_Service_Compute_ManagedInstance');