AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
EndpointBuilderInterface.h
Go to the documentation of this file.
1 /*
2  * Copyright Amazon.com, Inc. or its affiliates. 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  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0/
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 
16 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_INCLUDE_AVSCOMMON_SDKINTERFACES_ENDPOINTS_ENDPOINTBUILDERINTERFACE_H_
17 #define ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_INCLUDE_AVSCOMMON_SDKINTERFACES_ENDPOINTS_ENDPOINTBUILDERINTERFACE_H_
18 
19 #include <memory>
20 #include <string>
21 
34 
36 
37 namespace alexaClientSDK {
38 namespace avsCommon {
39 namespace sdkInterfaces {
40 namespace endpoints {
41 
67 public:
71  virtual ~EndpointBuilderInterface() = default;
72 
93 
108 
122  virtual EndpointBuilderInterface& withEndpointId(const EndpointIdentifier& endpointId) = 0;
123 
133  virtual EndpointBuilderInterface& withFriendlyName(const std::string& friendlyName) = 0;
134 
145  virtual EndpointBuilderInterface& withDescription(const std::string& description) = 0;
146 
157  virtual EndpointBuilderInterface& withManufacturerName(const std::string& manufacturerName) = 0;
158 
168  virtual EndpointBuilderInterface& withDisplayCategory(const std::vector<std::string>& displayCategories) = 0;
169 
185  const std::string& manufacturer,
186  const std::string& model,
187  const std::string& serialNumber,
188  const std::string& firmwareVersion,
189  const std::string& softwareVersion,
190  const std::string& customIdentifier) = 0;
191 
202  const std::vector<std::map<std::string, std::string>>& connections) = 0;
203 
213  virtual EndpointBuilderInterface& withCookies(const std::map<std::string, std::string>& cookies) = 0;
214 
226  std::shared_ptr<avsCommon::sdkInterfaces::powerController::PowerControllerInterface> powerController,
227  bool isProactivelyReported,
228  bool isRetrievable) = 0;
229 
247  std::shared_ptr<avsCommon::sdkInterfaces::toggleController::ToggleControllerInterface> toggleController,
248  const std::string& instance,
250  bool isProactivelyReported,
251  bool isRetrievable,
252  bool isNonControllable = false) = 0;
253 
271  std::shared_ptr<avsCommon::sdkInterfaces::modeController::ModeControllerInterface> modeController,
272  const std::string& instance,
274  bool isProactivelyReported,
275  bool isRetrievable,
276  bool isNonControllable = false) = 0;
277 
295  std::shared_ptr<avsCommon::sdkInterfaces::rangeController::RangeControllerInterface> rangeController,
296  const std::string& instance,
298  bool isProactivelyReported,
299  bool isRetrievable,
300  bool isNonControllable = false) = 0;
301 
312  const std::shared_ptr<avsCommon::sdkInterfaces::endpoints::EndpointCapabilitiesBuilderInterface>&
313  endpointCapabilitiesBuilder) = 0;
314 
322  virtual std::unique_ptr<EndpointInterface> build() = 0;
323 };
324 
325 } // namespace endpoints
326 } // namespace sdkInterfaces
327 } // namespace avsCommon
328 } // namespace alexaClientSDK
329 
330 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_INCLUDE_AVSCOMMON_SDKINTERFACES_ENDPOINTS_ENDPOINTBUILDERINTERFACE_H_
virtual EndpointBuilderInterface & withCookies(const std::map< std::string, std::string > &cookies)=0
virtual EndpointBuilderInterface & withAdditionalAttributes(const std::string &manufacturer, const std::string &model, const std::string &serialNumber, const std::string &firmwareVersion, const std::string &softwareVersion, const std::string &customIdentifier)=0
virtual EndpointBuilderInterface & withManufacturerName(const std::string &manufacturerName)=0
::std::string string
Definition: gtest-port.h:1097
virtual EndpointBuilderInterface & withDescription(const std::string &description)=0
virtual EndpointBuilderInterface & withToggleController(std::shared_ptr< avsCommon::sdkInterfaces::toggleController::ToggleControllerInterface > toggleController, const std::string &instance, const avsCommon::sdkInterfaces::toggleController::ToggleControllerAttributes &toggleControllerAttributes, bool isProactivelyReported, bool isRetrievable, bool isNonControllable=false)=0
virtual EndpointBuilderInterface & withPowerController(std::shared_ptr< avsCommon::sdkInterfaces::powerController::PowerControllerInterface > powerController, bool isProactivelyReported, bool isRetrievable)=0
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
virtual EndpointBuilderInterface & withFriendlyName(const std::string &friendlyName)=0
virtual EndpointBuilderInterface & withEndpointCapabilitiesBuilder(const std::shared_ptr< avsCommon::sdkInterfaces::endpoints::EndpointCapabilitiesBuilderInterface > &endpointCapabilitiesBuilder)=0
virtual EndpointBuilderInterface & withDisplayCategory(const std::vector< std::string > &displayCategories)=0
virtual EndpointBuilderInterface & withModeController(std::shared_ptr< avsCommon::sdkInterfaces::modeController::ModeControllerInterface > modeController, const std::string &instance, const avsCommon::sdkInterfaces::modeController::ModeControllerAttributes &modeControllerAttributes, bool isProactivelyReported, bool isRetrievable, bool isNonControllable=false)=0
std::string EndpointIdentifier
Definition: EndpointIdentifier.h:38
virtual EndpointBuilderInterface & withDerivedEndpointId(const std::string &suffix)=0
virtual EndpointBuilderInterface & withEndpointId(const EndpointIdentifier &endpointId)=0
virtual EndpointBuilderInterface & withConnections(const std::vector< std::map< std::string, std::string >> &connections)=0
virtual EndpointBuilderInterface & withRangeController(std::shared_ptr< avsCommon::sdkInterfaces::rangeController::RangeControllerInterface > rangeController, const std::string &instance, const avsCommon::sdkInterfaces::rangeController::RangeControllerAttributes &rangeControllerAttributes, bool isProactivelyReported, bool isRetrievable, bool isNonControllable=false)=0

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0