component = $component; } /** * @return string */ public function getComponent() { return $this->component; } /** * The detailed health checks of the component. * * @param HealthCheck[] $componentHealthChecks */ public function setComponentHealthChecks($componentHealthChecks) { $this->componentHealthChecks = $componentHealthChecks; } /** * @return HealthCheck[] */ public function getComponentHealthChecks() { return $this->componentHealthChecks; } /** * Output only. The type of the component health. * * Accepted values: TYPE_UNSPECIFIED, TYPE_REQUIRED, TYPE_OPTIONAL, * TYPE_SPECIAL * * @param self::COMPONENT_HEALTH_TYPE_* $componentHealthType */ public function setComponentHealthType($componentHealthType) { $this->componentHealthType = $componentHealthType; } /** * @return self::COMPONENT_HEALTH_TYPE_* */ public function getComponentHealthType() { return $this->componentHealthType; } /** * Output only. The health state of the component. * * Accepted values: HEALTH_STATE_UNSPECIFIED, HEALTHY, UNHEALTHY, CRITICAL, * UNSUPPORTED * * @param self::STATE_* $state */ public function setState($state) { $this->state = $state; } /** * @return self::STATE_* */ public function getState() { return $this->state; } /** * Sub component health. * * @param ComponentHealth[] $subComponentsHealth */ public function setSubComponentsHealth($subComponentsHealth) { $this->subComponentsHealth = $subComponentsHealth; } /** * @return ComponentHealth[] */ public function getSubComponentsHealth() { return $this->subComponentsHealth; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ComponentHealth::class, 'Google_Service_WorkloadManager_ComponentHealth');