/src/main/java/com/tencentcloudapi/mongodb/v20180408/models/MongoDBInstance.java

https://github.com/TencentCloud/tencentcloud-sdk-java · Java · 80 lines · 29 code · 11 blank · 40 comment · 0 complexity · 9ea09c6c024e85c2789bd5323636974d MD5 · raw file

  1. /*
  2. * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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. package com.tencentcloudapi.mongodb.v20180408.models;
  17. import com.tencentcloudapi.common.AbstractModel;
  18. import com.google.gson.annotations.SerializedName;
  19. import com.google.gson.annotations.Expose;
  20. import java.util.HashMap;
  21. public class MongoDBInstance extends AbstractModel{
  22. /**
  23. * 实例ID
  24. */
  25. @SerializedName("InstanceId")
  26. @Expose
  27. private String InstanceId;
  28. /**
  29. * 地域信息
  30. */
  31. @SerializedName("Region")
  32. @Expose
  33. private String Region;
  34. /**
  35. * Get 实例ID
  36. * @return InstanceId 实例ID
  37. */
  38. public String getInstanceId() {
  39. return this.InstanceId;
  40. }
  41. /**
  42. * Set 实例ID
  43. * @param InstanceId 实例ID
  44. */
  45. public void setInstanceId(String InstanceId) {
  46. this.InstanceId = InstanceId;
  47. }
  48. /**
  49. * Get 地域信息
  50. * @return Region 地域信息
  51. */
  52. public String getRegion() {
  53. return this.Region;
  54. }
  55. /**
  56. * Set 地域信息
  57. * @param Region 地域信息
  58. */
  59. public void setRegion(String Region) {
  60. this.Region = Region;
  61. }
  62. /**
  63. * Internal implementation, normal users should not use it.
  64. */
  65. public void toMap(HashMap<String, String> map, String prefix) {
  66. this.setParamSimple(map, prefix + "InstanceId", this.InstanceId);
  67. this.setParamSimple(map, prefix + "Region", this.Region);
  68. }
  69. }