com.tencentcloudapi.yunjing.v20180228.models.Place Maven / Gradle / Ivy
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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.
*/
package com.tencentcloudapi.yunjing.v20180228.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class Place extends AbstractModel{
/**
* City ID.
*/
@SerializedName("CityId")
@Expose
private Long CityId;
/**
* Province/State ID.
*/
@SerializedName("ProvinceId")
@Expose
private Long ProvinceId;
/**
* Country/Region ID. Currently, only `1` (Mainland China) is supported.
*/
@SerializedName("CountryId")
@Expose
private Long CountryId;
/**
* Get City ID.
* @return CityId City ID.
*/
public Long getCityId() {
return this.CityId;
}
/**
* Set City ID.
* @param CityId City ID.
*/
public void setCityId(Long CityId) {
this.CityId = CityId;
}
/**
* Get Province/State ID.
* @return ProvinceId Province/State ID.
*/
public Long getProvinceId() {
return this.ProvinceId;
}
/**
* Set Province/State ID.
* @param ProvinceId Province/State ID.
*/
public void setProvinceId(Long ProvinceId) {
this.ProvinceId = ProvinceId;
}
/**
* Get Country/Region ID. Currently, only `1` (Mainland China) is supported.
* @return CountryId Country/Region ID. Currently, only `1` (Mainland China) is supported.
*/
public Long getCountryId() {
return this.CountryId;
}
/**
* Set Country/Region ID. Currently, only `1` (Mainland China) is supported.
* @param CountryId Country/Region ID. Currently, only `1` (Mainland China) is supported.
*/
public void setCountryId(Long CountryId) {
this.CountryId = CountryId;
}
public Place() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public Place(Place source) {
if (source.CityId != null) {
this.CityId = new Long(source.CityId);
}
if (source.ProvinceId != null) {
this.ProvinceId = new Long(source.ProvinceId);
}
if (source.CountryId != null) {
this.CountryId = new Long(source.CountryId);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "CityId", this.CityId);
this.setParamSimple(map, prefix + "ProvinceId", this.ProvinceId);
this.setParamSimple(map, prefix + "CountryId", this.CountryId);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy