The state of a capability is valid at a particular point in time.
If a particular capability is enabled at time T, there is no guarantee as to
if it will be available at time T+1. When a maintenance period is scheduled,
there will be usually advance notice as to when the capability is disabled.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003e\u003ccode\u003eCapabilityState\u003c/code\u003e represents the state of a specific capability at a given moment in time.\u003c/p\u003e\n"],["\u003cp\u003eThe availability of a capability at a future time cannot be guaranteed, even if it's currently enabled.\u003c/p\u003e\n"],["\u003cp\u003eMaintenance periods for capabilities are typically announced in advance, including when the capability will be disabled.\u003c/p\u003e\n"],["\u003cp\u003eYou can use \u003ccode\u003egetCapability()\u003c/code\u003e to retrieve the associated capability, \u003ccode\u003egetScheduledDate()\u003c/code\u003e to get the maintenance schedule date (if applicable), and \u003ccode\u003egetStatus()\u003c/code\u003e to retrieve the current status of the capability.\u003c/p\u003e\n"]]],[],null,["# Class CapabilityState (2.0.0)\n\n public class CapabilityState\n\nRepresents the state of a [Capability](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.capabilities.Capability).\n\n\nThe state of a capability is valid at a particular point in time.\n\nIf a particular capability is enabled at time T, there is no guarantee as to\nif it will be available at time T+1. When a maintenance period is scheduled,\nthere will be usually advance notice as to when the capability is disabled. \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e CapabilityState \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nMethods\n-------\n\n### getCapability()\n\n public Capability getCapability()\n\nReturns the capability associated with this [CapabilityState](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.capabilities.CapabilityState).\n\n### getScheduledDate()\n\n public Date getScheduledDate()\n\nReturns the schedule date of maintenance for this activity.\n\nThis call will return a [Date](https://docs.oracle.com/javase/8/docs/api/java/util/Date.html) instance if and only if the status is\nSCHEDULED_MAINTENANCE.\n\n### getStatus()\n\n public CapabilityStatus getStatus()\n\nReturns the status of the capability."]]