Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.redis; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue;
Defines values for DayOfWeek.
/** * Defines values for DayOfWeek. */
public enum DayOfWeek {
Enum value Monday.
/** Enum value Monday. */
MONDAY("Monday"),
Enum value Tuesday.
/** Enum value Tuesday. */
TUESDAY("Tuesday"),
Enum value Wednesday.
/** Enum value Wednesday. */
WEDNESDAY("Wednesday"),
Enum value Thursday.
/** Enum value Thursday. */
THURSDAY("Thursday"),
Enum value Friday.
/** Enum value Friday. */
FRIDAY("Friday"),
Enum value Saturday.
/** Enum value Saturday. */
SATURDAY("Saturday"),
Enum value Sunday.
/** Enum value Sunday. */
SUNDAY("Sunday"),
Enum value Everyday.
/** Enum value Everyday. */
EVERYDAY("Everyday"),
Enum value Weekend.
/** Enum value Weekend. */
WEEKEND("Weekend");
The actual serialized value for a DayOfWeek instance.
/** The actual serialized value for a DayOfWeek instance. */
private String value; DayOfWeek(String value) { this.value = value; }
Parses a serialized value to a DayOfWeek instance.
Params:
  • value – the serialized value to parse.
Returns:the parsed DayOfWeek object, or null if unable to parse.
/** * Parses a serialized value to a DayOfWeek instance. * * @param value the serialized value to parse. * @return the parsed DayOfWeek object, or null if unable to parse. */
@JsonCreator public static DayOfWeek fromString(String value) { DayOfWeek[] items = DayOfWeek.values(); for (DayOfWeek item : items) { if (item.toString().equalsIgnoreCase(value)) { return item; } } return null; } @JsonValue @Override public String toString() { return this.value; } }