# Device.Ownership

# Device.Ownership


```
public enum Device.Ownership
```

<br />

*** ** * ** ***

Ownership of the managed device.

## Summary

| ### Enum Values |
|---|---|
| `https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/device/model/Device.Ownership#COMPANY_OWNED` | Device is company-owned. |
| `https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/device/model/Device.Ownership#OWNERSHIP_UNSPECIFIED` | Ownership is unspecified. |
| `https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/device/model/Device.Ownership#PERSONALLY_OWNED` | Device is personally-owned. |

| ### Public methods |
|---|---|
| `static https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/device/model/Device.Ownership` | `https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/device/model/Device.Ownership#valueOf(java.lang.String)(https://developer.android.com/reference/java/lang/String.html name)` Returns the enum constant of this type with the specified name. |
| `static Device.Ownership[]` | `https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/device/model/Device.Ownership#values()()` Returns an array containing the constants of this enum type, in the order they're declared. |

## Enum Values

### COMPANY_OWNED

```
Device.Ownership Device.Ownership.COMPANY_OWNED
```

Device is company-owned.

### OWNERSHIP_UNSPECIFIED

```
Device.Ownership Device.Ownership.OWNERSHIP_UNSPECIFIED
```

Ownership is unspecified.

### PERSONALLY_OWNED

```
Device.Ownership Device.Ownership.PERSONALLY_OWNED
```

Device is personally-owned.

## Public methods

### valueOf

```
public static Device.Ownership valueOf(String name)
```

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

| Returns |
|---|---|
| `https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/device/model/Device.Ownership` | the enum constant with the specified name |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | if this enum type has no constant with the specified name |

### values

```
public static Device.Ownership[] values()
```

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

| Returns |
|---|---|
| `Device.Ownership[]` | an array containing the constants of this enum type, in the order they're declared |