// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.AliCloud.Alb.Outputs
{

    [OutputType]
    public sealed class GetServerGroupsGroupStickySessionConfigResult
    {
        /// <summary>
        /// the cookie that is configured on the server. **NOTE:** This parameter exists if the `StickySession` parameter is set to `On` and the `StickySessionType` parameter is set to `server`.
        /// </summary>
        public readonly string Cookie;
        /// <summary>
        /// The timeout period of a cookie. The timeout period of a cookie. Unit: seconds. Valid values: `1` to `86400`. Default value: `1000`.
        /// </summary>
        public readonly int CookieTimeout;
        /// <summary>
        /// Indicates whether sticky session is enabled. Values: `true` and `false`. Default value: `false`.  **NOTE:** This parameter exists if the `StickySession` parameter is set to `On`.
        /// </summary>
        public readonly bool StickySessionEnabled;
        /// <summary>
        /// The method that is used to handle a cookie. Values: `Server` and `Insert`.
        /// </summary>
        public readonly string StickySessionType;

        [OutputConstructor]
        private GetServerGroupsGroupStickySessionConfigResult(
            string cookie,

            int cookieTimeout,

            bool stickySessionEnabled,

            string stickySessionType)
        {
            Cookie = cookie;
            CookieTimeout = cookieTimeout;
            StickySessionEnabled = stickySessionEnabled;
            StickySessionType = stickySessionType;
        }
    }
}
