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/xray/XRay_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17   class JsonValue;
18   class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace XRay
22 {
23 namespace Model
24 {
25 
26   /**
27    * <p>A list of Availability Zones corresponding to the segments in a
28    * trace.</p><p><h3>See Also:</h3>   <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/AvailabilityZoneDetail">AWS
30    * API Reference</a></p>
31    */
32   class AWS_XRAY_API AvailabilityZoneDetail
33   {
34   public:
35     AvailabilityZoneDetail();
36     AvailabilityZoneDetail(Aws::Utils::Json::JsonView jsonValue);
37     AvailabilityZoneDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
38     Aws::Utils::Json::JsonValue Jsonize() const;
39 
40 
41     /**
42      * <p>The name of a corresponding Availability Zone.</p>
43      */
GetName()44     inline const Aws::String& GetName() const{ return m_name; }
45 
46     /**
47      * <p>The name of a corresponding Availability Zone.</p>
48      */
NameHasBeenSet()49     inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 
51     /**
52      * <p>The name of a corresponding Availability Zone.</p>
53      */
SetName(const Aws::String & value)54     inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
56     /**
57      * <p>The name of a corresponding Availability Zone.</p>
58      */
SetName(Aws::String && value)59     inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 
61     /**
62      * <p>The name of a corresponding Availability Zone.</p>
63      */
SetName(const char * value)64     inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 
66     /**
67      * <p>The name of a corresponding Availability Zone.</p>
68      */
WithName(const Aws::String & value)69     inline AvailabilityZoneDetail& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
71     /**
72      * <p>The name of a corresponding Availability Zone.</p>
73      */
WithName(Aws::String && value)74     inline AvailabilityZoneDetail& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
75 
76     /**
77      * <p>The name of a corresponding Availability Zone.</p>
78      */
WithName(const char * value)79     inline AvailabilityZoneDetail& WithName(const char* value) { SetName(value); return *this;}
80 
81   private:
82 
83     Aws::String m_name;
84     bool m_nameHasBeenSet;
85   };
86 
87 } // namespace Model
88 } // namespace XRay
89 } // namespace Aws
90