public sealed class CreateNotificationConfigRequest : IMessage<CreateNotificationConfigRequest>, IEquatable<CreateNotificationConfigRequest>, IDeepCloneable<CreateNotificationConfigRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Security Command Center v2 API class CreateNotificationConfigRequest.
Request message for creating a notification config.
Required.
Unique identifier provided by the client within the parent scope.
It must be between 1 and 128 characters and contain alphanumeric
characters, underscores, or hyphens only.
public NotificationConfig NotificationConfig { get; set; }
Required. The notification config being created. The name and the service
account will be ignored as they are both output only fields on this
resource.
Required. Resource name of the new notification config's parent. Its format
is organizations/[organization_id]/locations/[location_id],
folders/[folder_id]/locations/[location_id], or
projects/[project_id]/locations/[location_id].
[[["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\u003eCreateNotificationConfigRequest\u003c/code\u003e class is used to create a request message for setting up a new notification configuration in the Security Command Center v2 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e interfaces, providing functionalities such as deep cloning and protocol buffer message handling.\u003c/p\u003e\n"],["\u003cp\u003eKey properties include \u003ccode\u003eConfigId\u003c/code\u003e for a unique identifier, \u003ccode\u003eNotificationConfig\u003c/code\u003e to specify the configuration details, and \u003ccode\u003eParent\u003c/code\u003e to define the resource hierarchy (organization, folder, or project) for the notification.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eParent\u003c/code\u003e property offers multiple typed views like \u003ccode\u003eParentAsFolderLocationName\u003c/code\u003e, \u003ccode\u003eParentAsLocationName\u003c/code\u003e, \u003ccode\u003eParentAsOrganizationLocationName\u003c/code\u003e, and \u003ccode\u003eParentAsResourceName\u003c/code\u003e for convenient resource name management.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available, one default and one that accepts another \u003ccode\u003eCreateNotificationConfigRequest\u003c/code\u003e object to clone and create a new instance.\u003c/p\u003e\n"]]],[],null,["# Security Command Center v2 API - Class CreateNotificationConfigRequest (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.CreateNotificationConfigRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.1.0/Google.Cloud.SecurityCenter.V2.CreateNotificationConfigRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.0.0/Google.Cloud.SecurityCenter.V2.CreateNotificationConfigRequest) \n\n public sealed class CreateNotificationConfigRequest : IMessage\u003cCreateNotificationConfigRequest\u003e, IEquatable\u003cCreateNotificationConfigRequest\u003e, IDeepCloneable\u003cCreateNotificationConfigRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Security Command Center v2 API class CreateNotificationConfigRequest.\n\nRequest message for creating a notification config. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CreateNotificationConfigRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateNotificationConfigRequest](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.CreateNotificationConfigRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateNotificationConfigRequest](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.CreateNotificationConfigRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateNotificationConfigRequest](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.CreateNotificationConfigRequest), [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### CreateNotificationConfigRequest()\n\n public CreateNotificationConfigRequest()\n\n### CreateNotificationConfigRequest(CreateNotificationConfigRequest)\n\n public CreateNotificationConfigRequest(CreateNotificationConfigRequest other)\n\nProperties\n----------\n\n### ConfigId\n\n public string ConfigId { get; set; }\n\nRequired.\nUnique identifier provided by the client within the parent scope.\nIt must be between 1 and 128 characters and contain alphanumeric\ncharacters, underscores, or hyphens only.\n\n### NotificationConfig\n\n public NotificationConfig NotificationConfig { get; set; }\n\nRequired. The notification config being created. The name and the service\naccount will be ignored as they are both output only fields on this\nresource.\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. Resource name of the new notification config's parent. Its format\nis `organizations/[organization_id]/locations/[location_id]`,\n`folders/[folder_id]/locations/[location_id]`, or\n`projects/[project_id]/locations/[location_id]`.\n\n### ParentAsFolderLocationName\n\n public FolderLocationName ParentAsFolderLocationName { get; set; }\n\n[FolderLocationName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.FolderLocationName)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.CreateNotificationConfigRequest#Google_Cloud_SecurityCenter_V2_CreateNotificationConfigRequest_Parent) resource name property.\n\n### ParentAsLocationName\n\n public LocationName ParentAsLocationName { get; set; }\n\n[LocationName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.CreateNotificationConfigRequest#Google_Cloud_SecurityCenter_V2_CreateNotificationConfigRequest_Parent) resource name property.\n\n### ParentAsOrganizationLocationName\n\n public OrganizationLocationName ParentAsOrganizationLocationName { get; set; }\n\n[OrganizationLocationName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.OrganizationLocationName)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.CreateNotificationConfigRequest#Google_Cloud_SecurityCenter_V2_CreateNotificationConfigRequest_Parent) resource name property.\n\n### ParentAsResourceName\n\n public IResourceName ParentAsResourceName { get; set; }\n\n[IResourceName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.CreateNotificationConfigRequest#Google_Cloud_SecurityCenter_V2_CreateNotificationConfigRequest_Parent) resource name property."]]