com.pulumi.azure.securitycenter.outputs.AutomationAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.securitycenter.outputs;
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 AutomationAction {
/**
* @return (Optional, but required when `type` is `eventhub`) A connection string to send data to the target Event Hub namespace, this should include a key with send permissions.
*
*/
private @Nullable String connectionString;
/**
* @return The resource id of the target Logic App, Event Hub namespace or Log Analytics workspace.
*
*/
private String resourceId;
/**
* @return (Optional, but required when `type` is `logicapp`) The callback URL to trigger the Logic App that will receive and process data sent by this automation. This can be found in the Azure Portal under "See trigger history"
*
*/
private @Nullable String triggerUrl;
/**
* @return Type of Azure resource to send data to. Must be set to one of: `logicapp`, `eventhub` or `loganalytics`.
*
*/
private String type;
private AutomationAction() {}
/**
* @return (Optional, but required when `type` is `eventhub`) A connection string to send data to the target Event Hub namespace, this should include a key with send permissions.
*
*/
public Optional connectionString() {
return Optional.ofNullable(this.connectionString);
}
/**
* @return The resource id of the target Logic App, Event Hub namespace or Log Analytics workspace.
*
*/
public String resourceId() {
return this.resourceId;
}
/**
* @return (Optional, but required when `type` is `logicapp`) The callback URL to trigger the Logic App that will receive and process data sent by this automation. This can be found in the Azure Portal under "See trigger history"
*
*/
public Optional triggerUrl() {
return Optional.ofNullable(this.triggerUrl);
}
/**
* @return Type of Azure resource to send data to. Must be set to one of: `logicapp`, `eventhub` or `loganalytics`.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AutomationAction defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String connectionString;
private String resourceId;
private @Nullable String triggerUrl;
private String type;
public Builder() {}
public Builder(AutomationAction defaults) {
Objects.requireNonNull(defaults);
this.connectionString = defaults.connectionString;
this.resourceId = defaults.resourceId;
this.triggerUrl = defaults.triggerUrl;
this.type = defaults.type;
}
@CustomType.Setter
public Builder connectionString(@Nullable String connectionString) {
this.connectionString = connectionString;
return this;
}
@CustomType.Setter
public Builder resourceId(String resourceId) {
if (resourceId == null) {
throw new MissingRequiredPropertyException("AutomationAction", "resourceId");
}
this.resourceId = resourceId;
return this;
}
@CustomType.Setter
public Builder triggerUrl(@Nullable String triggerUrl) {
this.triggerUrl = triggerUrl;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("AutomationAction", "type");
}
this.type = type;
return this;
}
public AutomationAction build() {
final var _resultValue = new AutomationAction();
_resultValue.connectionString = connectionString;
_resultValue.resourceId = resourceId;
_resultValue.triggerUrl = triggerUrl;
_resultValue.type = type;
return _resultValue;
}
}
}