github.com/jaredpalmer/terraform@v1.1.0-alpha20210908.0.20210911170307-88705c943a03/internal/plans/resourceinstancechangeactionreason_string.go (about) 1 // Code generated by "stringer -type=ResourceInstanceChangeActionReason changes.go"; DO NOT EDIT. 2 3 package plans 4 5 import "strconv" 6 7 func _() { 8 // An "invalid array index" compiler error signifies that the constant values have changed. 9 // Re-run the stringer command to generate them again. 10 var x [1]struct{} 11 _ = x[ResourceInstanceChangeNoReason-0] 12 _ = x[ResourceInstanceReplaceBecauseTainted-84] 13 _ = x[ResourceInstanceReplaceByRequest-82] 14 _ = x[ResourceInstanceReplaceBecauseCannotUpdate-70] 15 } 16 17 const ( 18 _ResourceInstanceChangeActionReason_name_0 = "ResourceInstanceChangeNoReason" 19 _ResourceInstanceChangeActionReason_name_1 = "ResourceInstanceReplaceBecauseCannotUpdate" 20 _ResourceInstanceChangeActionReason_name_2 = "ResourceInstanceReplaceByRequest" 21 _ResourceInstanceChangeActionReason_name_3 = "ResourceInstanceReplaceBecauseTainted" 22 ) 23 24 func (i ResourceInstanceChangeActionReason) String() string { 25 switch { 26 case i == 0: 27 return _ResourceInstanceChangeActionReason_name_0 28 case i == 70: 29 return _ResourceInstanceChangeActionReason_name_1 30 case i == 82: 31 return _ResourceInstanceChangeActionReason_name_2 32 case i == 84: 33 return _ResourceInstanceChangeActionReason_name_3 34 default: 35 return "ResourceInstanceChangeActionReason(" + strconv.FormatInt(int64(i), 10) + ")" 36 } 37 }