Enum ReturnRequestIdHeaderPolicy.Option
- java.lang.Object
-
- java.lang.Enum<ReturnRequestIdHeaderPolicy.Option>
-
- com.azure.resourcemanager.resources.fluentcore.policy.ReturnRequestIdHeaderPolicy.Option
-
- All Implemented Interfaces:
Serializable,Comparable<ReturnRequestIdHeaderPolicy.Option>
- Enclosing class:
- ReturnRequestIdHeaderPolicy
public static enum ReturnRequestIdHeaderPolicy.Option extends Enum<ReturnRequestIdHeaderPolicy.Option>
Additional client handling, if server does not return client-request-id in response headers.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COPY_CLIENT_REQUEST_IDFill-in the client-request-id from request headers.NONEDefault.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ReturnRequestIdHeaderPolicy.OptionvalueOf(String name)Returns the enum constant of this type with the specified name.static ReturnRequestIdHeaderPolicy.Option[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final ReturnRequestIdHeaderPolicy.Option NONE
Default.
-
COPY_CLIENT_REQUEST_ID
public static final ReturnRequestIdHeaderPolicy.Option COPY_CLIENT_REQUEST_ID
Fill-in the client-request-id from request headers.
-
-
Method Detail
-
values
public static ReturnRequestIdHeaderPolicy.Option[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ReturnRequestIdHeaderPolicy.Option c : ReturnRequestIdHeaderPolicy.Option.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ReturnRequestIdHeaderPolicy.Option valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-