@@ -32,11 +32,6 @@ namespace Aws
3232 val.CertificateId = doc.GetString (" certificateId" );
3333 }
3434
35- if (doc.ValueExists (" privateKey" ))
36- {
37- val.PrivateKey = doc.GetString (" privateKey" );
38- }
39-
4035 if (doc.ValueExists (" certificateOwnershipToken" ))
4136 {
4237 val.CertificateOwnershipToken = doc.GetString (" certificateOwnershipToken" );
@@ -46,6 +41,11 @@ namespace Aws
4641 {
4742 val.CertificatePem = doc.GetString (" certificatePem" );
4843 }
44+
45+ if (doc.ValueExists (" privateKey" ))
46+ {
47+ val.PrivateKey = doc.GetString (" privateKey" );
48+ }
4949 }
5050
5151 void CreateKeysAndCertificateResponse::SerializeToObject (Aws::Crt::JsonObject &object) const
@@ -57,11 +57,6 @@ namespace Aws
5757 object.WithString (" certificateId" , *CertificateId);
5858 }
5959
60- if (PrivateKey)
61- {
62- object.WithString (" privateKey" , *PrivateKey);
63- }
64-
6560 if (CertificateOwnershipToken)
6661 {
6762 object.WithString (" certificateOwnershipToken" , *CertificateOwnershipToken);
@@ -71,6 +66,11 @@ namespace Aws
7166 {
7267 object.WithString (" certificatePem" , *CertificatePem);
7368 }
69+
70+ if (PrivateKey)
71+ {
72+ object.WithString (" privateKey" , *PrivateKey);
73+ }
7474 }
7575
7676 CreateKeysAndCertificateResponse::CreateKeysAndCertificateResponse (const Crt::JsonView &doc)
0 commit comments