/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace EKS { namespace Model { IdentityProviderConfig::IdentityProviderConfig() : m_typeHasBeenSet(false), m_nameHasBeenSet(false) { } IdentityProviderConfig::IdentityProviderConfig(JsonView jsonValue) : m_typeHasBeenSet(false), m_nameHasBeenSet(false) { *this = jsonValue; } IdentityProviderConfig& IdentityProviderConfig::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("type")) { m_type = jsonValue.GetString("type"); m_typeHasBeenSet = true; } if(jsonValue.ValueExists("name")) { m_name = jsonValue.GetString("name"); m_nameHasBeenSet = true; } return *this; } JsonValue IdentityProviderConfig::Jsonize() const { JsonValue payload; if(m_typeHasBeenSet) { payload.WithString("type", m_type); } if(m_nameHasBeenSet) { payload.WithString("name", m_name); } return payload; } } // namespace Model } // namespace EKS } // namespace Aws