SecurityContactInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. security. fluent. models. SecurityContactInner
- com.
- com.
public final class SecurityContactInner
extends ProxyResource
Contact details and configurations for notifications coming from Microsoft Defender for Cloud.
Constructor Summary
| Constructor | Description |
|---|---|
| SecurityContactInner() |
Creates an instance of Security |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
emails()
Get the emails property: List of email addresses which will get notifications from Microsoft Defender for Cloud by the configurations defined in this security contact. |
|
static
Security |
fromJson(JsonReader jsonReader)
Reads an instance of Security |
| String |
id()
Get the id property: Fully qualified resource Id for the resource. |
| Boolean |
isEnabled()
Get the is |
| String |
name()
Get the name property: The name of the resource. |
|
Security |
notificationsByRole()
Get the notifications |
|
List<Notifications |
notificationsSources()
Get the notifications |
| String |
phone()
Get the phone property: The security contact's phone number. |
|
System |
systemData()
Get the system |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| void |
validate()
Validates the instance. |
|
Security |
withEmails(String emails)
Set the emails property: List of email addresses which will get notifications from Microsoft Defender for Cloud by the configurations defined in this security contact. |
|
Security |
withIsEnabled(Boolean isEnabled)
Set the is |
|
Security |
withNotificationsByRole(SecurityContactPropertiesNotificationsByRole notificationsByRole)
Set the notifications |
|
Security |
withNotificationsSources(List<NotificationsSource> notificationsSources)
Set the notifications |
|
Security |
withPhone(String phone)
Set the phone property: The security contact's phone number. |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
SecurityContactInner
public SecurityContactInner()
Creates an instance of SecurityContactInner class.
Method Details
emails
public String emails()
Get the emails property: List of email addresses which will get notifications from Microsoft Defender for Cloud by the configurations defined in this security contact.
Returns:
fromJson
public static SecurityContactInner fromJson(JsonReader jsonReader)
Reads an instance of SecurityContactInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
SecurityContactInner.id()Returns:
isEnabled
public Boolean isEnabled()
Get the isEnabled property: Indicates whether the security contact is enabled.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
SecurityContactInner.name()Returns:
notificationsByRole
public SecurityContactPropertiesNotificationsByRole notificationsByRole()
Get the notificationsByRole property: Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription.
Returns:
notificationsSources
public List<NotificationsSource> notificationsSources()
Get the notificationsSources property: A collection of sources types which evaluate the email notification.
Returns:
phone
public String phone()
Get the phone property: The security contact's phone number.
Returns:
systemData
public SystemData systemData()
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
SecurityContactInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
SecurityContactInner.type()Returns:
validate
public void validate()
Validates the instance.
withEmails
public SecurityContactInner withEmails(String emails)
Set the emails property: List of email addresses which will get notifications from Microsoft Defender for Cloud by the configurations defined in this security contact.
Parameters:
Returns:
withIsEnabled
public SecurityContactInner withIsEnabled(Boolean isEnabled)
Set the isEnabled property: Indicates whether the security contact is enabled.
Parameters:
Returns:
withNotificationsByRole
public SecurityContactInner withNotificationsByRole(SecurityContactPropertiesNotificationsByRole notificationsByRole)
Set the notificationsByRole property: Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription.
Parameters:
Returns:
withNotificationsSources
public SecurityContactInner withNotificationsSources(List<NotificationsSource> notificationsSources)
Set the notificationsSources property: A collection of sources types which evaluate the email notification.
Parameters:
Returns:
withPhone
public SecurityContactInner withPhone(String phone)
Set the phone property: The security contact's phone number.
Parameters:
Returns: