# BatReplaceabilityEnum

    enum BatReplaceabilityEnum

Indicates the replaceability of the battery.
- `


  ### [unspecified](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/BatReplaceabilityEnum#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV21BatReplaceabilityEnumO11unspecifiedyA2GmF)


  ` The replaceability is not specified or unknown.

  #### Declaration

  Swift

      case unspecified

- `


  ### [notReplaceable](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/BatReplaceabilityEnum#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV21BatReplaceabilityEnumO14notReplaceableyA2GmF)


  ` The battery is not replaceable.

  #### Declaration

  Swift

      case notReplaceable

- `


  ### [userReplaceable](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/BatReplaceabilityEnum#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV21BatReplaceabilityEnumO15userReplaceableyA2GmF)


  ` The battery is replaceable by the user.

  #### Declaration

  Swift

      case userReplaceable

- `


  ### [factoryReplaceable](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/BatReplaceabilityEnum#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV21BatReplaceabilityEnumO18factoryReplaceableyA2GmF)


  ` The battery is replaceable by an authorized factory technician.

  #### Declaration

  Swift

      case factoryReplaceable

- `


  ### [init(rawValue:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/BatReplaceabilityEnum#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV21BatReplaceabilityEnumO8rawValueAGSgs6UInt64V_tcfc)


  ` Creates a new instance with the specified raw value.

  If there is no value of the type that corresponds with the specified raw
  value, this initializer returns `nil`. For example:

      enum PaperSize: String {
          case A4, A5, Letter, Legal
      }

      print(PaperSize(rawValue: "Legal"))
      // Prints "Optional(PaperSize.Legal)"

      print(PaperSize(rawValue: "Tabloid"))
      // Prints "nil"

  #### Declaration

  Swift

      init?(rawValue: UInt64)

  #### Parameters

  |---|---|
  | ` rawValue ` | The raw value to use for the new instance. |