Skip to content

Commit

Permalink
Add @required for master-username
Browse files Browse the repository at this point in the history
  • Loading branch information
Russsnizza committed Sep 26, 2024
1 parent afaeaf6 commit b281428
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main/java/gyro/aws/rds/DbClusterResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -392,15 +392,12 @@ public void setMasterUserPassword(String masterUserPassword) {
/**
* The name of the master user for the DB cluster.
*/
@Required
public String getMasterUsername() {
return masterUsername;
}

public void setMasterUsername(String masterUsername) {
if (masterUsername == null || masterUsername.isEmpty()) {
throw new GyroException("Master username cannot be null or empty");
}

this.masterUsername = masterUsername;
}

Expand Down

0 comments on commit b281428

Please sign in to comment.