AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
ModeControllerAttributeBuilder.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_CAPABILITYAGENTS_MODECONTROLLER_INCLUDE_MODECONTROLLER_MODECONTROLLERATTRIBUTEBUILDER_H_
17 #define ALEXA_CLIENT_SDK_CAPABILITYAGENTS_MODECONTROLLER_INCLUDE_MODECONTROLLER_MODECONTROLLERATTRIBUTEBUILDER_H_
18 
19 #include <unordered_map>
20 
24 
25 namespace alexaClientSDK {
26 namespace capabilityAgents {
27 namespace modeController {
28 
35 public:
39  virtual ~ModeControllerAttributeBuilder() = default;
40 
46  static std::unique_ptr<ModeControllerAttributeBuilder> create();
47 
51  const avsCommon::avs::CapabilityResources& capabilityResources) override;
53  const std::string& mode,
54  const avsCommon::sdkInterfaces::modeController::ModeResources& modeResources) override;
55  ModeControllerAttributeBuilder& setOrdered(bool ordered) override;
60 
61 private:
66 
68  bool m_invalidAttribute;
69 
71  avsCommon::avs::CapabilityResources m_capabilityResources;
72 
74  std::unordered_map<std::string, avsCommon::sdkInterfaces::modeController::ModeResources> m_modes;
75 
77  bool m_ordered;
78 
81 };
82 
83 } // namespace modeController
84 } // namespace capabilityAgents
85 } // namespace alexaClientSDK
86 
87 #endif // ALEXA_CLIENT_SDK_CAPABILITYAGENTS_MODECONTROLLER_INCLUDE_MODECONTROLLER_MODECONTROLLERATTRIBUTEBUILDER_H_
avsCommon::utils::Optional< avsCommon::sdkInterfaces::modeController::ModeControllerAttributes > build() override
::std::string string
Definition: gtest-port.h:1097
ModeControllerAttributeBuilder & setOrdered(bool ordered) override
static std::unique_ptr< ModeControllerAttributeBuilder > create()
ModeControllerAttributeBuilder & withSemantics(const avsCommon::avs::capabilitySemantics::CapabilitySemantics &semantics) override
ModeControllerAttributeBuilder & withCapabilityResources(const avsCommon::avs::CapabilityResources &capabilityResources) override
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
ModeControllerAttributeBuilder & addMode(const std::string &mode, const avsCommon::sdkInterfaces::modeController::ModeResources &modeResources) override
Definition: CapabilityResources.h:34

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