CreateLoadBalancerRequest.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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_GWLB_MODEL_CREATELOADBALANCERREQUEST_H_
  17. #define ALIBABACLOUD_GWLB_MODEL_CREATELOADBALANCERREQUEST_H_
  18. #include <alibabacloud/gwlb/GwlbExport.h>
  19. #include <alibabacloud/core/RpcServiceRequest.h>
  20. #include <string>
  21. #include <vector>
  22. #include <map>
  23. namespace AlibabaCloud {
  24. namespace Gwlb {
  25. namespace Model {
  26. class ALIBABACLOUD_GWLB_EXPORT CreateLoadBalancerRequest : public RpcServiceRequest {
  27. public:
  28. struct Tag {
  29. std::string key;
  30. std::string value;
  31. };
  32. struct ZoneMappings {
  33. std::string vSwitchId;
  34. std::string zoneId;
  35. };
  36. CreateLoadBalancerRequest();
  37. ~CreateLoadBalancerRequest();
  38. bool getCrossZoneEnabled() const;
  39. void setCrossZoneEnabled(bool crossZoneEnabled);
  40. std::string getClientToken() const;
  41. void setClientToken(const std::string &clientToken);
  42. std::string getAddressIpVersion() const;
  43. void setAddressIpVersion(const std::string &addressIpVersion);
  44. std::string getResourceGroupId() const;
  45. void setResourceGroupId(const std::string &resourceGroupId);
  46. std::string getLoadBalancerName() const;
  47. void setLoadBalancerName(const std::string &loadBalancerName);
  48. std::vector<Tag> getTag() const;
  49. void setTag(const std::vector<Tag> &tag);
  50. bool getDryRun() const;
  51. void setDryRun(bool dryRun);
  52. std::vector<ZoneMappings> getZoneMappings() const;
  53. void setZoneMappings(const std::vector<ZoneMappings> &zoneMappings);
  54. std::string getVpcId() const;
  55. void setVpcId(const std::string &vpcId);
  56. private:
  57. bool crossZoneEnabled_;
  58. std::string clientToken_;
  59. std::string addressIpVersion_;
  60. std::string resourceGroupId_;
  61. std::string loadBalancerName_;
  62. std::vector<Tag> tag_;
  63. bool dryRun_;
  64. std::vector<ZoneMappings> zoneMappings_;
  65. std::string vpcId_;
  66. };
  67. } // namespace Model
  68. } // namespace Gwlb
  69. } // namespace AlibabaCloud
  70. #endif // !ALIBABACLOUD_GWLB_MODEL_CREATELOADBALANCERREQUEST_H_