com.pulumi.azurenative.media.outputs.GetContentKeyPolicyPropertiesWithSecretsResult 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.media.outputs;
import com.pulumi.azurenative.media.outputs.ContentKeyPolicyOptionResponse;
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 GetContentKeyPolicyPropertiesWithSecretsResult {
/**
* @return The creation date of the Policy
*
*/
private String created;
/**
* @return A description for the Policy.
*
*/
private @Nullable String description;
/**
* @return The last modified date of the Policy
*
*/
private String lastModified;
/**
* @return The Key Policy options.
*
*/
private List options;
/**
* @return The legacy Policy ID.
*
*/
private String policyId;
private GetContentKeyPolicyPropertiesWithSecretsResult() {}
/**
* @return The creation date of the Policy
*
*/
public String created() {
return this.created;
}
/**
* @return A description for the Policy.
*
*/
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return The last modified date of the Policy
*
*/
public String lastModified() {
return this.lastModified;
}
/**
* @return The Key Policy options.
*
*/
public List options() {
return this.options;
}
/**
* @return The legacy Policy ID.
*
*/
public String policyId() {
return this.policyId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetContentKeyPolicyPropertiesWithSecretsResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String created;
private @Nullable String description;
private String lastModified;
private List options;
private String policyId;
public Builder() {}
public Builder(GetContentKeyPolicyPropertiesWithSecretsResult defaults) {
Objects.requireNonNull(defaults);
this.created = defaults.created;
this.description = defaults.description;
this.lastModified = defaults.lastModified;
this.options = defaults.options;
this.policyId = defaults.policyId;
}
@CustomType.Setter
public Builder created(String created) {
if (created == null) {
throw new MissingRequiredPropertyException("GetContentKeyPolicyPropertiesWithSecretsResult", "created");
}
this.created = created;
return this;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder lastModified(String lastModified) {
if (lastModified == null) {
throw new MissingRequiredPropertyException("GetContentKeyPolicyPropertiesWithSecretsResult", "lastModified");
}
this.lastModified = lastModified;
return this;
}
@CustomType.Setter
public Builder options(List options) {
if (options == null) {
throw new MissingRequiredPropertyException("GetContentKeyPolicyPropertiesWithSecretsResult", "options");
}
this.options = options;
return this;
}
public Builder options(ContentKeyPolicyOptionResponse... options) {
return options(List.of(options));
}
@CustomType.Setter
public Builder policyId(String policyId) {
if (policyId == null) {
throw new MissingRequiredPropertyException("GetContentKeyPolicyPropertiesWithSecretsResult", "policyId");
}
this.policyId = policyId;
return this;
}
public GetContentKeyPolicyPropertiesWithSecretsResult build() {
final var _resultValue = new GetContentKeyPolicyPropertiesWithSecretsResult();
_resultValue.created = created;
_resultValue.description = description;
_resultValue.lastModified = lastModified;
_resultValue.options = options;
_resultValue.policyId = policyId;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy