annotations = $annotations; } /** * @return string[] */ public function getAnnotations() { return $this->annotations; } /** * URL of the forwarding rule associated with the health status of the * instance. * * @param string $forwardingRule */ public function setForwardingRule($forwardingRule) { $this->forwardingRule = $forwardingRule; } /** * @return string */ public function getForwardingRule() { return $this->forwardingRule; } /** * A forwarding rule IP address assigned to this instance. * * @param string $forwardingRuleIp */ public function setForwardingRuleIp($forwardingRuleIp) { $this->forwardingRuleIp = $forwardingRuleIp; } /** * @return string */ public function getForwardingRuleIp() { return $this->forwardingRuleIp; } /** * Health state of the IPv4 address of the instance. * * Accepted values: HEALTHY, UNHEALTHY * * @param self::HEALTH_STATE_* $healthState */ public function setHealthState($healthState) { $this->healthState = $healthState; } /** * @return self::HEALTH_STATE_* */ public function getHealthState() { return $this->healthState; } /** * URL of the instance resource. * * @param string $instance */ public function setInstance($instance) { $this->instance = $instance; } /** * @return string */ public function getInstance() { return $this->instance; } /** * For target pool based Network Load Balancing, it indicates the forwarding * rule's IP address assigned to this instance. For other types of load * balancing, the field indicates VM internal ip. * * @param string $ipAddress */ public function setIpAddress($ipAddress) { $this->ipAddress = $ipAddress; } /** * @return string */ public function getIpAddress() { return $this->ipAddress; } /** * @param string $ipv6Address */ public function setIpv6Address($ipv6Address) { $this->ipv6Address = $ipv6Address; } /** * @return string */ public function getIpv6Address() { return $this->ipv6Address; } /** * Health state of the IPv6 address of the instance. * * Accepted values: HEALTHY, UNHEALTHY * * @param self::IPV6_HEALTH_STATE_* $ipv6HealthState */ public function setIpv6HealthState($ipv6HealthState) { $this->ipv6HealthState = $ipv6HealthState; } /** * @return self::IPV6_HEALTH_STATE_* */ public function getIpv6HealthState() { return $this->ipv6HealthState; } /** * The named port of the instance group, not necessarily the port that is * health-checked. * * @param int $port */ public function setPort($port) { $this->port = $port; } /** * @return int */ public function getPort() { return $this->port; } /** * @param string $weight */ public function setWeight($weight) { $this->weight = $weight; } /** * @return string */ public function getWeight() { return $this->weight; } /** * @param self::WEIGHT_ERROR_* $weightError */ public function setWeightError($weightError) { $this->weightError = $weightError; } /** * @return self::WEIGHT_ERROR_* */ public function getWeightError() { return $this->weightError; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(HealthStatus::class, 'Google_Service_Compute_HealthStatus');