# Cloud Controls Partner v1beta API - Class GetViolationRequest (1.0.0-beta05)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.0.0-beta05 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta.GetViolationRequest)
- [1.0.0-beta04](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/1.0.0-beta04/Google.Cloud.CloudControlsPartner.V1Beta.GetViolationRequest)

    public sealed class GetViolationRequest : IMessage<GetViolationRequest>, IEquatable<GetViolationRequest>, IDeepCloneable<GetViolationRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Controls Partner v1beta API class GetViolationRequest.

Message for getting a Violation

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> GetViolationRequest

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GetViolationRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta.GetViolationRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GetViolationRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta.GetViolationRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GetViolationRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta.GetViolationRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.CloudControlsPartner.V1Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta)

## Assembly

Google.Cloud.CloudControlsPartner.V1Beta.dll

## Constructors

### GetViolationRequest()

    public GetViolationRequest()

### GetViolationRequest(GetViolationRequest)

    public GetViolationRequest(GetViolationRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta.GetViolationRequest` |

## Properties

### Name

    public string Name { get; set; }

Required. Format:
`organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ViolationName

    public ViolationName ViolationName { get; set; }

[ViolationName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta.ViolationName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta.GetViolationRequest#Google_Cloud_CloudControlsPartner_V1Beta_GetViolationRequest_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta.ViolationName` |   |