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

com.pulumi.alicloud.cdn.outputs.GetServiceResult Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
Show newest version
// *** 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.alicloud.cdn.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 GetServiceResult {
    /**
     * @return The time when the change of the billing method starts to take effect. The time is displayed in GMT.
     * 
     */
    private String changingAffectTime;
    /**
     * @return The billing method to be effective.
     * 
     */
    private String changingChargeType;
    private @Nullable String enable;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    private @Nullable String internetChargeType;
    /**
     * @return The time when the CDN service was activated. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mmZ format.
     * 
     */
    private String openingTime;
    /**
     * @return The current service enable status.
     * 
     */
    private String status;

    private GetServiceResult() {}
    /**
     * @return The time when the change of the billing method starts to take effect. The time is displayed in GMT.
     * 
     */
    public String changingAffectTime() {
        return this.changingAffectTime;
    }
    /**
     * @return The billing method to be effective.
     * 
     */
    public String changingChargeType() {
        return this.changingChargeType;
    }
    public Optional enable() {
        return Optional.ofNullable(this.enable);
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    public Optional internetChargeType() {
        return Optional.ofNullable(this.internetChargeType);
    }
    /**
     * @return The time when the CDN service was activated. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mmZ format.
     * 
     */
    public String openingTime() {
        return this.openingTime;
    }
    /**
     * @return The current service enable status.
     * 
     */
    public String status() {
        return this.status;
    }

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

    public static Builder builder(GetServiceResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String changingAffectTime;
        private String changingChargeType;
        private @Nullable String enable;
        private String id;
        private @Nullable String internetChargeType;
        private String openingTime;
        private String status;
        public Builder() {}
        public Builder(GetServiceResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.changingAffectTime = defaults.changingAffectTime;
    	      this.changingChargeType = defaults.changingChargeType;
    	      this.enable = defaults.enable;
    	      this.id = defaults.id;
    	      this.internetChargeType = defaults.internetChargeType;
    	      this.openingTime = defaults.openingTime;
    	      this.status = defaults.status;
        }

        @CustomType.Setter
        public Builder changingAffectTime(String changingAffectTime) {
            if (changingAffectTime == null) {
              throw new MissingRequiredPropertyException("GetServiceResult", "changingAffectTime");
            }
            this.changingAffectTime = changingAffectTime;
            return this;
        }
        @CustomType.Setter
        public Builder changingChargeType(String changingChargeType) {
            if (changingChargeType == null) {
              throw new MissingRequiredPropertyException("GetServiceResult", "changingChargeType");
            }
            this.changingChargeType = changingChargeType;
            return this;
        }
        @CustomType.Setter
        public Builder enable(@Nullable String enable) {

            this.enable = enable;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetServiceResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder internetChargeType(@Nullable String internetChargeType) {

            this.internetChargeType = internetChargeType;
            return this;
        }
        @CustomType.Setter
        public Builder openingTime(String openingTime) {
            if (openingTime == null) {
              throw new MissingRequiredPropertyException("GetServiceResult", "openingTime");
            }
            this.openingTime = openingTime;
            return this;
        }
        @CustomType.Setter
        public Builder status(String status) {
            if (status == null) {
              throw new MissingRequiredPropertyException("GetServiceResult", "status");
            }
            this.status = status;
            return this;
        }
        public GetServiceResult build() {
            final var _resultValue = new GetServiceResult();
            _resultValue.changingAffectTime = changingAffectTime;
            _resultValue.changingChargeType = changingChargeType;
            _resultValue.enable = enable;
            _resultValue.id = id;
            _resultValue.internetChargeType = internetChargeType;
            _resultValue.openingTime = openingTime;
            _resultValue.status = status;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy