
com.pulumi.azurenative.security.outputs.GetSecurityContactResult Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.security.outputs;
import com.pulumi.azurenative.security.outputs.SecurityContactPropertiesResponseAlertNotifications;
import com.pulumi.azurenative.security.outputs.SecurityContactPropertiesResponseNotificationsByRole;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetSecurityContactResult {
/**
* @return Defines whether to send email notifications about new security alerts
*
*/
private @Nullable SecurityContactPropertiesResponseAlertNotifications alertNotifications;
/**
* @return List of email addresses which will get notifications from Microsoft Defender for Cloud by the configurations defined in this security contact.
*
*/
private @Nullable String emails;
/**
* @return Resource Id
*
*/
private String id;
/**
* @return Resource name
*
*/
private String name;
/**
* @return Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription.
*
*/
private @Nullable SecurityContactPropertiesResponseNotificationsByRole notificationsByRole;
/**
* @return The security contact's phone number
*
*/
private @Nullable String phone;
/**
* @return Resource type
*
*/
private String type;
private GetSecurityContactResult() {}
/**
* @return Defines whether to send email notifications about new security alerts
*
*/
public Optional alertNotifications() {
return Optional.ofNullable(this.alertNotifications);
}
/**
* @return List of email addresses which will get notifications from Microsoft Defender for Cloud by the configurations defined in this security contact.
*
*/
public Optional emails() {
return Optional.ofNullable(this.emails);
}
/**
* @return Resource Id
*
*/
public String id() {
return this.id;
}
/**
* @return Resource name
*
*/
public String name() {
return this.name;
}
/**
* @return Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription.
*
*/
public Optional notificationsByRole() {
return Optional.ofNullable(this.notificationsByRole);
}
/**
* @return The security contact's phone number
*
*/
public Optional phone() {
return Optional.ofNullable(this.phone);
}
/**
* @return Resource type
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetSecurityContactResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable SecurityContactPropertiesResponseAlertNotifications alertNotifications;
private @Nullable String emails;
private String id;
private String name;
private @Nullable SecurityContactPropertiesResponseNotificationsByRole notificationsByRole;
private @Nullable String phone;
private String type;
public Builder() {}
public Builder(GetSecurityContactResult defaults) {
Objects.requireNonNull(defaults);
this.alertNotifications = defaults.alertNotifications;
this.emails = defaults.emails;
this.id = defaults.id;
this.name = defaults.name;
this.notificationsByRole = defaults.notificationsByRole;
this.phone = defaults.phone;
this.type = defaults.type;
}
@CustomType.Setter
public Builder alertNotifications(@Nullable SecurityContactPropertiesResponseAlertNotifications alertNotifications) {
this.alertNotifications = alertNotifications;
return this;
}
@CustomType.Setter
public Builder emails(@Nullable String emails) {
this.emails = emails;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetSecurityContactResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetSecurityContactResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder notificationsByRole(@Nullable SecurityContactPropertiesResponseNotificationsByRole notificationsByRole) {
this.notificationsByRole = notificationsByRole;
return this;
}
@CustomType.Setter
public Builder phone(@Nullable String phone) {
this.phone = phone;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetSecurityContactResult", "type");
}
this.type = type;
return this;
}
public GetSecurityContactResult build() {
final var _resultValue = new GetSecurityContactResult();
_resultValue.alertNotifications = alertNotifications;
_resultValue.emails = emails;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.notificationsByRole = notificationsByRole;
_resultValue.phone = phone;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy