com.pulumi.azurenative.keyvault.outputs.LifetimeActionResponse 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.keyvault.outputs;
import com.pulumi.azurenative.keyvault.outputs.ActionResponse;
import com.pulumi.azurenative.keyvault.outputs.TriggerResponse;
import com.pulumi.core.annotations.CustomType;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class LifetimeActionResponse {
/**
* @return The action of key rotation policy lifetimeAction.
*
*/
private @Nullable ActionResponse action;
/**
* @return The trigger of key rotation policy lifetimeAction.
*
*/
private @Nullable TriggerResponse trigger;
private LifetimeActionResponse() {}
/**
* @return The action of key rotation policy lifetimeAction.
*
*/
public Optional action() {
return Optional.ofNullable(this.action);
}
/**
* @return The trigger of key rotation policy lifetimeAction.
*
*/
public Optional trigger() {
return Optional.ofNullable(this.trigger);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(LifetimeActionResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable ActionResponse action;
private @Nullable TriggerResponse trigger;
public Builder() {}
public Builder(LifetimeActionResponse defaults) {
Objects.requireNonNull(defaults);
this.action = defaults.action;
this.trigger = defaults.trigger;
}
@CustomType.Setter
public Builder action(@Nullable ActionResponse action) {
this.action = action;
return this;
}
@CustomType.Setter
public Builder trigger(@Nullable TriggerResponse trigger) {
this.trigger = trigger;
return this;
}
public LifetimeActionResponse build() {
final var _resultValue = new LifetimeActionResponse();
_resultValue.action = action;
_resultValue.trigger = trigger;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy