// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package cloudhsmv2 type BackupPolicy string // Enum values for BackupPolicy const ( BackupPolicyDefault BackupPolicy = "DEFAULT" ) func (enum BackupPolicy) MarshalValue() (string, error) { return string(enum), nil } func (enum BackupPolicy) MarshalValueBuf(b []byte) ([]byte, error) { b = b[0:0] return append(b, enum...), nil } type BackupState string // Enum values for BackupState const ( BackupStateCreateInProgress BackupState = "CREATE_IN_PROGRESS" BackupStateReady BackupState = "READY" BackupStateDeleted BackupState = "DELETED" BackupStatePendingDeletion BackupState = "PENDING_DELETION" ) func (enum BackupState) MarshalValue() (string, error) { return string(enum), nil } func (enum BackupState) MarshalValueBuf(b []byte) ([]byte, error) { b = b[0:0] return append(b, enum...), nil } type ClusterState string // Enum values for ClusterState const ( ClusterStateCreateInProgress ClusterState = "CREATE_IN_PROGRESS" ClusterStateUninitialized ClusterState = "UNINITIALIZED" ClusterStateInitializeInProgress ClusterState = "INITIALIZE_IN_PROGRESS" ClusterStateInitialized ClusterState = "INITIALIZED" ClusterStateActive ClusterState = "ACTIVE" ClusterStateUpdateInProgress ClusterState = "UPDATE_IN_PROGRESS" ClusterStateDeleteInProgress ClusterState = "DELETE_IN_PROGRESS" ClusterStateDeleted ClusterState = "DELETED" ClusterStateDegraded ClusterState = "DEGRADED" ) func (enum ClusterState) MarshalValue() (string, error) { return string(enum), nil } func (enum ClusterState) MarshalValueBuf(b []byte) ([]byte, error) { b = b[0:0] return append(b, enum...), nil } type HsmState string // Enum values for HsmState const ( HsmStateCreateInProgress HsmState = "CREATE_IN_PROGRESS" HsmStateActive HsmState = "ACTIVE" HsmStateDegraded HsmState = "DEGRADED" HsmStateDeleteInProgress HsmState = "DELETE_IN_PROGRESS" HsmStateDeleted HsmState = "DELETED" ) func (enum HsmState) MarshalValue() (string, error) { return string(enum), nil } func (enum HsmState) MarshalValueBuf(b []byte) ([]byte, error) { b = b[0:0] return append(b, enum...), nil }