1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/discovery/ApplicationDiscoveryService_EXPORTS.h> 8 #include <aws/discovery/model/CustomerAgentInfo.h> 9 #include <aws/discovery/model/CustomerConnectorInfo.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 template<typename RESULT_TYPE> 15 class AmazonWebServiceResult; 16 17 namespace Utils 18 { 19 namespace Json 20 { 21 class JsonValue; 22 } // namespace Json 23 } // namespace Utils 24 namespace ApplicationDiscoveryService 25 { 26 namespace Model 27 { 28 class AWS_APPLICATIONDISCOVERYSERVICE_API GetDiscoverySummaryResult 29 { 30 public: 31 GetDiscoverySummaryResult(); 32 GetDiscoverySummaryResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 33 GetDiscoverySummaryResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 34 35 36 /** 37 * <p>The number of servers discovered.</p> 38 */ GetServers()39 inline long long GetServers() const{ return m_servers; } 40 41 /** 42 * <p>The number of servers discovered.</p> 43 */ SetServers(long long value)44 inline void SetServers(long long value) { m_servers = value; } 45 46 /** 47 * <p>The number of servers discovered.</p> 48 */ WithServers(long long value)49 inline GetDiscoverySummaryResult& WithServers(long long value) { SetServers(value); return *this;} 50 51 52 /** 53 * <p>The number of applications discovered.</p> 54 */ GetApplications()55 inline long long GetApplications() const{ return m_applications; } 56 57 /** 58 * <p>The number of applications discovered.</p> 59 */ SetApplications(long long value)60 inline void SetApplications(long long value) { m_applications = value; } 61 62 /** 63 * <p>The number of applications discovered.</p> 64 */ WithApplications(long long value)65 inline GetDiscoverySummaryResult& WithApplications(long long value) { SetApplications(value); return *this;} 66 67 68 /** 69 * <p>The number of servers mapped to applications.</p> 70 */ GetServersMappedToApplications()71 inline long long GetServersMappedToApplications() const{ return m_serversMappedToApplications; } 72 73 /** 74 * <p>The number of servers mapped to applications.</p> 75 */ SetServersMappedToApplications(long long value)76 inline void SetServersMappedToApplications(long long value) { m_serversMappedToApplications = value; } 77 78 /** 79 * <p>The number of servers mapped to applications.</p> 80 */ WithServersMappedToApplications(long long value)81 inline GetDiscoverySummaryResult& WithServersMappedToApplications(long long value) { SetServersMappedToApplications(value); return *this;} 82 83 84 /** 85 * <p>The number of servers mapped to tags.</p> 86 */ GetServersMappedtoTags()87 inline long long GetServersMappedtoTags() const{ return m_serversMappedtoTags; } 88 89 /** 90 * <p>The number of servers mapped to tags.</p> 91 */ SetServersMappedtoTags(long long value)92 inline void SetServersMappedtoTags(long long value) { m_serversMappedtoTags = value; } 93 94 /** 95 * <p>The number of servers mapped to tags.</p> 96 */ WithServersMappedtoTags(long long value)97 inline GetDiscoverySummaryResult& WithServersMappedtoTags(long long value) { SetServersMappedtoTags(value); return *this;} 98 99 100 /** 101 * <p>Details about discovered agents, including agent status and health.</p> 102 */ GetAgentSummary()103 inline const CustomerAgentInfo& GetAgentSummary() const{ return m_agentSummary; } 104 105 /** 106 * <p>Details about discovered agents, including agent status and health.</p> 107 */ SetAgentSummary(const CustomerAgentInfo & value)108 inline void SetAgentSummary(const CustomerAgentInfo& value) { m_agentSummary = value; } 109 110 /** 111 * <p>Details about discovered agents, including agent status and health.</p> 112 */ SetAgentSummary(CustomerAgentInfo && value)113 inline void SetAgentSummary(CustomerAgentInfo&& value) { m_agentSummary = std::move(value); } 114 115 /** 116 * <p>Details about discovered agents, including agent status and health.</p> 117 */ WithAgentSummary(const CustomerAgentInfo & value)118 inline GetDiscoverySummaryResult& WithAgentSummary(const CustomerAgentInfo& value) { SetAgentSummary(value); return *this;} 119 120 /** 121 * <p>Details about discovered agents, including agent status and health.</p> 122 */ WithAgentSummary(CustomerAgentInfo && value)123 inline GetDiscoverySummaryResult& WithAgentSummary(CustomerAgentInfo&& value) { SetAgentSummary(std::move(value)); return *this;} 124 125 126 /** 127 * <p>Details about discovered connectors, including connector status and 128 * health.</p> 129 */ GetConnectorSummary()130 inline const CustomerConnectorInfo& GetConnectorSummary() const{ return m_connectorSummary; } 131 132 /** 133 * <p>Details about discovered connectors, including connector status and 134 * health.</p> 135 */ SetConnectorSummary(const CustomerConnectorInfo & value)136 inline void SetConnectorSummary(const CustomerConnectorInfo& value) { m_connectorSummary = value; } 137 138 /** 139 * <p>Details about discovered connectors, including connector status and 140 * health.</p> 141 */ SetConnectorSummary(CustomerConnectorInfo && value)142 inline void SetConnectorSummary(CustomerConnectorInfo&& value) { m_connectorSummary = std::move(value); } 143 144 /** 145 * <p>Details about discovered connectors, including connector status and 146 * health.</p> 147 */ WithConnectorSummary(const CustomerConnectorInfo & value)148 inline GetDiscoverySummaryResult& WithConnectorSummary(const CustomerConnectorInfo& value) { SetConnectorSummary(value); return *this;} 149 150 /** 151 * <p>Details about discovered connectors, including connector status and 152 * health.</p> 153 */ WithConnectorSummary(CustomerConnectorInfo && value)154 inline GetDiscoverySummaryResult& WithConnectorSummary(CustomerConnectorInfo&& value) { SetConnectorSummary(std::move(value)); return *this;} 155 156 private: 157 158 long long m_servers; 159 160 long long m_applications; 161 162 long long m_serversMappedToApplications; 163 164 long long m_serversMappedtoTags; 165 166 CustomerAgentInfo m_agentSummary; 167 168 CustomerConnectorInfo m_connectorSummary; 169 }; 170 171 } // namespace Model 172 } // namespace ApplicationDiscoveryService 173 } // namespace Aws 174