AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
SetSettingResult.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 #ifndef ALEXA_CLIENT_SDK_SETTINGS_INCLUDE_SETTINGS_SETSETTINGRESULT_H_
16 #define ALEXA_CLIENT_SDK_SETTINGS_INCLUDE_SETTINGS_SETSETTINGRESULT_H_
17 
18 #include <ostream>
19 
23 enum class SetSettingResult {
25  NO_CHANGE,
27  ENQUEUED,
30  BUSY,
39 };
40 
48 inline std::ostream& operator<<(std::ostream& stream, const SetSettingResult& value) {
49  switch (value) {
51  stream << "NO_CHANGE";
52  return stream;
54  stream << "ENQUEUED";
55  return stream;
57  stream << "BUSY";
58  return stream;
60  stream << "UNAVAILABLE_SETTING";
61  return stream;
63  stream << "INVALID_VALUE";
64  return stream;
66  stream << "INTERNAL_ERROR";
67  return stream;
69  stream << "UNSUPPORTED_OPERATION";
70  return stream;
71  }
72 
73  stream.setstate(std::ios_base::failbit);
74  return stream;
75 }
76 
77 #endif // ALEXA_CLIENT_SDK_SETTINGS_INCLUDE_SETTINGS_SETSETTINGRESULT_H_
The request is not supported.
The request failed because the value requested is invalid.
The request failed due to some internal error.
The request failed because the setting requested does not exist.
SetSettingResult
Definition: SetSettingResult.h:23
std::ostream & operator<<(std::ostream &stream, const SetSettingResult &value)
Definition: SetSettingResult.h:48
The set value is already the current setting value and there is no change in progress.
The change request has been enqueued. There will be a follow up notification to inform the operation ...

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