| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481 |
- /*
- * Copyright 2009-2017 Alibaba Cloud 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.
- */
- #include <alibabacloud/cs/model/CreateClusterRequest.h>
- using AlibabaCloud::CS::Model::CreateClusterRequest;
- CreateClusterRequest::CreateClusterRequest() :
- RoaServiceRequest("cs", "2015-12-15")
- {
- setResourcePath("/clusters");
- setMethod(HttpRequest::Method::Post);
- }
- CreateClusterRequest::~CreateClusterRequest()
- {}
- std::string CreateClusterRequest::getProxy_mode()const
- {
- return proxy_mode_;
- }
- void CreateClusterRequest::setProxy_mode(const std::string& proxy_mode)
- {
- proxy_mode_ = proxy_mode;
- setBodyParameter("Proxy_mode", proxy_mode);
- }
- std::string CreateClusterRequest::getMaster_system_disk_category()const
- {
- return master_system_disk_category_;
- }
- void CreateClusterRequest::setMaster_system_disk_category(const std::string& master_system_disk_category)
- {
- master_system_disk_category_ = master_system_disk_category;
- setBodyParameter("Master_system_disk_category", master_system_disk_category);
- }
- bool CreateClusterRequest::getCloud_monitor_flags()const
- {
- return cloud_monitor_flags_;
- }
- void CreateClusterRequest::setCloud_monitor_flags(bool cloud_monitor_flags)
- {
- cloud_monitor_flags_ = cloud_monitor_flags;
- setBodyParameter("Cloud_monitor_flags", cloud_monitor_flags ? "true" : "false");
- }
- int CreateClusterRequest::getMaster_period()const
- {
- return master_period_;
- }
- void CreateClusterRequest::setMaster_period(int master_period)
- {
- master_period_ = master_period;
- setBodyParameter("Master_period", std::to_string(master_period));
- }
- bool CreateClusterRequest::getSsh_flags()const
- {
- return ssh_flags_;
- }
- void CreateClusterRequest::setSsh_flags(bool ssh_flags)
- {
- ssh_flags_ = ssh_flags;
- setBodyParameter("Ssh_flags", ssh_flags ? "true" : "false");
- }
- std::string CreateClusterRequest::getSecurity_group_id()const
- {
- return security_group_id_;
- }
- void CreateClusterRequest::setSecurity_group_id(const std::string& security_group_id)
- {
- security_group_id_ = security_group_id;
- setBodyParameter("Security_group_id", security_group_id);
- }
- std::string CreateClusterRequest::getContainer_cidr()const
- {
- return container_cidr_;
- }
- void CreateClusterRequest::setContainer_cidr(const std::string& container_cidr)
- {
- container_cidr_ = container_cidr;
- setBodyParameter("Container_cidr", container_cidr);
- }
- std::string CreateClusterRequest::getCluster_type()const
- {
- return cluster_type_;
- }
- void CreateClusterRequest::setCluster_type(const std::string& cluster_type)
- {
- cluster_type_ = cluster_type;
- setBodyParameter("Cluster_type", cluster_type);
- }
- bool CreateClusterRequest::getEndpoint_public_access()const
- {
- return endpoint_public_access_;
- }
- void CreateClusterRequest::setEndpoint_public_access(bool endpoint_public_access)
- {
- endpoint_public_access_ = endpoint_public_access;
- setBodyParameter("Endpoint_public_access", endpoint_public_access ? "true" : "false");
- }
- bool CreateClusterRequest::getWorker_auto_renew()const
- {
- return worker_auto_renew_;
- }
- void CreateClusterRequest::setWorker_auto_renew(bool worker_auto_renew)
- {
- worker_auto_renew_ = worker_auto_renew;
- setBodyParameter("Worker_auto_renew", worker_auto_renew ? "true" : "false");
- }
- std::string CreateClusterRequest::getPlatform()const
- {
- return platform_;
- }
- void CreateClusterRequest::setPlatform(const std::string& platform)
- {
- platform_ = platform;
- setBodyParameter("Platform", platform);
- }
- std::string CreateClusterRequest::getNode_port_range()const
- {
- return node_port_range_;
- }
- void CreateClusterRequest::setNode_port_range(const std::string& node_port_range)
- {
- node_port_range_ = node_port_range;
- setBodyParameter("Node_port_range", node_port_range);
- }
- std::string CreateClusterRequest::getService_cidr()const
- {
- return service_cidr_;
- }
- void CreateClusterRequest::setService_cidr(const std::string& service_cidr)
- {
- service_cidr_ = service_cidr;
- setBodyParameter("Service_cidr", service_cidr);
- }
- std::string CreateClusterRequest::getLogin_password()const
- {
- return login_password_;
- }
- void CreateClusterRequest::setLogin_password(const std::string& login_password)
- {
- login_password_ = login_password;
- setBodyParameter("Login_password", login_password);
- }
- std::string CreateClusterRequest::getKubernetes_version()const
- {
- return kubernetes_version_;
- }
- void CreateClusterRequest::setKubernetes_version(const std::string& kubernetes_version)
- {
- kubernetes_version_ = kubernetes_version;
- setBodyParameter("Kubernetes_version", kubernetes_version);
- }
- std::string CreateClusterRequest::getMaster_period_unit()const
- {
- return master_period_unit_;
- }
- void CreateClusterRequest::setMaster_period_unit(const std::string& master_period_unit)
- {
- master_period_unit_ = master_period_unit;
- setBodyParameter("Master_period_unit", master_period_unit);
- }
- int CreateClusterRequest::getMaster_system_disk_size()const
- {
- return master_system_disk_size_;
- }
- void CreateClusterRequest::setMaster_system_disk_size(int master_system_disk_size)
- {
- master_system_disk_size_ = master_system_disk_size;
- setBodyParameter("Master_system_disk_size", std::to_string(master_system_disk_size));
- }
- int CreateClusterRequest::getMaster_count()const
- {
- return master_count_;
- }
- void CreateClusterRequest::setMaster_count(int master_count)
- {
- master_count_ = master_count;
- setBodyParameter("Master_count", std::to_string(master_count));
- }
- int CreateClusterRequest::getNum_of_nodes()const
- {
- return num_of_nodes_;
- }
- void CreateClusterRequest::setNum_of_nodes(int num_of_nodes)
- {
- num_of_nodes_ = num_of_nodes;
- setBodyParameter("Num_of_nodes", std::to_string(num_of_nodes));
- }
- bool CreateClusterRequest::getDeletion_protection()const
- {
- return deletion_protection_;
- }
- void CreateClusterRequest::setDeletion_protection(bool deletion_protection)
- {
- deletion_protection_ = deletion_protection;
- setBodyParameter("Deletion_protection", deletion_protection ? "true" : "false");
- }
- std::string CreateClusterRequest::getKey_pair()const
- {
- return key_pair_;
- }
- void CreateClusterRequest::setKey_pair(const std::string& key_pair)
- {
- key_pair_ = key_pair;
- setBodyParameter("Key_pair", key_pair);
- }
- bool CreateClusterRequest::getWorker_data_disk()const
- {
- return worker_data_disk_;
- }
- void CreateClusterRequest::setWorker_data_disk(bool worker_data_disk)
- {
- worker_data_disk_ = worker_data_disk;
- setBodyParameter("Worker_data_disk", worker_data_disk ? "true" : "false");
- }
- bool CreateClusterRequest::getMaster_auto_renew()const
- {
- return master_auto_renew_;
- }
- void CreateClusterRequest::setMaster_auto_renew(bool master_auto_renew)
- {
- master_auto_renew_ = master_auto_renew;
- setBodyParameter("Master_auto_renew", master_auto_renew ? "true" : "false");
- }
- std::string CreateClusterRequest::getRegion_id()const
- {
- return region_id_;
- }
- void CreateClusterRequest::setRegion_id(const std::string& region_id)
- {
- region_id_ = region_id;
- setBodyParameter("Region_id", region_id);
- }
- bool CreateClusterRequest::getSnat_entry()const
- {
- return snat_entry_;
- }
- void CreateClusterRequest::setSnat_entry(bool snat_entry)
- {
- snat_entry_ = snat_entry;
- setBodyParameter("Snat_entry", snat_entry ? "true" : "false");
- }
- std::string CreateClusterRequest::getWorker_system_disk_category()const
- {
- return worker_system_disk_category_;
- }
- void CreateClusterRequest::setWorker_system_disk_category(const std::string& worker_system_disk_category)
- {
- worker_system_disk_category_ = worker_system_disk_category;
- setBodyParameter("Worker_system_disk_category", worker_system_disk_category);
- }
- std::string CreateClusterRequest::getRuntime()const
- {
- return runtime_;
- }
- void CreateClusterRequest::setRuntime(const std::string& runtime)
- {
- runtime_ = runtime;
- setBodyParameter("Runtime", runtime);
- }
- std::string CreateClusterRequest::getWorker_period_unit()const
- {
- return worker_period_unit_;
- }
- void CreateClusterRequest::setWorker_period_unit(const std::string& worker_period_unit)
- {
- worker_period_unit_ = worker_period_unit;
- setBodyParameter("Worker_period_unit", worker_period_unit);
- }
- std::string CreateClusterRequest::getMaster_instance_charge_type()const
- {
- return master_instance_charge_type_;
- }
- void CreateClusterRequest::setMaster_instance_charge_type(const std::string& master_instance_charge_type)
- {
- master_instance_charge_type_ = master_instance_charge_type;
- setBodyParameter("Master_instance_charge_type", master_instance_charge_type);
- }
- std::string CreateClusterRequest::getNode_cidr_mask()const
- {
- return node_cidr_mask_;
- }
- void CreateClusterRequest::setNode_cidr_mask(const std::string& node_cidr_mask)
- {
- node_cidr_mask_ = node_cidr_mask;
- setBodyParameter("Node_cidr_mask", node_cidr_mask);
- }
- int CreateClusterRequest::getWorker_auto_renew_period()const
- {
- return worker_auto_renew_period_;
- }
- void CreateClusterRequest::setWorker_auto_renew_period(int worker_auto_renew_period)
- {
- worker_auto_renew_period_ = worker_auto_renew_period;
- setBodyParameter("Worker_auto_renew_period", std::to_string(worker_auto_renew_period));
- }
- int CreateClusterRequest::getMaster_auto_renew_period()const
- {
- return master_auto_renew_period_;
- }
- void CreateClusterRequest::setMaster_auto_renew_period(int master_auto_renew_period)
- {
- master_auto_renew_period_ = master_auto_renew_period;
- setBodyParameter("Master_auto_renew_period", std::to_string(master_auto_renew_period));
- }
- int CreateClusterRequest::getWorker_period()const
- {
- return worker_period_;
- }
- void CreateClusterRequest::setWorker_period(int worker_period)
- {
- worker_period_ = worker_period;
- setBodyParameter("Worker_period", std::to_string(worker_period));
- }
- int CreateClusterRequest::getTimeout_mins()const
- {
- return timeout_mins_;
- }
- void CreateClusterRequest::setTimeout_mins(int timeout_mins)
- {
- timeout_mins_ = timeout_mins;
- setBodyParameter("Timeout_mins", std::to_string(timeout_mins));
- }
- int CreateClusterRequest::getWorker_system_disk_size()const
- {
- return worker_system_disk_size_;
- }
- void CreateClusterRequest::setWorker_system_disk_size(int worker_system_disk_size)
- {
- worker_system_disk_size_ = worker_system_disk_size;
- setBodyParameter("Worker_system_disk_size", std::to_string(worker_system_disk_size));
- }
- std::string CreateClusterRequest::getOs_type()const
- {
- return os_type_;
- }
- void CreateClusterRequest::setOs_type(const std::string& os_type)
- {
- os_type_ = os_type;
- setBodyParameter("Os_type", os_type);
- }
- std::string CreateClusterRequest::getCpu_policy()const
- {
- return cpu_policy_;
- }
- void CreateClusterRequest::setCpu_policy(const std::string& cpu_policy)
- {
- cpu_policy_ = cpu_policy;
- setBodyParameter("Cpu_policy", cpu_policy);
- }
- std::string CreateClusterRequest::getVpcid()const
- {
- return vpcid_;
- }
- void CreateClusterRequest::setVpcid(const std::string& vpcid)
- {
- vpcid_ = vpcid;
- setBodyParameter("Vpcid", vpcid);
- }
- std::string CreateClusterRequest::getName()const
- {
- return name_;
- }
- void CreateClusterRequest::setName(const std::string& name)
- {
- name_ = name;
- setBodyParameter("Name", name);
- }
- bool CreateClusterRequest::getDisable_rollback()const
- {
- return disable_rollback_;
- }
- void CreateClusterRequest::setDisable_rollback(bool disable_rollback)
- {
- disable_rollback_ = disable_rollback;
- setBodyParameter("Disable_rollback", disable_rollback ? "true" : "false");
- }
- std::string CreateClusterRequest::getWorker_instance_charge_type()const
- {
- return worker_instance_charge_type_;
- }
- void CreateClusterRequest::setWorker_instance_charge_type(const std::string& worker_instance_charge_type)
- {
- worker_instance_charge_type_ = worker_instance_charge_type;
- setBodyParameter("Worker_instance_charge_type", worker_instance_charge_type);
- }
|