public static final class TieringPolicy.Builder extends GeneratedMessage.Builder<TieringPolicy.Builder> implements TieringPolicyOrBuilderDefines tiering policy for the volume.
Protobuf type google.cloud.netapp.v1.TieringPolicy
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > TieringPolicy.BuilderImplements
TieringPolicyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public TieringPolicy build()| Returns | |
|---|---|
| Type | Description |
TieringPolicy |
|
buildPartial()
public TieringPolicy buildPartial()| Returns | |
|---|---|
| Type | Description |
TieringPolicy |
|
clear()
public TieringPolicy.Builder clear()| Returns | |
|---|---|
| Type | Description |
TieringPolicy.Builder |
|
clearCoolingThresholdDays()
public TieringPolicy.Builder clearCoolingThresholdDays()Optional. Time in days to mark the volume's data block as cold and make it eligible for tiering, can be range from 2-183. Default is 31.
optional int32 cooling_threshold_days = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TieringPolicy.Builder |
This builder for chaining. |
clearHotTierBypassModeEnabled()
public TieringPolicy.Builder clearHotTierBypassModeEnabled()Optional. Flag indicating that the hot tier bypass mode is enabled. Default is false. This is only applicable to Flex service level.
optional bool hot_tier_bypass_mode_enabled = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TieringPolicy.Builder |
This builder for chaining. |
clearTierAction()
public TieringPolicy.Builder clearTierAction()Optional. Flag indicating if the volume has tiering policy enable/pause. Default is PAUSED.
optional .google.cloud.netapp.v1.TieringPolicy.TierAction tier_action = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TieringPolicy.Builder |
This builder for chaining. |
getCoolingThresholdDays()
public int getCoolingThresholdDays()Optional. Time in days to mark the volume's data block as cold and make it eligible for tiering, can be range from 2-183. Default is 31.
optional int32 cooling_threshold_days = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The coolingThresholdDays. |
getDefaultInstanceForType()
public TieringPolicy getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
TieringPolicy |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getHotTierBypassModeEnabled()
public boolean getHotTierBypassModeEnabled()Optional. Flag indicating that the hot tier bypass mode is enabled. Default is false. This is only applicable to Flex service level.
optional bool hot_tier_bypass_mode_enabled = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The hotTierBypassModeEnabled. |
getTierAction()
public TieringPolicy.TierAction getTierAction()Optional. Flag indicating if the volume has tiering policy enable/pause. Default is PAUSED.
optional .google.cloud.netapp.v1.TieringPolicy.TierAction tier_action = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TieringPolicy.TierAction |
The tierAction. |
getTierActionValue()
public int getTierActionValue()Optional. Flag indicating if the volume has tiering policy enable/pause. Default is PAUSED.
optional .google.cloud.netapp.v1.TieringPolicy.TierAction tier_action = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for tierAction. |
hasCoolingThresholdDays()
public boolean hasCoolingThresholdDays()Optional. Time in days to mark the volume's data block as cold and make it eligible for tiering, can be range from 2-183. Default is 31.
optional int32 cooling_threshold_days = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the coolingThresholdDays field is set. |
hasHotTierBypassModeEnabled()
public boolean hasHotTierBypassModeEnabled()Optional. Flag indicating that the hot tier bypass mode is enabled. Default is false. This is only applicable to Flex service level.
optional bool hot_tier_bypass_mode_enabled = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the hotTierBypassModeEnabled field is set. |
hasTierAction()
public boolean hasTierAction()Optional. Flag indicating if the volume has tiering policy enable/pause. Default is PAUSED.
optional .google.cloud.netapp.v1.TieringPolicy.TierAction tier_action = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the tierAction field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(TieringPolicy other)
public TieringPolicy.Builder mergeFrom(TieringPolicy other)| Parameter | |
|---|---|
| Name | Description |
other |
TieringPolicy |
| Returns | |
|---|---|
| Type | Description |
TieringPolicy.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TieringPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
TieringPolicy.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public TieringPolicy.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
TieringPolicy.Builder |
|
setCoolingThresholdDays(int value)
public TieringPolicy.Builder setCoolingThresholdDays(int value)Optional. Time in days to mark the volume's data block as cold and make it eligible for tiering, can be range from 2-183. Default is 31.
optional int32 cooling_threshold_days = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe coolingThresholdDays to set. |
| Returns | |
|---|---|
| Type | Description |
TieringPolicy.Builder |
This builder for chaining. |
setHotTierBypassModeEnabled(boolean value)
public TieringPolicy.Builder setHotTierBypassModeEnabled(boolean value)Optional. Flag indicating that the hot tier bypass mode is enabled. Default is false. This is only applicable to Flex service level.
optional bool hot_tier_bypass_mode_enabled = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe hotTierBypassModeEnabled to set. |
| Returns | |
|---|---|
| Type | Description |
TieringPolicy.Builder |
This builder for chaining. |
setTierAction(TieringPolicy.TierAction value)
public TieringPolicy.Builder setTierAction(TieringPolicy.TierAction value)Optional. Flag indicating if the volume has tiering policy enable/pause. Default is PAUSED.
optional .google.cloud.netapp.v1.TieringPolicy.TierAction tier_action = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
TieringPolicy.TierActionThe tierAction to set. |
| Returns | |
|---|---|
| Type | Description |
TieringPolicy.Builder |
This builder for chaining. |
setTierActionValue(int value)
public TieringPolicy.Builder setTierActionValue(int value)Optional. Flag indicating if the volume has tiering policy enable/pause. Default is PAUSED.
optional .google.cloud.netapp.v1.TieringPolicy.TierAction tier_action = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for tierAction to set. |
| Returns | |
|---|---|
| Type | Description |
TieringPolicy.Builder |
This builder for chaining. |