public class CompanyInformation extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
Org.OData.Capabilities.V1.UpdateRestrictions
Updatable = true
Org.OData.Capabilities.V1.InsertRestrictions
Insertable = false
Org.OData.Capabilities.V1.DeleteRestrictions
Deletable = false
| Modifier and Type | Class and Description |
|---|---|
static class |
CompanyInformation.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected PostalAddressType |
address |
protected String |
currencyCode |
protected LocalDate |
currentFiscalYearStartDate |
protected String |
displayName |
protected String |
email |
protected String |
faxNumber |
protected String |
industry |
protected OffsetDateTime |
lastModifiedDateTime |
protected String |
phoneNumber |
protected String |
picture |
protected String |
taxRegistrationNumber |
protected String |
website |
changedFields, contextPath, id, odataType, unmappedFields| Modifier | Constructor and Description |
|---|---|
protected |
CompanyInformation() |
| Modifier and Type | Method and Description |
|---|---|
static CompanyInformation.Builder |
builderCompanyInformation()
Returns a builder which is used to create a new
instance of this class (given that this class is immutable).
|
Optional<PostalAddressType> |
getAddress() |
com.github.davidmoten.odata.client.internal.ChangedFields |
getChangedFields() |
Optional<String> |
getCurrencyCode() |
Optional<LocalDate> |
getCurrentFiscalYearStartDate() |
Optional<String> |
getDisplayName() |
Optional<String> |
getEmail() |
Optional<String> |
getFaxNumber() |
Optional<String> |
getIndustry() |
Optional<OffsetDateTime> |
getLastModifiedDateTime() |
Optional<String> |
getPhoneNumber() |
Optional<com.github.davidmoten.odata.client.StreamProvider> |
getPicture() |
Optional<String> |
getTaxRegistrationNumber() |
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
Optional<String> |
getWebsite() |
String |
odataTypeName() |
CompanyInformation |
patch()
Submits only changed fields for update and returns an
immutable copy of
this with changed fields reset. |
void |
postInject(boolean addKeysToContextPath) |
CompanyInformation |
put()
Submits all fields for update and returns an immutable copy of
this
with changed fields reset (they were ignored anyway). |
Optional<com.github.davidmoten.odata.client.StreamUploaderChunked> |
putChunkedPicture()
If metadata indicate that the stream is editable then returns
a
StreamUploaderChunked which can be used to upload the stream
to the picture property. |
Optional<com.github.davidmoten.odata.client.StreamUploader> |
putPicture()
If metadata indicate that the stream is editable then returns
a
StreamUploader which can be used to upload the stream
to the picture property. |
<T> T |
putPicture(com.github.davidmoten.odata.client.UploadStrategy<T> strategy) |
String |
toString() |
CompanyInformation |
withAddress(PostalAddressType address) |
CompanyInformation |
withCurrencyCode(String currencyCode) |
CompanyInformation |
withCurrentFiscalYearStartDate(LocalDate currentFiscalYearStartDate) |
CompanyInformation |
withDisplayName(String displayName) |
CompanyInformation |
withEmail(String email) |
CompanyInformation |
withFaxNumber(String faxNumber) |
CompanyInformation |
withIndustry(String industry) |
CompanyInformation |
withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime) |
CompanyInformation |
withPhoneNumber(String phoneNumber) |
CompanyInformation |
withTaxRegistrationNumber(String taxRegistrationNumber) |
CompanyInformation |
withWebsite(String website) |
protected String displayName
protected PostalAddressType address
protected String phoneNumber
protected String faxNumber
protected String email
protected String website
protected String taxRegistrationNumber
protected String currencyCode
protected LocalDate currentFiscalYearStartDate
protected String industry
protected String picture
protected OffsetDateTime lastModifiedDateTime
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypeodataTypeName in class Entitypublic static CompanyInformation.Builder builderCompanyInformation()
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityTypegetChangedFields in class Entitypublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepostInject in class Entitypublic CompanyInformation withDisplayName(String displayName)
public Optional<PostalAddressType> getAddress()
public CompanyInformation withAddress(PostalAddressType address)
public CompanyInformation withPhoneNumber(String phoneNumber)
public CompanyInformation withFaxNumber(String faxNumber)
public CompanyInformation withEmail(String email)
public CompanyInformation withWebsite(String website)
public CompanyInformation withTaxRegistrationNumber(String taxRegistrationNumber)
public CompanyInformation withCurrencyCode(String currencyCode)
public CompanyInformation withCurrentFiscalYearStartDate(LocalDate currentFiscalYearStartDate)
public CompanyInformation withIndustry(String industry)
public Optional<com.github.davidmoten.odata.client.StreamProvider> getPicture()
public Optional<com.github.davidmoten.odata.client.StreamUploader> putPicture()
StreamUploader which can be used to upload the stream
to the picture property.public Optional<com.github.davidmoten.odata.client.StreamUploaderChunked> putChunkedPicture()
StreamUploaderChunked which can be used to upload the stream
to the picture property.public <T> T putPicture(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)
public Optional<OffsetDateTime> getLastModifiedDateTime()
public CompanyInformation withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
public com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypegetUnmappedFields in class Entitypublic CompanyInformation patch()
this with changed fields reset.public CompanyInformation put()
this
with changed fields reset (they were ignored anyway).Copyright © 2018–2020. All rights reserved.