---
title: MTRCommandWithRequiredResponse
framework: matter
role: symbol
role_heading: Class
path: matter/mtrcommandwithrequiredresponse
---

# MTRCommandWithRequiredResponse

An object representing a single command to be invoked and the response required for the invoke to be considered successful.

## Declaration

```swift
class MTRCommandWithRequiredResponse
```

## Topics

### Initializers

- [init(coder:)](matter/mtrcommandwithrequiredresponse/init(coder:).md)
- [init(path:commandFields:requiredResponse:)](matter/mtrcommandwithrequiredresponse/init(path:commandfields:requiredresponse:).md)

### Instance Properties

- [commandFields](matter/mtrcommandwithrequiredresponse/commandfields.md)
- [path](matter/mtrcommandwithrequiredresponse/path.md)
- [requiredResponse](matter/mtrcommandwithrequiredresponse/requiredresponse.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)
