| 
 | 1 | +// This file is auto-generated, don't edit it. Thanks.  | 
 | 2 | +#ifndef ALIBABACLOUD_MODELS_MODIFYLOGBACKUPPOLICYREQUESTADVANCEDLOGPOLICIES_HPP_  | 
 | 3 | +#define ALIBABACLOUD_MODELS_MODIFYLOGBACKUPPOLICYREQUESTADVANCEDLOGPOLICIES_HPP_  | 
 | 4 | +#include <darabonba/Core.hpp>  | 
 | 5 | +using namespace std;  | 
 | 6 | +using json = nlohmann::json;  | 
 | 7 | +namespace AlibabaCloud  | 
 | 8 | +{  | 
 | 9 | +namespace Polardb20170801  | 
 | 10 | +{  | 
 | 11 | +namespace Models  | 
 | 12 | +{  | 
 | 13 | +  class ModifyLogBackupPolicyRequestAdvancedLogPolicies : public Darabonba::Model {  | 
 | 14 | +  public:  | 
 | 15 | +    friend void to_json(Darabonba::Json& j, const ModifyLogBackupPolicyRequestAdvancedLogPolicies& obj) {   | 
 | 16 | +      DARABONBA_PTR_TO_JSON(ActionType, actionType_);  | 
 | 17 | +      DARABONBA_PTR_TO_JSON(DestRegion, destRegion_);  | 
 | 18 | +      DARABONBA_PTR_TO_JSON(DestType, destType_);  | 
 | 19 | +      DARABONBA_PTR_TO_JSON(EnableLogBackup, enableLogBackup_);  | 
 | 20 | +      DARABONBA_PTR_TO_JSON(LogRetentionType, logRetentionType_);  | 
 | 21 | +      DARABONBA_PTR_TO_JSON(LogRetentionValue, logRetentionValue_);  | 
 | 22 | +      DARABONBA_PTR_TO_JSON(PolicyId, policyId_);  | 
 | 23 | +      DARABONBA_PTR_TO_JSON(SrcRegion, srcRegion_);  | 
 | 24 | +      DARABONBA_PTR_TO_JSON(SrcType, srcType_);  | 
 | 25 | +    };  | 
 | 26 | +    friend void from_json(const Darabonba::Json& j, ModifyLogBackupPolicyRequestAdvancedLogPolicies& obj) {   | 
 | 27 | +      DARABONBA_PTR_FROM_JSON(ActionType, actionType_);  | 
 | 28 | +      DARABONBA_PTR_FROM_JSON(DestRegion, destRegion_);  | 
 | 29 | +      DARABONBA_PTR_FROM_JSON(DestType, destType_);  | 
 | 30 | +      DARABONBA_PTR_FROM_JSON(EnableLogBackup, enableLogBackup_);  | 
 | 31 | +      DARABONBA_PTR_FROM_JSON(LogRetentionType, logRetentionType_);  | 
 | 32 | +      DARABONBA_PTR_FROM_JSON(LogRetentionValue, logRetentionValue_);  | 
 | 33 | +      DARABONBA_PTR_FROM_JSON(PolicyId, policyId_);  | 
 | 34 | +      DARABONBA_PTR_FROM_JSON(SrcRegion, srcRegion_);  | 
 | 35 | +      DARABONBA_PTR_FROM_JSON(SrcType, srcType_);  | 
 | 36 | +    };  | 
 | 37 | +    ModifyLogBackupPolicyRequestAdvancedLogPolicies() = default ;  | 
 | 38 | +    ModifyLogBackupPolicyRequestAdvancedLogPolicies(const ModifyLogBackupPolicyRequestAdvancedLogPolicies &) = default ;  | 
 | 39 | +    ModifyLogBackupPolicyRequestAdvancedLogPolicies(ModifyLogBackupPolicyRequestAdvancedLogPolicies &&) = default ;  | 
 | 40 | +    ModifyLogBackupPolicyRequestAdvancedLogPolicies(const Darabonba::Json & obj) { from_json(obj, *this); };  | 
 | 41 | +    virtual ~ModifyLogBackupPolicyRequestAdvancedLogPolicies() = default ;  | 
 | 42 | +    ModifyLogBackupPolicyRequestAdvancedLogPolicies& operator=(const ModifyLogBackupPolicyRequestAdvancedLogPolicies &) = default ;  | 
 | 43 | +    ModifyLogBackupPolicyRequestAdvancedLogPolicies& operator=(ModifyLogBackupPolicyRequestAdvancedLogPolicies &&) = default ;  | 
 | 44 | +    virtual void validate() const override {  | 
 | 45 | +    };  | 
 | 46 | +    virtual void fromMap(const Darabonba::Json &obj) override { from_json(obj, *this); validate(); };  | 
 | 47 | +    virtual Darabonba::Json toMap() const override { Darabonba::Json obj; to_json(obj, *this); return obj; };  | 
 | 48 | +    virtual bool empty() const override { return this->actionType_ == nullptr  | 
 | 49 | +        && return this->destRegion_ == nullptr && return this->destType_ == nullptr && return this->enableLogBackup_ == nullptr && return this->logRetentionType_ == nullptr && return this->logRetentionValue_ == nullptr  | 
 | 50 | +        && return this->policyId_ == nullptr && return this->srcRegion_ == nullptr && return this->srcType_ == nullptr; };  | 
 | 51 | +    // actionType Field Functions   | 
 | 52 | +    bool hasActionType() const { return this->actionType_ != nullptr;};  | 
 | 53 | +    void deleteActionType() { this->actionType_ = nullptr;};  | 
 | 54 | +    inline string actionType() const { DARABONBA_PTR_GET_DEFAULT(actionType_, "") };  | 
 | 55 | +    inline ModifyLogBackupPolicyRequestAdvancedLogPolicies& setActionType(string actionType) { DARABONBA_PTR_SET_VALUE(actionType_, actionType) };  | 
 | 56 | + | 
 | 57 | + | 
 | 58 | +    // destRegion Field Functions   | 
 | 59 | +    bool hasDestRegion() const { return this->destRegion_ != nullptr;};  | 
 | 60 | +    void deleteDestRegion() { this->destRegion_ = nullptr;};  | 
 | 61 | +    inline string destRegion() const { DARABONBA_PTR_GET_DEFAULT(destRegion_, "") };  | 
 | 62 | +    inline ModifyLogBackupPolicyRequestAdvancedLogPolicies& setDestRegion(string destRegion) { DARABONBA_PTR_SET_VALUE(destRegion_, destRegion) };  | 
 | 63 | + | 
 | 64 | + | 
 | 65 | +    // destType Field Functions   | 
 | 66 | +    bool hasDestType() const { return this->destType_ != nullptr;};  | 
 | 67 | +    void deleteDestType() { this->destType_ = nullptr;};  | 
 | 68 | +    inline string destType() const { DARABONBA_PTR_GET_DEFAULT(destType_, "") };  | 
 | 69 | +    inline ModifyLogBackupPolicyRequestAdvancedLogPolicies& setDestType(string destType) { DARABONBA_PTR_SET_VALUE(destType_, destType) };  | 
 | 70 | + | 
 | 71 | + | 
 | 72 | +    // enableLogBackup Field Functions   | 
 | 73 | +    bool hasEnableLogBackup() const { return this->enableLogBackup_ != nullptr;};  | 
 | 74 | +    void deleteEnableLogBackup() { this->enableLogBackup_ = nullptr;};  | 
 | 75 | +    inline int32_t enableLogBackup() const { DARABONBA_PTR_GET_DEFAULT(enableLogBackup_, 0) };  | 
 | 76 | +    inline ModifyLogBackupPolicyRequestAdvancedLogPolicies& setEnableLogBackup(int32_t enableLogBackup) { DARABONBA_PTR_SET_VALUE(enableLogBackup_, enableLogBackup) };  | 
 | 77 | + | 
 | 78 | + | 
 | 79 | +    // logRetentionType Field Functions   | 
 | 80 | +    bool hasLogRetentionType() const { return this->logRetentionType_ != nullptr;};  | 
 | 81 | +    void deleteLogRetentionType() { this->logRetentionType_ = nullptr;};  | 
 | 82 | +    inline string logRetentionType() const { DARABONBA_PTR_GET_DEFAULT(logRetentionType_, "") };  | 
 | 83 | +    inline ModifyLogBackupPolicyRequestAdvancedLogPolicies& setLogRetentionType(string logRetentionType) { DARABONBA_PTR_SET_VALUE(logRetentionType_, logRetentionType) };  | 
 | 84 | + | 
 | 85 | + | 
 | 86 | +    // logRetentionValue Field Functions   | 
 | 87 | +    bool hasLogRetentionValue() const { return this->logRetentionValue_ != nullptr;};  | 
 | 88 | +    void deleteLogRetentionValue() { this->logRetentionValue_ = nullptr;};  | 
 | 89 | +    inline string logRetentionValue() const { DARABONBA_PTR_GET_DEFAULT(logRetentionValue_, "") };  | 
 | 90 | +    inline ModifyLogBackupPolicyRequestAdvancedLogPolicies& setLogRetentionValue(string logRetentionValue) { DARABONBA_PTR_SET_VALUE(logRetentionValue_, logRetentionValue) };  | 
 | 91 | + | 
 | 92 | + | 
 | 93 | +    // policyId Field Functions   | 
 | 94 | +    bool hasPolicyId() const { return this->policyId_ != nullptr;};  | 
 | 95 | +    void deletePolicyId() { this->policyId_ = nullptr;};  | 
 | 96 | +    inline string policyId() const { DARABONBA_PTR_GET_DEFAULT(policyId_, "") };  | 
 | 97 | +    inline ModifyLogBackupPolicyRequestAdvancedLogPolicies& setPolicyId(string policyId) { DARABONBA_PTR_SET_VALUE(policyId_, policyId) };  | 
 | 98 | + | 
 | 99 | + | 
 | 100 | +    // srcRegion Field Functions   | 
 | 101 | +    bool hasSrcRegion() const { return this->srcRegion_ != nullptr;};  | 
 | 102 | +    void deleteSrcRegion() { this->srcRegion_ = nullptr;};  | 
 | 103 | +    inline string srcRegion() const { DARABONBA_PTR_GET_DEFAULT(srcRegion_, "") };  | 
 | 104 | +    inline ModifyLogBackupPolicyRequestAdvancedLogPolicies& setSrcRegion(string srcRegion) { DARABONBA_PTR_SET_VALUE(srcRegion_, srcRegion) };  | 
 | 105 | + | 
 | 106 | + | 
 | 107 | +    // srcType Field Functions   | 
 | 108 | +    bool hasSrcType() const { return this->srcType_ != nullptr;};  | 
 | 109 | +    void deleteSrcType() { this->srcType_ = nullptr;};  | 
 | 110 | +    inline string srcType() const { DARABONBA_PTR_GET_DEFAULT(srcType_, "") };  | 
 | 111 | +    inline ModifyLogBackupPolicyRequestAdvancedLogPolicies& setSrcType(string srcType) { DARABONBA_PTR_SET_VALUE(srcType_, srcType) };  | 
 | 112 | + | 
 | 113 | + | 
 | 114 | +  protected:  | 
 | 115 | +    std::shared_ptr<string> actionType_ = nullptr;  | 
 | 116 | +    std::shared_ptr<string> destRegion_ = nullptr;  | 
 | 117 | +    std::shared_ptr<string> destType_ = nullptr;  | 
 | 118 | +    std::shared_ptr<int32_t> enableLogBackup_ = nullptr;  | 
 | 119 | +    std::shared_ptr<string> logRetentionType_ = nullptr;  | 
 | 120 | +    std::shared_ptr<string> logRetentionValue_ = nullptr;  | 
 | 121 | +    std::shared_ptr<string> policyId_ = nullptr;  | 
 | 122 | +    std::shared_ptr<string> srcRegion_ = nullptr;  | 
 | 123 | +    std::shared_ptr<string> srcType_ = nullptr;  | 
 | 124 | +  };  | 
 | 125 | + | 
 | 126 | +  } // namespace Models  | 
 | 127 | +} // namespace AlibabaCloud  | 
 | 128 | +} // namespace Polardb20170801  | 
 | 129 | +#endif  | 
0 commit comments