/src/main/java/com/tencentcloudapi/mongodb/v20190725/models/ClientConnection.java

https://github.com/TencentCloud/tencentcloud-sdk-java · Java · 80 lines · 29 code · 11 blank · 40 comment · 0 complexity · e612759d927e8244955ed5aeb65e1460 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.v20190725.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 ClientConnection extends AbstractModel{
  22. /**
  23. * 连接的客户端IP
  24. */
  25. @SerializedName("IP")
  26. @Expose
  27. private String IP;
  28. /**
  29. * 对应客户端IP的连接数
  30. */
  31. @SerializedName("Count")
  32. @Expose
  33. private Long Count;
  34. /**
  35. * Get 连接的客户端IP
  36. * @return IP 连接的客户端IP
  37. */
  38. public String getIP() {
  39. return this.IP;
  40. }
  41. /**
  42. * Set 连接的客户端IP
  43. * @param IP 连接的客户端IP
  44. */
  45. public void setIP(String IP) {
  46. this.IP = IP;
  47. }
  48. /**
  49. * Get 对应客户端IP的连接数
  50. * @return Count 对应客户端IP的连接数
  51. */
  52. public Long getCount() {
  53. return this.Count;
  54. }
  55. /**
  56. * Set 对应客户端IP的连接数
  57. * @param Count 对应客户端IP的连接数
  58. */
  59. public void setCount(Long Count) {
  60. this.Count = Count;
  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 + "IP", this.IP);
  67. this.setParamSimple(map, prefix + "Count", this.Count);
  68. }
  69. }