Skip to content

Commit 5ec3802

Browse files
committed
fix IsSet for string properties
1 parent 5b380b3 commit 5ec3802

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

generator/ServiceModels/s3/s3.customizations.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -841,6 +841,12 @@
841841
"modify":[
842842
{
843843
"Id":{"emitPropertyName": "MetricsId"}
844+
},
845+
{
846+
"ExpectedBucketOwner" :{"injectXmlIsSet":["return !string.IsNullOrEmpty(this._expectedBucketOwner);"]}
847+
},
848+
{
849+
"MetricsId":{"injectXmlIsSet":["return !string.IsNullOrEmpty(this._metricsId);"]}
844850
}
845851
]
846852
}

sdk/src/Services/S3/Generated/Model/DeleteBucketMetricsConfigurationRequest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public string ExpectedBucketOwner
128128
// Check to see if ExpectedBucketOwner property is set
129129
internal bool IsSetExpectedBucketOwner()
130130
{
131-
return this._expectedBucketOwner != null;
131+
return !string.IsNullOrEmpty(this._expectedBucketOwner);
132132
}
133133

134134
/// <summary>
@@ -148,7 +148,7 @@ public string MetricsId
148148
// Check to see if MetricsId property is set
149149
internal bool IsSetMetricsId()
150150
{
151-
return this._metricsId != null;
151+
return !string.IsNullOrEmpty(this._metricsId);
152152
}
153153

154154
}

0 commit comments

Comments
 (0)