|
| 1 | +package com.wildbit.java.postmark.client.data.model.streams; |
| 2 | + |
| 3 | +import java.util.Date; |
| 4 | + |
| 5 | +public class MessageStream { |
| 6 | + private String id; |
| 7 | + private String serverId; |
| 8 | + private String name; |
| 9 | + private String description; |
| 10 | + private String messageStreamType; |
| 11 | + private Date createdAt; |
| 12 | + private Date updatedAt; |
| 13 | + private Date archivedAt; |
| 14 | + private Date expectedPurgeDate; |
| 15 | + private SubscriptionManagementConfiguration subscriptionManagementConfiguration; |
| 16 | + |
| 17 | + public MessageStream() {} |
| 18 | + public MessageStream(String id, String name, String description, String messageStreamType, |
| 19 | + SubscriptionManagementConfiguration subscriptionManagementConfiguration) { |
| 20 | + this.id = id; |
| 21 | + this.name = name; |
| 22 | + this.description = description; |
| 23 | + this.messageStreamType = messageStreamType; |
| 24 | + this.subscriptionManagementConfiguration = subscriptionManagementConfiguration; |
| 25 | + } |
| 26 | + |
| 27 | + public MessageStream(String id, String name, String messageStreamType, |
| 28 | + SubscriptionManagementConfiguration subscriptionManagementConfiguration) { |
| 29 | + this.id = id; |
| 30 | + this.name = name; |
| 31 | + this.description = description; |
| 32 | + this.messageStreamType = messageStreamType; |
| 33 | + this.subscriptionManagementConfiguration = subscriptionManagementConfiguration; |
| 34 | + } |
| 35 | + |
| 36 | + public MessageStream(String id, String name, String messageStreamType) { |
| 37 | + this.id = id; |
| 38 | + this.name = name; |
| 39 | + this.messageStreamType = messageStreamType; |
| 40 | + this.subscriptionManagementConfiguration = new SubscriptionManagementConfiguration(); |
| 41 | + } |
| 42 | + |
| 43 | + public String getId() { |
| 44 | + return id; |
| 45 | + } |
| 46 | + |
| 47 | + public void setId(String id) { |
| 48 | + this.id = id; |
| 49 | + } |
| 50 | + |
| 51 | + public String getServerId() { |
| 52 | + return serverId; |
| 53 | + } |
| 54 | + |
| 55 | + public void setServerId(String serverId) { |
| 56 | + this.serverId = serverId; |
| 57 | + } |
| 58 | + |
| 59 | + public String getName() { |
| 60 | + return name; |
| 61 | + } |
| 62 | + |
| 63 | + public void setName(String name) { |
| 64 | + this.name = name; |
| 65 | + } |
| 66 | + |
| 67 | + public String getDescription() { |
| 68 | + return description; |
| 69 | + } |
| 70 | + |
| 71 | + public void setDescription(String description) { |
| 72 | + this.description = description; |
| 73 | + } |
| 74 | + |
| 75 | + public String getMessageStreamType() { |
| 76 | + return messageStreamType; |
| 77 | + } |
| 78 | + |
| 79 | + public void setMessageStreamType(String messageStreamType) { |
| 80 | + this.messageStreamType = messageStreamType; |
| 81 | + } |
| 82 | + |
| 83 | + public Date getCreatedAt() { |
| 84 | + return createdAt; |
| 85 | + } |
| 86 | + |
| 87 | + public void setCreatedAt(Date createdAt) { |
| 88 | + this.createdAt = createdAt; |
| 89 | + } |
| 90 | + |
| 91 | + public Date getUpdatedAt() { |
| 92 | + return updatedAt; |
| 93 | + } |
| 94 | + |
| 95 | + public void setUpdatedAt(Date updatedAt) { |
| 96 | + this.updatedAt = updatedAt; |
| 97 | + } |
| 98 | + |
| 99 | + public Date getArchivedAt() { |
| 100 | + return archivedAt; |
| 101 | + } |
| 102 | + |
| 103 | + public void setArchivedAt(Date archivedAt) { |
| 104 | + this.archivedAt = archivedAt; |
| 105 | + } |
| 106 | + |
| 107 | + public Date getExpectedPurgeDate() { |
| 108 | + return expectedPurgeDate; |
| 109 | + } |
| 110 | + |
| 111 | + public void setExpectedPurgeDate(Date expectedPurgeDate) { |
| 112 | + this.expectedPurgeDate = expectedPurgeDate; |
| 113 | + } |
| 114 | + |
| 115 | + public SubscriptionManagementConfiguration getSubscriptionManagementConfiguration() { |
| 116 | + return subscriptionManagementConfiguration; |
| 117 | + } |
| 118 | + |
| 119 | + public void setSubscriptionManagementConfiguration(SubscriptionManagementConfiguration subscriptionManagementConfiguration) { |
| 120 | + this.subscriptionManagementConfiguration = subscriptionManagementConfiguration; |
| 121 | + } |
| 122 | +} |
0 commit comments