1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #include <aws/servicediscovery/model/PublicDnsPropertiesMutableChange.h>
7 #include <aws/core/utils/json/JsonSerializer.h>
8 
9 #include <utility>
10 
11 using namespace Aws::Utils::Json;
12 using namespace Aws::Utils;
13 
14 namespace Aws
15 {
16 namespace ServiceDiscovery
17 {
18 namespace Model
19 {
20 
PublicDnsPropertiesMutableChange()21 PublicDnsPropertiesMutableChange::PublicDnsPropertiesMutableChange() :
22     m_sOAHasBeenSet(false)
23 {
24 }
25 
PublicDnsPropertiesMutableChange(JsonView jsonValue)26 PublicDnsPropertiesMutableChange::PublicDnsPropertiesMutableChange(JsonView jsonValue) :
27     m_sOAHasBeenSet(false)
28 {
29   *this = jsonValue;
30 }
31 
operator =(JsonView jsonValue)32 PublicDnsPropertiesMutableChange& PublicDnsPropertiesMutableChange::operator =(JsonView jsonValue)
33 {
34   if(jsonValue.ValueExists("SOA"))
35   {
36     m_sOA = jsonValue.GetObject("SOA");
37 
38     m_sOAHasBeenSet = true;
39   }
40 
41   return *this;
42 }
43 
Jsonize() const44 JsonValue PublicDnsPropertiesMutableChange::Jsonize() const
45 {
46   JsonValue payload;
47 
48   if(m_sOAHasBeenSet)
49   {
50    payload.WithObject("SOA", m_sOA.Jsonize());
51 
52   }
53 
54   return payload;
55 }
56 
57 } // namespace Model
58 } // namespace ServiceDiscovery
59 } // namespace Aws
60