242 lines
12 KiB
C++
242 lines
12 KiB
C++
/*
|
|
* 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.
|
|
*/
|
|
|
|
#ifndef ALIBABACLOUD_ECS_MODEL_CREATEAUTOPROVISIONINGGROUPREQUEST_H_
|
|
#define ALIBABACLOUD_ECS_MODEL_CREATEAUTOPROVISIONINGGROUPREQUEST_H_
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
#include <alibabacloud/ecs/EcsExport.h>
|
|
|
|
namespace AlibabaCloud
|
|
{
|
|
namespace Ecs
|
|
{
|
|
namespace Model
|
|
{
|
|
class ALIBABACLOUD_ECS_EXPORT CreateAutoProvisioningGroupRequest : public RpcServiceRequest
|
|
{
|
|
public:
|
|
struct LaunchConfigurationDataDisk
|
|
{
|
|
int size;
|
|
std::string category;
|
|
std::string performanceLevel;
|
|
std::string device;
|
|
std::string snapshotId;
|
|
bool deleteWithInstance;
|
|
bool encrypted;
|
|
std::string kmsKeyId;
|
|
std::string diskName;
|
|
std::string description;
|
|
};
|
|
struct SystemDiskConfig
|
|
{
|
|
std::string diskCategory;
|
|
};
|
|
struct DataDiskConfig
|
|
{
|
|
std::string diskCategory;
|
|
};
|
|
struct LaunchTemplateConfig
|
|
{
|
|
std::string instanceType;
|
|
double maxPrice;
|
|
std::string vSwitchId;
|
|
double weightedCapacity;
|
|
int priority;
|
|
};
|
|
struct LaunchConfigurationTag
|
|
{
|
|
std::string key;
|
|
std::string value;
|
|
};
|
|
|
|
public:
|
|
CreateAutoProvisioningGroupRequest();
|
|
~CreateAutoProvisioningGroupRequest();
|
|
|
|
std::vector<LaunchConfigurationDataDisk> getLaunchConfigurationDataDisk()const;
|
|
void setLaunchConfigurationDataDisk(const std::vector<LaunchConfigurationDataDisk>& launchConfigurationDataDisk);
|
|
long getResourceOwnerId()const;
|
|
void setResourceOwnerId(long resourceOwnerId);
|
|
std::string getLaunchConfigurationSystemDiskCategory()const;
|
|
void setLaunchConfigurationSystemDiskCategory(const std::string& launchConfigurationSystemDiskCategory);
|
|
std::string getAutoProvisioningGroupType()const;
|
|
void setAutoProvisioningGroupType(const std::string& autoProvisioningGroupType);
|
|
std::string getLaunchConfigurationSystemDiskPerformanceLevel()const;
|
|
void setLaunchConfigurationSystemDiskPerformanceLevel(const std::string& launchConfigurationSystemDiskPerformanceLevel);
|
|
std::string getResourceGroupId()const;
|
|
void setResourceGroupId(const std::string& resourceGroupId);
|
|
std::string getLaunchConfigurationImageId()const;
|
|
void setLaunchConfigurationImageId(const std::string& launchConfigurationImageId);
|
|
std::string getLaunchConfigurationResourceGroupId()const;
|
|
void setLaunchConfigurationResourceGroupId(const std::string& launchConfigurationResourceGroupId);
|
|
std::string getLaunchConfigurationPassword()const;
|
|
void setLaunchConfigurationPassword(const std::string& launchConfigurationPassword);
|
|
std::string getPayAsYouGoAllocationStrategy()const;
|
|
void setPayAsYouGoAllocationStrategy(const std::string& payAsYouGoAllocationStrategy);
|
|
std::string getDefaultTargetCapacityType()const;
|
|
void setDefaultTargetCapacityType(const std::string& defaultTargetCapacityType);
|
|
std::string getLaunchConfigurationKeyPairName()const;
|
|
void setLaunchConfigurationKeyPairName(const std::string& launchConfigurationKeyPairName);
|
|
std::vector<SystemDiskConfig> getSystemDiskConfig()const;
|
|
void setSystemDiskConfig(const std::vector<SystemDiskConfig>& systemDiskConfig);
|
|
std::vector<DataDiskConfig> getDataDiskConfig()const;
|
|
void setDataDiskConfig(const std::vector<DataDiskConfig>& dataDiskConfig);
|
|
std::string getValidUntil()const;
|
|
void setValidUntil(const std::string& validUntil);
|
|
std::string getLaunchTemplateId()const;
|
|
void setLaunchTemplateId(const std::string& launchTemplateId);
|
|
long getOwnerId()const;
|
|
void setOwnerId(long ownerId);
|
|
int getLaunchConfigurationSystemDiskSize()const;
|
|
void setLaunchConfigurationSystemDiskSize(int launchConfigurationSystemDiskSize);
|
|
int getLaunchConfigurationInternetMaxBandwidthOut()const;
|
|
void setLaunchConfigurationInternetMaxBandwidthOut(int launchConfigurationInternetMaxBandwidthOut);
|
|
std::string getLaunchConfigurationHostName()const;
|
|
void setLaunchConfigurationHostName(const std::string& launchConfigurationHostName);
|
|
float getMaxSpotPrice()const;
|
|
void setMaxSpotPrice(float maxSpotPrice);
|
|
bool getLaunchConfigurationPasswordInherit()const;
|
|
void setLaunchConfigurationPasswordInherit(bool launchConfigurationPasswordInherit);
|
|
std::string getClientToken()const;
|
|
void setClientToken(const std::string& clientToken);
|
|
std::string getLaunchConfigurationSecurityGroupId()const;
|
|
void setLaunchConfigurationSecurityGroupId(const std::string& launchConfigurationSecurityGroupId);
|
|
std::string getDescription()const;
|
|
void setDescription(const std::string& description);
|
|
bool getTerminateInstancesWithExpiration()const;
|
|
void setTerminateInstancesWithExpiration(bool terminateInstancesWithExpiration);
|
|
std::string getLaunchConfigurationUserData()const;
|
|
void setLaunchConfigurationUserData(const std::string& launchConfigurationUserData);
|
|
std::string getLaunchConfigurationCreditSpecification()const;
|
|
void setLaunchConfigurationCreditSpecification(const std::string& launchConfigurationCreditSpecification);
|
|
std::string getLaunchConfigurationInstanceName()const;
|
|
void setLaunchConfigurationInstanceName(const std::string& launchConfigurationInstanceName);
|
|
std::string getLaunchConfigurationInstanceDescription()const;
|
|
void setLaunchConfigurationInstanceDescription(const std::string& launchConfigurationInstanceDescription);
|
|
std::string getSpotAllocationStrategy()const;
|
|
void setSpotAllocationStrategy(const std::string& spotAllocationStrategy);
|
|
std::string getRegionId()const;
|
|
void setRegionId(const std::string& regionId);
|
|
bool getTerminateInstances()const;
|
|
void setTerminateInstances(bool terminateInstances);
|
|
std::string getLaunchConfigurationSystemDiskName()const;
|
|
void setLaunchConfigurationSystemDiskName(const std::string& launchConfigurationSystemDiskName);
|
|
std::string getLaunchConfigurationSystemDiskDescription()const;
|
|
void setLaunchConfigurationSystemDiskDescription(const std::string& launchConfigurationSystemDiskDescription);
|
|
std::string getExcessCapacityTerminationPolicy()const;
|
|
void setExcessCapacityTerminationPolicy(const std::string& excessCapacityTerminationPolicy);
|
|
std::vector<LaunchTemplateConfig> getLaunchTemplateConfig()const;
|
|
void setLaunchTemplateConfig(const std::vector<LaunchTemplateConfig>& launchTemplateConfig);
|
|
std::string getLaunchConfigurationRamRoleName()const;
|
|
void setLaunchConfigurationRamRoleName(const std::string& launchConfigurationRamRoleName);
|
|
int getLaunchConfigurationInternetMaxBandwidthIn()const;
|
|
void setLaunchConfigurationInternetMaxBandwidthIn(int launchConfigurationInternetMaxBandwidthIn);
|
|
std::string getSpotInstanceInterruptionBehavior()const;
|
|
void setSpotInstanceInterruptionBehavior(const std::string& spotInstanceInterruptionBehavior);
|
|
std::string getLaunchConfigurationSecurityEnhancementStrategy()const;
|
|
void setLaunchConfigurationSecurityEnhancementStrategy(const std::string& launchConfigurationSecurityEnhancementStrategy);
|
|
std::vector<LaunchConfigurationTag> getLaunchConfigurationTag()const;
|
|
void setLaunchConfigurationTag(const std::vector<LaunchConfigurationTag>& launchConfigurationTag);
|
|
std::string getLaunchConfigurationDeploymentSetId()const;
|
|
void setLaunchConfigurationDeploymentSetId(const std::string& launchConfigurationDeploymentSetId);
|
|
std::string getResourceOwnerAccount()const;
|
|
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
|
std::string getOwnerAccount()const;
|
|
void setOwnerAccount(const std::string& ownerAccount);
|
|
int getSpotInstancePoolsToUseCount()const;
|
|
void setSpotInstancePoolsToUseCount(int spotInstancePoolsToUseCount);
|
|
std::string getLaunchConfigurationInternetChargeType()const;
|
|
void setLaunchConfigurationInternetChargeType(const std::string& launchConfigurationInternetChargeType);
|
|
std::string getLaunchTemplateVersion()const;
|
|
void setLaunchTemplateVersion(const std::string& launchTemplateVersion);
|
|
std::string getLaunchConfigurationIoOptimized()const;
|
|
void setLaunchConfigurationIoOptimized(const std::string& launchConfigurationIoOptimized);
|
|
std::string getPayAsYouGoTargetCapacity()const;
|
|
void setPayAsYouGoTargetCapacity(const std::string& payAsYouGoTargetCapacity);
|
|
std::string getTotalTargetCapacity()const;
|
|
void setTotalTargetCapacity(const std::string& totalTargetCapacity);
|
|
std::string getSpotTargetCapacity()const;
|
|
void setSpotTargetCapacity(const std::string& spotTargetCapacity);
|
|
std::string getValidFrom()const;
|
|
void setValidFrom(const std::string& validFrom);
|
|
std::string getAutoProvisioningGroupName()const;
|
|
void setAutoProvisioningGroupName(const std::string& autoProvisioningGroupName);
|
|
|
|
private:
|
|
std::vector<LaunchConfigurationDataDisk> launchConfigurationDataDisk_;
|
|
long resourceOwnerId_;
|
|
std::string launchConfigurationSystemDiskCategory_;
|
|
std::string autoProvisioningGroupType_;
|
|
std::string launchConfigurationSystemDiskPerformanceLevel_;
|
|
std::string resourceGroupId_;
|
|
std::string launchConfigurationImageId_;
|
|
std::string launchConfigurationResourceGroupId_;
|
|
std::string launchConfigurationPassword_;
|
|
std::string payAsYouGoAllocationStrategy_;
|
|
std::string defaultTargetCapacityType_;
|
|
std::string launchConfigurationKeyPairName_;
|
|
std::vector<SystemDiskConfig> systemDiskConfig_;
|
|
std::vector<DataDiskConfig> dataDiskConfig_;
|
|
std::string validUntil_;
|
|
std::string launchTemplateId_;
|
|
long ownerId_;
|
|
int launchConfigurationSystemDiskSize_;
|
|
int launchConfigurationInternetMaxBandwidthOut_;
|
|
std::string launchConfigurationHostName_;
|
|
float maxSpotPrice_;
|
|
bool launchConfigurationPasswordInherit_;
|
|
std::string clientToken_;
|
|
std::string launchConfigurationSecurityGroupId_;
|
|
std::string description_;
|
|
bool terminateInstancesWithExpiration_;
|
|
std::string launchConfigurationUserData_;
|
|
std::string launchConfigurationCreditSpecification_;
|
|
std::string launchConfigurationInstanceName_;
|
|
std::string launchConfigurationInstanceDescription_;
|
|
std::string spotAllocationStrategy_;
|
|
std::string regionId_;
|
|
bool terminateInstances_;
|
|
std::string launchConfigurationSystemDiskName_;
|
|
std::string launchConfigurationSystemDiskDescription_;
|
|
std::string excessCapacityTerminationPolicy_;
|
|
std::vector<LaunchTemplateConfig> launchTemplateConfig_;
|
|
std::string launchConfigurationRamRoleName_;
|
|
int launchConfigurationInternetMaxBandwidthIn_;
|
|
std::string spotInstanceInterruptionBehavior_;
|
|
std::string launchConfigurationSecurityEnhancementStrategy_;
|
|
std::vector<LaunchConfigurationTag> launchConfigurationTag_;
|
|
std::string launchConfigurationDeploymentSetId_;
|
|
std::string resourceOwnerAccount_;
|
|
std::string ownerAccount_;
|
|
int spotInstancePoolsToUseCount_;
|
|
std::string launchConfigurationInternetChargeType_;
|
|
std::string launchTemplateVersion_;
|
|
std::string launchConfigurationIoOptimized_;
|
|
std::string payAsYouGoTargetCapacity_;
|
|
std::string totalTargetCapacity_;
|
|
std::string spotTargetCapacity_;
|
|
std::string validFrom_;
|
|
std::string autoProvisioningGroupName_;
|
|
|
|
};
|
|
}
|
|
}
|
|
}
|
|
#endif // !ALIBABACLOUD_ECS_MODEL_CREATEAUTOPROVISIONINGGROUPREQUEST_H_
|