
com.pulumi.azurenative.appcomplianceautomation.outputs.GetWebhookResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.appcomplianceautomation.outputs;
import com.pulumi.azurenative.appcomplianceautomation.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetWebhookResult {
/**
* @return content type
*
*/
private @Nullable String contentType;
/**
* @return webhook deliveryStatus
*
*/
private String deliveryStatus;
/**
* @return whether to enable ssl verification
*
*/
private @Nullable String enableSslVerification;
/**
* @return under which event notification should be sent.
*
*/
private @Nullable List events;
/**
* @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*
*/
private String id;
/**
* @return The name of the resource
*
*/
private String name;
/**
* @return webhook payload url
*
*/
private @Nullable String payloadUrl;
/**
* @return Azure Resource Provisioning State
*
*/
private String provisioningState;
/**
* @return whether to send notification under any event.
*
*/
private @Nullable String sendAllEvents;
/**
* @return Webhook status.
*
*/
private @Nullable String status;
/**
* @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
*/
private SystemDataResponse systemData;
/**
* @return Tenant id.
*
*/
private String tenantId;
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
private String type;
/**
* @return whether to update webhookKey.
*
*/
private @Nullable String updateWebhookKey;
/**
* @return Webhook id in database.
*
*/
private String webhookId;
/**
* @return webhook secret token. If not set, this field value is null; otherwise, please set a string value.
*
*/
private @Nullable String webhookKey;
/**
* @return whether webhookKey is enabled.
*
*/
private String webhookKeyEnabled;
private GetWebhookResult() {}
/**
* @return content type
*
*/
public Optional contentType() {
return Optional.ofNullable(this.contentType);
}
/**
* @return webhook deliveryStatus
*
*/
public String deliveryStatus() {
return this.deliveryStatus;
}
/**
* @return whether to enable ssl verification
*
*/
public Optional enableSslVerification() {
return Optional.ofNullable(this.enableSslVerification);
}
/**
* @return under which event notification should be sent.
*
*/
public List events() {
return this.events == null ? List.of() : this.events;
}
/**
* @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*
*/
public String id() {
return this.id;
}
/**
* @return The name of the resource
*
*/
public String name() {
return this.name;
}
/**
* @return webhook payload url
*
*/
public Optional payloadUrl() {
return Optional.ofNullable(this.payloadUrl);
}
/**
* @return Azure Resource Provisioning State
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return whether to send notification under any event.
*
*/
public Optional sendAllEvents() {
return Optional.ofNullable(this.sendAllEvents);
}
/**
* @return Webhook status.
*
*/
public Optional status() {
return Optional.ofNullable(this.status);
}
/**
* @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
*/
public SystemDataResponse systemData() {
return this.systemData;
}
/**
* @return Tenant id.
*
*/
public String tenantId() {
return this.tenantId;
}
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
public String type() {
return this.type;
}
/**
* @return whether to update webhookKey.
*
*/
public Optional updateWebhookKey() {
return Optional.ofNullable(this.updateWebhookKey);
}
/**
* @return Webhook id in database.
*
*/
public String webhookId() {
return this.webhookId;
}
/**
* @return webhook secret token. If not set, this field value is null; otherwise, please set a string value.
*
*/
public Optional webhookKey() {
return Optional.ofNullable(this.webhookKey);
}
/**
* @return whether webhookKey is enabled.
*
*/
public String webhookKeyEnabled() {
return this.webhookKeyEnabled;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetWebhookResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String contentType;
private String deliveryStatus;
private @Nullable String enableSslVerification;
private @Nullable List events;
private String id;
private String name;
private @Nullable String payloadUrl;
private String provisioningState;
private @Nullable String sendAllEvents;
private @Nullable String status;
private SystemDataResponse systemData;
private String tenantId;
private String type;
private @Nullable String updateWebhookKey;
private String webhookId;
private @Nullable String webhookKey;
private String webhookKeyEnabled;
public Builder() {}
public Builder(GetWebhookResult defaults) {
Objects.requireNonNull(defaults);
this.contentType = defaults.contentType;
this.deliveryStatus = defaults.deliveryStatus;
this.enableSslVerification = defaults.enableSslVerification;
this.events = defaults.events;
this.id = defaults.id;
this.name = defaults.name;
this.payloadUrl = defaults.payloadUrl;
this.provisioningState = defaults.provisioningState;
this.sendAllEvents = defaults.sendAllEvents;
this.status = defaults.status;
this.systemData = defaults.systemData;
this.tenantId = defaults.tenantId;
this.type = defaults.type;
this.updateWebhookKey = defaults.updateWebhookKey;
this.webhookId = defaults.webhookId;
this.webhookKey = defaults.webhookKey;
this.webhookKeyEnabled = defaults.webhookKeyEnabled;
}
@CustomType.Setter
public Builder contentType(@Nullable String contentType) {
this.contentType = contentType;
return this;
}
@CustomType.Setter
public Builder deliveryStatus(String deliveryStatus) {
if (deliveryStatus == null) {
throw new MissingRequiredPropertyException("GetWebhookResult", "deliveryStatus");
}
this.deliveryStatus = deliveryStatus;
return this;
}
@CustomType.Setter
public Builder enableSslVerification(@Nullable String enableSslVerification) {
this.enableSslVerification = enableSslVerification;
return this;
}
@CustomType.Setter
public Builder events(@Nullable List events) {
this.events = events;
return this;
}
public Builder events(String... events) {
return events(List.of(events));
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetWebhookResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetWebhookResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder payloadUrl(@Nullable String payloadUrl) {
this.payloadUrl = payloadUrl;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetWebhookResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder sendAllEvents(@Nullable String sendAllEvents) {
this.sendAllEvents = sendAllEvents;
return this;
}
@CustomType.Setter
public Builder status(@Nullable String status) {
this.status = status;
return this;
}
@CustomType.Setter
public Builder systemData(SystemDataResponse systemData) {
if (systemData == null) {
throw new MissingRequiredPropertyException("GetWebhookResult", "systemData");
}
this.systemData = systemData;
return this;
}
@CustomType.Setter
public Builder tenantId(String tenantId) {
if (tenantId == null) {
throw new MissingRequiredPropertyException("GetWebhookResult", "tenantId");
}
this.tenantId = tenantId;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetWebhookResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder updateWebhookKey(@Nullable String updateWebhookKey) {
this.updateWebhookKey = updateWebhookKey;
return this;
}
@CustomType.Setter
public Builder webhookId(String webhookId) {
if (webhookId == null) {
throw new MissingRequiredPropertyException("GetWebhookResult", "webhookId");
}
this.webhookId = webhookId;
return this;
}
@CustomType.Setter
public Builder webhookKey(@Nullable String webhookKey) {
this.webhookKey = webhookKey;
return this;
}
@CustomType.Setter
public Builder webhookKeyEnabled(String webhookKeyEnabled) {
if (webhookKeyEnabled == null) {
throw new MissingRequiredPropertyException("GetWebhookResult", "webhookKeyEnabled");
}
this.webhookKeyEnabled = webhookKeyEnabled;
return this;
}
public GetWebhookResult build() {
final var _resultValue = new GetWebhookResult();
_resultValue.contentType = contentType;
_resultValue.deliveryStatus = deliveryStatus;
_resultValue.enableSslVerification = enableSslVerification;
_resultValue.events = events;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.payloadUrl = payloadUrl;
_resultValue.provisioningState = provisioningState;
_resultValue.sendAllEvents = sendAllEvents;
_resultValue.status = status;
_resultValue.systemData = systemData;
_resultValue.tenantId = tenantId;
_resultValue.type = type;
_resultValue.updateWebhookKey = updateWebhookKey;
_resultValue.webhookId = webhookId;
_resultValue.webhookKey = webhookKey;
_resultValue.webhookKeyEnabled = webhookKeyEnabled;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy