text: /*
   * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *    http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  
  #ifndef TENCENTCLOUD_MARIADB_V20170312_MODEL_FUNCTIONPRIVILEGE_H_
  #define TENCENTCLOUD_MARIADB_V20170312_MODEL_FUNCTIONPRIVILEGE_H_
  
  #include <string>
  #include <vector>
  #include <map>
  #include <tencentcloud/core/utils/rapidjson/document.h>
  #include <tencentcloud/core/utils/rapidjson/writer.h>
  #include <tencentcloud/core/utils/rapidjson/stringbuffer.h>
  #include <tencentcloud/core/AbstractModel.h>
  
  
  namespace TencentCloud
  {
      namespace Mariadb
      {
          namespace V20170312
          {
              namespace Model
              {
                  /**
                  * Function permission information
                  */
                  class FunctionPrivilege : public AbstractModel
                  {
                  public:
                      FunctionPrivilege();
                      ~FunctionPrivilege() = default;
                      void ToJsonObject(rapidjson::Value &value, rapidjson::Document::AllocatorType& allocator) const;
                      CoreInternalOutcome Deserialize(const rapidjson::Value &value);
  
  
                      /**
                       * 获取Database name
                       * @return Database Database name
                       */
                      std::string GetDatabase() const;
  
                      /**
                       * 设置Database name
                       * @param Database Database name
                       */
                      void SetDatabase(const std::string& _database);
  
                      /**
                       * 判断参数 Database 是否已赋值
                       * @return Database 是否已赋值
                       */
                      bool DatabaseHasBeenSet() const;
  
                      /**
                       * 获取Function name
                       * @return FunctionName Function name
                       */
                      std::string GetFunctionName() const;
  
                      /**
                       * 设置Function name
                       * @param FunctionName Function name
                       */
                      void SetFunctionName(const std::string& _functionName);
  
                      /**
                       * 判断参数 FunctionName 是否已赋值
                       * @return FunctionName 是否已赋值
                       */
                      bool FunctionNameHasBeenSet() const;
  
                      /**
                       * 获取Permission information
                       * @return Privileges Permission information
                       */
                      std::vector<std::string> GetPrivileges() const;
  
                      /**
                       * 设置Permission information
                       * @param Privileges Permission information
                       */
                      void SetPrivileges(const std::vector<std::string>& _privileges);
  
                      /**
                       * 判断参数 Privileges 是否已赋值
                       * @return Privileges 是否已赋值
                       */
                      bool PrivilegesHasBeenSet() const;
  
                  private:
  
                      /**
                       * Database name
                       */
                      std::string m_database;
                      bool m_databaseHasBeenSet;
  
                      /**
                       * Function name
                       */
                      std::string m_functionName;
                      bool m_functionNameHasBeenSet;
  
                      /**
                       * Permission information
                       */
                      std::vector<std::string> m_privileges;
                      bool m_privilegesHasBeenSet;
  
                  };
              }
          }
      }
  }
  
  #endif // !TENCENTCLOUD_MARIADB_V20170312_MODEL_FUNCTIONPRIVILEGE_H_
  