com.aliyuncs.ecs.model.v20140526.CreateSavingsPlanRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aliyun-java-sdk-ecs Show documentation
Show all versions of aliyun-java-sdk-ecs Show documentation
Aliyun Open API SDK for Java
Copyright (C) Alibaba Cloud Computing
All rights reserved.
版权所有 (C)阿里云计算有限公司
http://www.aliyun.com
/*
* 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.
*/
package com.aliyuncs.ecs.model.v20140526;
import com.aliyuncs.RpcAcsRequest;
import java.util.List;
import com.aliyuncs.http.ProtocolType;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.ecs.Endpoint;
/**
* @author auto create
* @version
*/
public class CreateSavingsPlanRequest extends RpcAcsRequest {
private String period;
private List resourceIds;
private String instanceTypeFamily;
private String planType;
private String periodUnit;
private String offeringType;
private String chargeType;
private String committedAmount;
public CreateSavingsPlanRequest() {
super("Ecs", "2014-05-26", "CreateSavingsPlan", "ecs");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
} catch (Exception e) {}
}
public String getPeriod() {
return this.period;
}
public void setPeriod(String period) {
this.period = period;
if(period != null){
putQueryParameter("Period", period);
}
}
public List getResourceIds() {
return this.resourceIds;
}
public void setResourceIds(List resourceIds) {
this.resourceIds = resourceIds;
if (resourceIds != null) {
for (int i = 0; i < resourceIds.size(); i++) {
putQueryParameter("ResourceId." + (i + 1) , resourceIds.get(i));
}
}
}
public String getInstanceTypeFamily() {
return this.instanceTypeFamily;
}
public void setInstanceTypeFamily(String instanceTypeFamily) {
this.instanceTypeFamily = instanceTypeFamily;
if(instanceTypeFamily != null){
putQueryParameter("InstanceTypeFamily", instanceTypeFamily);
}
}
public String getPlanType() {
return this.planType;
}
public void setPlanType(String planType) {
this.planType = planType;
if(planType != null){
putQueryParameter("PlanType", planType);
}
}
public String getPeriodUnit() {
return this.periodUnit;
}
public void setPeriodUnit(String periodUnit) {
this.periodUnit = periodUnit;
if(periodUnit != null){
putQueryParameter("PeriodUnit", periodUnit);
}
}
public String getOfferingType() {
return this.offeringType;
}
public void setOfferingType(String offeringType) {
this.offeringType = offeringType;
if(offeringType != null){
putQueryParameter("OfferingType", offeringType);
}
}
public String getChargeType() {
return this.chargeType;
}
public void setChargeType(String chargeType) {
this.chargeType = chargeType;
if(chargeType != null){
putQueryParameter("ChargeType", chargeType);
}
}
public String getCommittedAmount() {
return this.committedAmount;
}
public void setCommittedAmount(String committedAmount) {
this.committedAmount = committedAmount;
if(committedAmount != null){
putQueryParameter("CommittedAmount", committedAmount);
}
}
@Override
public Class getResponseClass() {
return CreateSavingsPlanResponse.class;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy