/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace NetworkManager { namespace Model { /** */ class GetLinksRequest : public NetworkManagerRequest { public: AWS_NETWORKMANAGER_API GetLinksRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GetLinks"; } AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override; AWS_NETWORKMANAGER_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The ID of the global network.

*/ inline const Aws::String& GetGlobalNetworkId() const{ return m_globalNetworkId; } /** *

The ID of the global network.

*/ inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; } /** *

The ID of the global network.

*/ inline void SetGlobalNetworkId(const Aws::String& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = value; } /** *

The ID of the global network.

*/ inline void SetGlobalNetworkId(Aws::String&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::move(value); } /** *

The ID of the global network.

*/ inline void SetGlobalNetworkId(const char* value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId.assign(value); } /** *

The ID of the global network.

*/ inline GetLinksRequest& WithGlobalNetworkId(const Aws::String& value) { SetGlobalNetworkId(value); return *this;} /** *

The ID of the global network.

*/ inline GetLinksRequest& WithGlobalNetworkId(Aws::String&& value) { SetGlobalNetworkId(std::move(value)); return *this;} /** *

The ID of the global network.

*/ inline GetLinksRequest& WithGlobalNetworkId(const char* value) { SetGlobalNetworkId(value); return *this;} /** *

One or more link IDs. The maximum is 10.

*/ inline const Aws::Vector& GetLinkIds() const{ return m_linkIds; } /** *

One or more link IDs. The maximum is 10.

*/ inline bool LinkIdsHasBeenSet() const { return m_linkIdsHasBeenSet; } /** *

One or more link IDs. The maximum is 10.

*/ inline void SetLinkIds(const Aws::Vector& value) { m_linkIdsHasBeenSet = true; m_linkIds = value; } /** *

One or more link IDs. The maximum is 10.

*/ inline void SetLinkIds(Aws::Vector&& value) { m_linkIdsHasBeenSet = true; m_linkIds = std::move(value); } /** *

One or more link IDs. The maximum is 10.

*/ inline GetLinksRequest& WithLinkIds(const Aws::Vector& value) { SetLinkIds(value); return *this;} /** *

One or more link IDs. The maximum is 10.

*/ inline GetLinksRequest& WithLinkIds(Aws::Vector&& value) { SetLinkIds(std::move(value)); return *this;} /** *

One or more link IDs. The maximum is 10.

*/ inline GetLinksRequest& AddLinkIds(const Aws::String& value) { m_linkIdsHasBeenSet = true; m_linkIds.push_back(value); return *this; } /** *

One or more link IDs. The maximum is 10.

*/ inline GetLinksRequest& AddLinkIds(Aws::String&& value) { m_linkIdsHasBeenSet = true; m_linkIds.push_back(std::move(value)); return *this; } /** *

One or more link IDs. The maximum is 10.

*/ inline GetLinksRequest& AddLinkIds(const char* value) { m_linkIdsHasBeenSet = true; m_linkIds.push_back(value); return *this; } /** *

The ID of the site.

*/ inline const Aws::String& GetSiteId() const{ return m_siteId; } /** *

The ID of the site.

*/ inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; } /** *

The ID of the site.

*/ inline void SetSiteId(const Aws::String& value) { m_siteIdHasBeenSet = true; m_siteId = value; } /** *

The ID of the site.

*/ inline void SetSiteId(Aws::String&& value) { m_siteIdHasBeenSet = true; m_siteId = std::move(value); } /** *

The ID of the site.

*/ inline void SetSiteId(const char* value) { m_siteIdHasBeenSet = true; m_siteId.assign(value); } /** *

The ID of the site.

*/ inline GetLinksRequest& WithSiteId(const Aws::String& value) { SetSiteId(value); return *this;} /** *

The ID of the site.

*/ inline GetLinksRequest& WithSiteId(Aws::String&& value) { SetSiteId(std::move(value)); return *this;} /** *

The ID of the site.

*/ inline GetLinksRequest& WithSiteId(const char* value) { SetSiteId(value); return *this;} /** *

The link type.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The link type.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The link type.

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The link type.

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The link type.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The link type.

*/ inline GetLinksRequest& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The link type.

*/ inline GetLinksRequest& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The link type.

*/ inline GetLinksRequest& WithType(const char* value) { SetType(value); return *this;} /** *

The link provider.

*/ inline const Aws::String& GetProvider() const{ return m_provider; } /** *

The link provider.

*/ inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; } /** *

The link provider.

*/ inline void SetProvider(const Aws::String& value) { m_providerHasBeenSet = true; m_provider = value; } /** *

The link provider.

*/ inline void SetProvider(Aws::String&& value) { m_providerHasBeenSet = true; m_provider = std::move(value); } /** *

The link provider.

*/ inline void SetProvider(const char* value) { m_providerHasBeenSet = true; m_provider.assign(value); } /** *

The link provider.

*/ inline GetLinksRequest& WithProvider(const Aws::String& value) { SetProvider(value); return *this;} /** *

The link provider.

*/ inline GetLinksRequest& WithProvider(Aws::String&& value) { SetProvider(std::move(value)); return *this;} /** *

The link provider.

*/ inline GetLinksRequest& WithProvider(const char* value) { SetProvider(value); return *this;} /** *

The maximum number of results to return.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of results to return.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of results to return.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of results to return.

*/ inline GetLinksRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

The token for the next page of results.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The token for the next page of results.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

The token for the next page of results.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

The token for the next page of results.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

The token for the next page of results.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

The token for the next page of results.

*/ inline GetLinksRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The token for the next page of results.

*/ inline GetLinksRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The token for the next page of results.

*/ inline GetLinksRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_globalNetworkId; bool m_globalNetworkIdHasBeenSet = false; Aws::Vector m_linkIds; bool m_linkIdsHasBeenSet = false; Aws::String m_siteId; bool m_siteIdHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; Aws::String m_provider; bool m_providerHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace NetworkManager } // namespace Aws