Required. Maintenance window that is applied to resources covered by this
policy. Minimum 1. For the current version, the maximum number of
weekly_maintenance_windows is expected to be one.
Required. Maintenance window that is applied to resources covered by this
policy. Minimum 1. For the current version, the maximum number of
weekly_maintenance_windows is expected to be one.
Required. Maintenance window that is applied to resources covered by this
policy. Minimum 1. For the current version, the maximum number of
weekly_maintenance_windows is expected to be one.
Required. Maintenance window that is applied to resources covered by this
policy. Minimum 1. For the current version, the maximum number of
weekly_maintenance_windows is expected to be one.
Required. Maintenance window that is applied to resources covered by this
policy. Minimum 1. For the current version, the maximum number of
weekly_maintenance_windows is expected to be one.
[[["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."],[],[],null,["# Interface MaintenancePolicyOrBuilder (0.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.16.0 (latest)](/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.memcache.v1.MaintenancePolicyOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.memcache.v1.MaintenancePolicyOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.memcache.v1.MaintenancePolicyOrBuilder) \n\n public interface MaintenancePolicyOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getCreateTime()\n\n public abstract Timestamp getCreateTime()\n\nOutput only. The time when the policy was created.\n\n`.google.protobuf.Timestamp create_time = 1;`\n\n### getCreateTimeOrBuilder()\n\n public abstract TimestampOrBuilder getCreateTimeOrBuilder()\n\nOutput only. The time when the policy was created.\n\n`.google.protobuf.Timestamp create_time = 1;`\n\n### getDescription()\n\n public abstract String getDescription()\n\nDescription of what this policy is for. Create/Update methods\nreturn INVALID_ARGUMENT if the length is greater than 512.\n\n`string description = 3;`\n\n### getDescriptionBytes()\n\n public abstract ByteString getDescriptionBytes()\n\nDescription of what this policy is for. Create/Update methods\nreturn INVALID_ARGUMENT if the length is greater than 512.\n\n`string description = 3;`\n\n### getUpdateTime()\n\n public abstract Timestamp getUpdateTime()\n\nOutput only. The time when the policy was updated.\n\n`.google.protobuf.Timestamp update_time = 2;`\n\n### getUpdateTimeOrBuilder()\n\n public abstract TimestampOrBuilder getUpdateTimeOrBuilder()\n\nOutput only. The time when the policy was updated.\n\n`.google.protobuf.Timestamp update_time = 2;`\n\n### getWeeklyMaintenanceWindow(int index)\n\n public abstract WeeklyMaintenanceWindow getWeeklyMaintenanceWindow(int index)\n\nRequired. Maintenance window that is applied to resources covered by this\npolicy. Minimum 1. For the current version, the maximum number of\nweekly_maintenance_windows is expected to be one.\n\n`\nrepeated .google.events.cloud.memcache.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4;\n`\n\n### getWeeklyMaintenanceWindowCount()\n\n public abstract int getWeeklyMaintenanceWindowCount()\n\nRequired. Maintenance window that is applied to resources covered by this\npolicy. Minimum 1. For the current version, the maximum number of\nweekly_maintenance_windows is expected to be one.\n\n`\nrepeated .google.events.cloud.memcache.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4;\n`\n\n### getWeeklyMaintenanceWindowList()\n\n public abstract List\u003cWeeklyMaintenanceWindow\u003e getWeeklyMaintenanceWindowList()\n\nRequired. Maintenance window that is applied to resources covered by this\npolicy. Minimum 1. For the current version, the maximum number of\nweekly_maintenance_windows is expected to be one.\n\n`\nrepeated .google.events.cloud.memcache.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4;\n`\n\n### getWeeklyMaintenanceWindowOrBuilder(int index)\n\n public abstract WeeklyMaintenanceWindowOrBuilder getWeeklyMaintenanceWindowOrBuilder(int index)\n\nRequired. Maintenance window that is applied to resources covered by this\npolicy. Minimum 1. For the current version, the maximum number of\nweekly_maintenance_windows is expected to be one.\n\n`\nrepeated .google.events.cloud.memcache.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4;\n`\n\n### getWeeklyMaintenanceWindowOrBuilderList()\n\n public abstract List\u003c? extends WeeklyMaintenanceWindowOrBuilder\u003e getWeeklyMaintenanceWindowOrBuilderList()\n\nRequired. Maintenance window that is applied to resources covered by this\npolicy. Minimum 1. For the current version, the maximum number of\nweekly_maintenance_windows is expected to be one.\n\n`\nrepeated .google.events.cloud.memcache.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4;\n`\n\n### hasCreateTime()\n\n public abstract boolean hasCreateTime()\n\nOutput only. The time when the policy was created.\n\n`.google.protobuf.Timestamp create_time = 1;`\n\n### hasUpdateTime()\n\n public abstract boolean hasUpdateTime()\n\nOutput only. The time when the policy was updated.\n\n`.google.protobuf.Timestamp update_time = 2;`"]]