44#include < darabonba/Core.hpp>
55#include < vector>
66#include < alibabacloud/models/GetJobResponseBodyPodsHistoryPods.hpp>
7+ #include < alibabacloud/models/PodNetworkInterface.hpp>
78using namespace std ;
89using json = nlohmann::json;
910namespace AlibabaCloud
@@ -15,25 +16,31 @@ namespace Models
1516 class GetJobResponseBodyPods : public Darabonba ::Model {
1617 public:
1718 friend void to_json (Darabonba::Json& j, const GetJobResponseBodyPods& obj) {
19+ DARABONBA_PTR_TO_JSON (Duration, duration_);
1820 DARABONBA_PTR_TO_JSON (GmtCreateTime, gmtCreateTime_);
1921 DARABONBA_PTR_TO_JSON (GmtFinishTime, gmtFinishTime_);
2022 DARABONBA_PTR_TO_JSON (GmtStartTime, gmtStartTime_);
2123 DARABONBA_PTR_TO_JSON (HistoryPods, historyPods_);
2224 DARABONBA_PTR_TO_JSON (Ip, ip_);
25+ DARABONBA_PTR_TO_JSON (NodeName, nodeName_);
2326 DARABONBA_PTR_TO_JSON (PodId, podId_);
27+ DARABONBA_PTR_TO_JSON (PodIps, podIps_);
2428 DARABONBA_PTR_TO_JSON (PodUid, podUid_);
2529 DARABONBA_PTR_TO_JSON (ResourceType, resourceType_);
2630 DARABONBA_PTR_TO_JSON (Status, status_);
2731 DARABONBA_PTR_TO_JSON (SubStatus, subStatus_);
2832 DARABONBA_PTR_TO_JSON (Type, type_);
2933 };
3034 friend void from_json (const Darabonba::Json& j, GetJobResponseBodyPods& obj) {
35+ DARABONBA_PTR_FROM_JSON (Duration, duration_);
3136 DARABONBA_PTR_FROM_JSON (GmtCreateTime, gmtCreateTime_);
3237 DARABONBA_PTR_FROM_JSON (GmtFinishTime, gmtFinishTime_);
3338 DARABONBA_PTR_FROM_JSON (GmtStartTime, gmtStartTime_);
3439 DARABONBA_PTR_FROM_JSON (HistoryPods, historyPods_);
3540 DARABONBA_PTR_FROM_JSON (Ip, ip_);
41+ DARABONBA_PTR_FROM_JSON (NodeName, nodeName_);
3642 DARABONBA_PTR_FROM_JSON (PodId, podId_);
43+ DARABONBA_PTR_FROM_JSON (PodIps, podIps_);
3744 DARABONBA_PTR_FROM_JSON (PodUid, podUid_);
3845 DARABONBA_PTR_FROM_JSON (ResourceType, resourceType_);
3946 DARABONBA_PTR_FROM_JSON (Status, status_);
@@ -51,9 +58,17 @@ namespace Models
5158 };
5259 virtual void fromMap (const Darabonba::Json &obj) override { from_json (obj, *this ); validate (); };
5360 virtual Darabonba::Json toMap () const override { Darabonba::Json obj; to_json (obj, *this ); return obj; };
54- virtual bool empty () const override { return this ->gmtCreateTime_ == nullptr
55- && return this ->gmtFinishTime_ == nullptr && return this ->gmtStartTime_ == nullptr && return this ->historyPods_ == nullptr && return this ->ip_ == nullptr && return this ->podId_ == nullptr
56- && return this ->podUid_ == nullptr && return this ->resourceType_ == nullptr && return this ->status_ == nullptr && return this ->subStatus_ == nullptr && return this ->type_ == nullptr ; };
61+ virtual bool empty () const override { return this ->duration_ == nullptr
62+ && return this ->gmtCreateTime_ == nullptr && return this ->gmtFinishTime_ == nullptr && return this ->gmtStartTime_ == nullptr && return this ->historyPods_ == nullptr && return this ->ip_ == nullptr
63+ && return this ->nodeName_ == nullptr && return this ->podId_ == nullptr && return this ->podIps_ == nullptr && return this ->podUid_ == nullptr && return this ->resourceType_ == nullptr
64+ && return this ->status_ == nullptr && return this ->subStatus_ == nullptr && return this ->type_ == nullptr ; };
65+ // duration Field Functions
66+ bool hasDuration () const { return this ->duration_ != nullptr ;};
67+ void deleteDuration () { this ->duration_ = nullptr ;};
68+ inline double duration () const { DARABONBA_PTR_GET_DEFAULT (duration_, 0.0 ) };
69+ inline GetJobResponseBodyPods& setDuration (double duration) { DARABONBA_PTR_SET_VALUE (duration_, duration) };
70+
71+
5772 // gmtCreateTime Field Functions
5873 bool hasGmtCreateTime () const { return this ->gmtCreateTime_ != nullptr ;};
5974 void deleteGmtCreateTime () { this ->gmtCreateTime_ = nullptr ;};
@@ -91,13 +106,29 @@ namespace Models
91106 inline GetJobResponseBodyPods& setIp (string ip) { DARABONBA_PTR_SET_VALUE (ip_, ip) };
92107
93108
109+ // nodeName Field Functions
110+ bool hasNodeName () const { return this ->nodeName_ != nullptr ;};
111+ void deleteNodeName () { this ->nodeName_ = nullptr ;};
112+ inline string nodeName () const { DARABONBA_PTR_GET_DEFAULT (nodeName_, " " ) };
113+ inline GetJobResponseBodyPods& setNodeName (string nodeName) { DARABONBA_PTR_SET_VALUE (nodeName_, nodeName) };
114+
115+
94116 // podId Field Functions
95117 bool hasPodId () const { return this ->podId_ != nullptr ;};
96118 void deletePodId () { this ->podId_ = nullptr ;};
97119 inline string podId () const { DARABONBA_PTR_GET_DEFAULT (podId_, " " ) };
98120 inline GetJobResponseBodyPods& setPodId (string podId) { DARABONBA_PTR_SET_VALUE (podId_, podId) };
99121
100122
123+ // podIps Field Functions
124+ bool hasPodIps () const { return this ->podIps_ != nullptr ;};
125+ void deletePodIps () { this ->podIps_ = nullptr ;};
126+ inline const vector<Models::PodNetworkInterface> & podIps () const { DARABONBA_PTR_GET_CONST (podIps_, vector<Models::PodNetworkInterface>) };
127+ inline vector<Models::PodNetworkInterface> podIps () { DARABONBA_PTR_GET (podIps_, vector<Models::PodNetworkInterface>) };
128+ inline GetJobResponseBodyPods& setPodIps (const vector<Models::PodNetworkInterface> & podIps) { DARABONBA_PTR_SET_VALUE (podIps_, podIps) };
129+ inline GetJobResponseBodyPods& setPodIps (vector<Models::PodNetworkInterface> && podIps) { DARABONBA_PTR_SET_RVALUE (podIps_, podIps) };
130+
131+
101132 // podUid Field Functions
102133 bool hasPodUid () const { return this ->podUid_ != nullptr ;};
103134 void deletePodUid () { this ->podUid_ = nullptr ;};
@@ -134,6 +165,7 @@ namespace Models
134165
135166
136167 protected:
168+ std::shared_ptr<double > duration_ = nullptr ;
137169 // The time when the node was created (UTC).
138170 std::shared_ptr<string> gmtCreateTime_ = nullptr ;
139171 // The end time of the node (UTC).
@@ -144,8 +176,10 @@ namespace Models
144176 std::shared_ptr<vector<Models::GetJobResponseBodyPodsHistoryPods>> historyPods_ = nullptr ;
145177 // The IP address of the node.
146178 std::shared_ptr<string> ip_ = nullptr ;
179+ std::shared_ptr<string> nodeName_ = nullptr ;
147180 // The node ID. It can be used in the GetPodLogs and GetPodEvents operations to obtain the detailed logs and events of the node.
148181 std::shared_ptr<string> podId_ = nullptr ;
182+ std::shared_ptr<vector<Models::PodNetworkInterface>> podIps_ = nullptr ;
149183 // The UID of the node.
150184 std::shared_ptr<string> podUid_ = nullptr ;
151185 // The resource type of the node.
0 commit comments