createTime = $createTime; } /** * @return string */ public function getCreateTime() { return $this->createTime; } /** * Optional. Description of what this policy is for. Create/Update methods * return INVALID_ARGUMENT if the length is greater than 512. * * @param string $description */ public function setDescription($description) { $this->description = $description; } /** * @return string */ public function getDescription() { return $this->description; } /** * Optional. Resource labels to represent user provided metadata. Each label * is a key-value pair, where both the key and the value are arbitrary strings * provided by the user. * * @param string[] $labels */ public function setLabels($labels) { $this->labels = $labels; } /** * @return string[] */ public function getLabels() { return $this->labels; } /** * Required. MaintenancePolicy name using the form: `projects/{project_id}/loc * ations/{location_id}/maintenancePolicies/{maintenance_policy_id}` where * {project_id} refers to a GCP consumer project ID, {location_id} refers to a * GCP region/zone, {maintenance_policy_id} must be 1-63 characters long and * match the regular expression `[a-z0-9]([-a-z0-9]*[a-z0-9])?`. * * @param string $name */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * Optional. The state of the policy. * * Accepted values: STATE_UNSPECIFIED, READY, DELETING * * @param self::STATE_* $state */ public function setState($state) { $this->state = $state; } /** * @return self::STATE_* */ public function getState() { return $this->state; } /** * Maintenance policy applicable to instance update. * * @param UpdatePolicy $updatePolicy */ public function setUpdatePolicy(UpdatePolicy $updatePolicy) { $this->updatePolicy = $updatePolicy; } /** * @return UpdatePolicy */ public function getUpdatePolicy() { return $this->updatePolicy; } /** * Output only. The time when the resource was updated. * * @param string $updateTime */ public function setUpdateTime($updateTime) { $this->updateTime = $updateTime; } /** * @return string */ public function getUpdateTime() { return $this->updateTime; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(MaintenancePolicy::class, 'Google_Service_ManagedServiceforMicrosoftActiveDirectoryConsumerAPI_MaintenancePolicy');