public sealed class SetFindingStateRequest : IMessage<SetFindingStateRequest>, IEquatable<SetFindingStateRequest>, IDeepCloneable<SetFindingStateRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Security Command Center v2 API class SetFindingStateRequest.
Required. The relative resource
name
of the finding. If no location is specified, finding is assumed to be in
global. The following list shows some examples:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eSetFindingStateRequest\u003c/code\u003e class is used to update the state of a finding within the Security Command Center v2 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt requires a \u003ccode\u003eName\u003c/code\u003e property, which is the relative resource name of the finding, and a \u003ccode\u003eState\u003c/code\u003e property to set the desired state.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFindingName\u003c/code\u003e property provides a typed view over the \u003ccode\u003eName\u003c/code\u003e resource property, and there are two constructors available for object initialization.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSetFindingStateRequest\u003c/code\u003e class is part of the \u003ccode\u003eGoogle.Cloud.SecurityCenter.V2\u003c/code\u003e namespace and is contained within the \u003ccode\u003eGoogle.Cloud.SecurityCenter.V2.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,["# Security Command Center v2 API - Class SetFindingStateRequest (1.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.0 (latest)](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.SetFindingStateRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.1.0/Google.Cloud.SecurityCenter.V2.SetFindingStateRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.0.0/Google.Cloud.SecurityCenter.V2.SetFindingStateRequest) \n\n public sealed class SetFindingStateRequest : IMessage\u003cSetFindingStateRequest\u003e, IEquatable\u003cSetFindingStateRequest\u003e, IDeepCloneable\u003cSetFindingStateRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Security Command Center v2 API class SetFindingStateRequest.\n\nRequest message for updating a finding's state. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SetFindingStateRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SetFindingStateRequest](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.SetFindingStateRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SetFindingStateRequest](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.SetFindingStateRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SetFindingStateRequest](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.SetFindingStateRequest), [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) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.SecurityCenter.V2](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.SecurityCenter.V2.dll\n\nConstructors\n------------\n\n### SetFindingStateRequest()\n\n public SetFindingStateRequest()\n\n### SetFindingStateRequest(SetFindingStateRequest)\n\n public SetFindingStateRequest(SetFindingStateRequest other)\n\nProperties\n----------\n\n### FindingName\n\n public FindingName FindingName { get; set; }\n\n[FindingName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.FindingName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.SetFindingStateRequest#Google_Cloud_SecurityCenter_V2_SetFindingStateRequest_Name) resource name property.\n\n### Name\n\n public string Name { get; set; }\n\nRequired. The [relative resource\nname](https://cloud.google.com/apis/design/resource_names#relative_resource_name)\nof the finding. If no location is specified, finding is assumed to be in\nglobal. The following list shows some examples:\n\n+\n`organizations/{organization_id}/sources/{source_id}/findings/{finding_id}`\n+\n`organizations/{organization_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}`\n\n- `folders/{folder_id}/sources/{source_id}/findings/{finding_id}` + `folders/{folder_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}`\n- `projects/{project_id}/sources/{source_id}/findings/{finding_id}` + `projects/{project_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}`\n\n### State\n\n public Finding.Types.State State { get; set; }\n\nRequired. The desired State of the finding."]]