All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.googlenative.memcache.v1.outputs.GoogleCloudMemcacheV1MaintenancePolicyResponse Maven / Gradle / Ivy

// *** 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.googlenative.memcache.v1.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.googlenative.memcache.v1.outputs.WeeklyMaintenanceWindowResponse;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GoogleCloudMemcacheV1MaintenancePolicyResponse {
    /**
     * @return The time when the policy was created.
     * 
     */
    private String createTime;
    /**
     * @return Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512.
     * 
     */
    private String description;
    /**
     * @return The time when the policy was updated.
     * 
     */
    private String updateTime;
    /**
     * @return Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_windows is expected to be one.
     * 
     */
    private List weeklyMaintenanceWindow;

    private GoogleCloudMemcacheV1MaintenancePolicyResponse() {}
    /**
     * @return The time when the policy was created.
     * 
     */
    public String createTime() {
        return this.createTime;
    }
    /**
     * @return Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512.
     * 
     */
    public String description() {
        return this.description;
    }
    /**
     * @return The time when the policy was updated.
     * 
     */
    public String updateTime() {
        return this.updateTime;
    }
    /**
     * @return Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_windows is expected to be one.
     * 
     */
    public List weeklyMaintenanceWindow() {
        return this.weeklyMaintenanceWindow;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(GoogleCloudMemcacheV1MaintenancePolicyResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String createTime;
        private String description;
        private String updateTime;
        private List weeklyMaintenanceWindow;
        public Builder() {}
        public Builder(GoogleCloudMemcacheV1MaintenancePolicyResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.createTime = defaults.createTime;
    	      this.description = defaults.description;
    	      this.updateTime = defaults.updateTime;
    	      this.weeklyMaintenanceWindow = defaults.weeklyMaintenanceWindow;
        }

        @CustomType.Setter
        public Builder createTime(String createTime) {
            this.createTime = Objects.requireNonNull(createTime);
            return this;
        }
        @CustomType.Setter
        public Builder description(String description) {
            this.description = Objects.requireNonNull(description);
            return this;
        }
        @CustomType.Setter
        public Builder updateTime(String updateTime) {
            this.updateTime = Objects.requireNonNull(updateTime);
            return this;
        }
        @CustomType.Setter
        public Builder weeklyMaintenanceWindow(List weeklyMaintenanceWindow) {
            this.weeklyMaintenanceWindow = Objects.requireNonNull(weeklyMaintenanceWindow);
            return this;
        }
        public Builder weeklyMaintenanceWindow(WeeklyMaintenanceWindowResponse... weeklyMaintenanceWindow) {
            return weeklyMaintenanceWindow(List.of(weeklyMaintenanceWindow));
        }
        public GoogleCloudMemcacheV1MaintenancePolicyResponse build() {
            final var o = new GoogleCloudMemcacheV1MaintenancePolicyResponse();
            o.createTime = createTime;
            o.description = description;
            o.updateTime = updateTime;
            o.weeklyMaintenanceWindow = weeklyMaintenanceWindow;
            return o;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy