com.pulumi.azurenative.automation.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.automation.outputs;
import com.pulumi.azurenative.automation.outputs.RunbookAssociationPropertyResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetWebhookResult {
/**
* @return Gets or sets the creation time.
*
*/
private @Nullable String creationTime;
/**
* @return Gets or sets the description.
*
*/
private @Nullable String description;
/**
* @return Gets or sets the expiry time.
*
*/
private @Nullable String expiryTime;
/**
* @return Fully qualified resource Id for the resource
*
*/
private String id;
/**
* @return Gets or sets the value of the enabled flag of the webhook.
*
*/
private @Nullable Boolean isEnabled;
/**
* @return Gets or sets the last invoked time.
*
*/
private @Nullable String lastInvokedTime;
/**
* @return Details of the user who last modified the Webhook
*
*/
private @Nullable String lastModifiedBy;
/**
* @return Gets or sets the last modified time.
*
*/
private @Nullable String lastModifiedTime;
/**
* @return The name of the resource
*
*/
private String name;
/**
* @return Gets or sets the parameters of the job that is created when the webhook calls the runbook it is associated with.
*
*/
private @Nullable Map parameters;
/**
* @return Gets or sets the name of the hybrid worker group the webhook job will run on.
*
*/
private @Nullable String runOn;
/**
* @return Gets or sets the runbook the webhook is associated with.
*
*/
private @Nullable RunbookAssociationPropertyResponse runbook;
/**
* @return The type of the resource.
*
*/
private String type;
/**
* @return Gets or sets the webhook uri.
*
*/
private @Nullable String uri;
private GetWebhookResult() {}
/**
* @return Gets or sets the creation time.
*
*/
public Optional creationTime() {
return Optional.ofNullable(this.creationTime);
}
/**
* @return Gets or sets the description.
*
*/
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return Gets or sets the expiry time.
*
*/
public Optional expiryTime() {
return Optional.ofNullable(this.expiryTime);
}
/**
* @return Fully qualified resource Id for the resource
*
*/
public String id() {
return this.id;
}
/**
* @return Gets or sets the value of the enabled flag of the webhook.
*
*/
public Optional isEnabled() {
return Optional.ofNullable(this.isEnabled);
}
/**
* @return Gets or sets the last invoked time.
*
*/
public Optional lastInvokedTime() {
return Optional.ofNullable(this.lastInvokedTime);
}
/**
* @return Details of the user who last modified the Webhook
*
*/
public Optional lastModifiedBy() {
return Optional.ofNullable(this.lastModifiedBy);
}
/**
* @return Gets or sets the last modified time.
*
*/
public Optional lastModifiedTime() {
return Optional.ofNullable(this.lastModifiedTime);
}
/**
* @return The name of the resource
*
*/
public String name() {
return this.name;
}
/**
* @return Gets or sets the parameters of the job that is created when the webhook calls the runbook it is associated with.
*
*/
public Map parameters() {
return this.parameters == null ? Map.of() : this.parameters;
}
/**
* @return Gets or sets the name of the hybrid worker group the webhook job will run on.
*
*/
public Optional runOn() {
return Optional.ofNullable(this.runOn);
}
/**
* @return Gets or sets the runbook the webhook is associated with.
*
*/
public Optional runbook() {
return Optional.ofNullable(this.runbook);
}
/**
* @return The type of the resource.
*
*/
public String type() {
return this.type;
}
/**
* @return Gets or sets the webhook uri.
*
*/
public Optional uri() {
return Optional.ofNullable(this.uri);
}
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 creationTime;
private @Nullable String description;
private @Nullable String expiryTime;
private String id;
private @Nullable Boolean isEnabled;
private @Nullable String lastInvokedTime;
private @Nullable String lastModifiedBy;
private @Nullable String lastModifiedTime;
private String name;
private @Nullable Map parameters;
private @Nullable String runOn;
private @Nullable RunbookAssociationPropertyResponse runbook;
private String type;
private @Nullable String uri;
public Builder() {}
public Builder(GetWebhookResult defaults) {
Objects.requireNonNull(defaults);
this.creationTime = defaults.creationTime;
this.description = defaults.description;
this.expiryTime = defaults.expiryTime;
this.id = defaults.id;
this.isEnabled = defaults.isEnabled;
this.lastInvokedTime = defaults.lastInvokedTime;
this.lastModifiedBy = defaults.lastModifiedBy;
this.lastModifiedTime = defaults.lastModifiedTime;
this.name = defaults.name;
this.parameters = defaults.parameters;
this.runOn = defaults.runOn;
this.runbook = defaults.runbook;
this.type = defaults.type;
this.uri = defaults.uri;
}
@CustomType.Setter
public Builder creationTime(@Nullable String creationTime) {
this.creationTime = creationTime;
return this;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder expiryTime(@Nullable String expiryTime) {
this.expiryTime = expiryTime;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetWebhookResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder isEnabled(@Nullable Boolean isEnabled) {
this.isEnabled = isEnabled;
return this;
}
@CustomType.Setter
public Builder lastInvokedTime(@Nullable String lastInvokedTime) {
this.lastInvokedTime = lastInvokedTime;
return this;
}
@CustomType.Setter
public Builder lastModifiedBy(@Nullable String lastModifiedBy) {
this.lastModifiedBy = lastModifiedBy;
return this;
}
@CustomType.Setter
public Builder lastModifiedTime(@Nullable String lastModifiedTime) {
this.lastModifiedTime = lastModifiedTime;
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 parameters(@Nullable Map parameters) {
this.parameters = parameters;
return this;
}
@CustomType.Setter
public Builder runOn(@Nullable String runOn) {
this.runOn = runOn;
return this;
}
@CustomType.Setter
public Builder runbook(@Nullable RunbookAssociationPropertyResponse runbook) {
this.runbook = runbook;
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 uri(@Nullable String uri) {
this.uri = uri;
return this;
}
public GetWebhookResult build() {
final var _resultValue = new GetWebhookResult();
_resultValue.creationTime = creationTime;
_resultValue.description = description;
_resultValue.expiryTime = expiryTime;
_resultValue.id = id;
_resultValue.isEnabled = isEnabled;
_resultValue.lastInvokedTime = lastInvokedTime;
_resultValue.lastModifiedBy = lastModifiedBy;
_resultValue.lastModifiedTime = lastModifiedTime;
_resultValue.name = name;
_resultValue.parameters = parameters;
_resultValue.runOn = runOn;
_resultValue.runbook = runbook;
_resultValue.type = type;
_resultValue.uri = uri;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy