CreateRouteEntryRequest.h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /*
  2. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #ifndef ALIBABACLOUD_VPC_MODEL_CREATEROUTEENTRYREQUEST_H_
  17. #define ALIBABACLOUD_VPC_MODEL_CREATEROUTEENTRYREQUEST_H_
  18. #include <string>
  19. #include <vector>
  20. #include <alibabacloud/vpc/VpcRequest.h>
  21. namespace AlibabaCloud
  22. {
  23. namespace Vpc
  24. {
  25. namespace Model
  26. {
  27. class ALIBABACLOUD_VPC_EXPORT CreateRouteEntryRequest : public VpcRequest
  28. {
  29. struct NextHopList
  30. {
  31. std::string nextHopType;
  32. std::string nextHopId;
  33. int weight;
  34. };
  35. public:
  36. CreateRouteEntryRequest();
  37. ~CreateRouteEntryRequest();
  38. long getResourceOwnerId()const;
  39. void setResourceOwnerId(long resourceOwnerId);
  40. std::string getResourceOwnerAccount()const;
  41. void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
  42. std::string getRegionId()const;
  43. void setRegionId(const std::string& regionId);
  44. std::string getClientToken()const;
  45. void setClientToken(const std::string& clientToken);
  46. std::string getDestinationCidrBlock()const;
  47. void setDestinationCidrBlock(const std::string& destinationCidrBlock);
  48. std::string getOwnerAccount()const;
  49. void setOwnerAccount(const std::string& ownerAccount);
  50. std::string getNextHopId()const;
  51. void setNextHopId(const std::string& nextHopId);
  52. long getOwnerId()const;
  53. void setOwnerId(long ownerId);
  54. std::string getNextHopType()const;
  55. void setNextHopType(const std::string& nextHopType);
  56. std::vector<NextHopList> getNextHopList()const;
  57. void setNextHopList(const std::vector<NextHopList>& nextHopList);
  58. std::string getRouteTableId()const;
  59. void setRouteTableId(const std::string& routeTableId);
  60. private:
  61. long resourceOwnerId_;
  62. std::string resourceOwnerAccount_;
  63. std::string regionId_;
  64. std::string clientToken_;
  65. std::string destinationCidrBlock_;
  66. std::string ownerAccount_;
  67. std::string nextHopId_;
  68. long ownerId_;
  69. std::string nextHopType_;
  70. std::vector<NextHopList> nextHopList_;
  71. std::string routeTableId_;
  72. };
  73. }
  74. }
  75. }
  76. #endif // !ALIBABACLOUD_VPC_MODEL_CREATEROUTEENTRYREQUEST_H_