Package odata.msgraph.client.beta.entity
Class CompanyInformation
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.CompanyInformation
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class CompanyInformation extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
Org.OData.Capabilities.V1.DeleteRestrictions
Deletable = false
Org.OData.Capabilities.V1.InsertRestrictions
Insertable = false
Org.OData.Capabilities.V1.UpdateRestrictions
Updatable = true
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCompanyInformation.Builder
-
Field Summary
Fields Modifier and Type Field Description protected PostalAddressTypeaddressprotected StringcurrencyCodeprotected LocalDatecurrentFiscalYearStartDateprotected StringdisplayNameprotected Stringemailprotected StringfaxNumberprotected Stringindustryprotected OffsetDateTimelastModifiedDateTimeprotected StringphoneNumberprotected Stringpictureprotected StringtaxRegistrationNumberprotected Stringwebsite-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCompanyInformation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CompanyInformation.BuilderbuilderCompanyInformation()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.ChangedFieldsgetChangedFields()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.UnmappedFieldsgetUnmappedFields()Optional<String>getWebsite()StringodataTypeName()CompanyInformationpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.Optional<com.github.davidmoten.odata.client.StreamUploaderChunked>patchChunkedPicture()If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to thepictureproperty, using HTTP PATCH.Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall>patchPicture()If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thepictureproperty, using HTTP PATCH.<T extends com.github.davidmoten.odata.client.StreamUploader<T>>
Optional<T>patchPicture(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)Optional<com.github.davidmoten.odata.client.StreamUploaderChunked>postChunkedPicture()If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to thepictureproperty, using HTTP POST.voidpostInject(boolean addKeysToContextPath)Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall>postPicture()If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thepictureproperty, using HTTP POST.<T extends com.github.davidmoten.odata.client.StreamUploader<T>>
Optional<T>postPicture(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)CompanyInformationput()Submits all fields for update and returns an immutable copy ofthiswith 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 aStreamUploaderChunkedwhich can be used to upload the stream to thepictureproperty, using HTTP PUT.Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall>putPicture()If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thepictureproperty, using HTTP PUT.<T extends com.github.davidmoten.odata.client.StreamUploader<T>>
Optional<T>putPicture(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)StringtoString()CompanyInformationwithAddress(PostalAddressType address)CompanyInformationwithCurrencyCode(String currencyCode)CompanyInformationwithCurrentFiscalYearStartDate(LocalDate currentFiscalYearStartDate)CompanyInformationwithDisplayName(String displayName)CompanyInformationwithEmail(String email)CompanyInformationwithFaxNumber(String faxNumber)CompanyInformationwithIndustry(String industry)CompanyInformationwithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)CompanyInformationwithPhoneNumber(String phoneNumber)CompanyInformationwithTaxRegistrationNumber(String taxRegistrationNumber)CompanyInformationwithUnmappedField(String name, String value)CompanyInformationwithWebsite(String website)
-
-
-
Field Detail
-
address
protected PostalAddressType address
-
currencyCode
protected String currencyCode
-
currentFiscalYearStartDate
protected LocalDate currentFiscalYearStartDate
-
displayName
protected String displayName
-
email
protected String email
-
faxNumber
protected String faxNumber
-
industry
protected String industry
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
phoneNumber
protected String phoneNumber
-
picture
protected String picture
-
taxRegistrationNumber
protected String taxRegistrationNumber
-
website
protected String website
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderCompanyInformation
public static CompanyInformation.Builder builderCompanyInformation()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
getAddress
public Optional<PostalAddressType> getAddress()
-
withAddress
public CompanyInformation withAddress(PostalAddressType address)
-
withCurrencyCode
public CompanyInformation withCurrencyCode(String currencyCode)
-
withCurrentFiscalYearStartDate
public CompanyInformation withCurrentFiscalYearStartDate(LocalDate currentFiscalYearStartDate)
-
withDisplayName
public CompanyInformation withDisplayName(String displayName)
-
withEmail
public CompanyInformation withEmail(String email)
-
withFaxNumber
public CompanyInformation withFaxNumber(String faxNumber)
-
withIndustry
public CompanyInformation withIndustry(String industry)
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
-
withLastModifiedDateTime
public CompanyInformation withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
-
withPhoneNumber
public CompanyInformation withPhoneNumber(String phoneNumber)
-
getPicture
public Optional<com.github.davidmoten.odata.client.StreamProvider> getPicture()
-
putPicture
public Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall> putPicture()
If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thepictureproperty, using HTTP PUT.- Returns:
- a StreamUploader if upload permitted
-
putChunkedPicture
public Optional<com.github.davidmoten.odata.client.StreamUploaderChunked> putChunkedPicture()
If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to thepictureproperty, using HTTP PUT.- Returns:
- a StreamUploaderChunked if upload permitted
-
putPicture
public <T extends com.github.davidmoten.odata.client.StreamUploader<T>> Optional<T> putPicture(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)
-
postPicture
public Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall> postPicture()
If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thepictureproperty, using HTTP POST.- Returns:
- a StreamUploader if upload permitted
-
postChunkedPicture
public Optional<com.github.davidmoten.odata.client.StreamUploaderChunked> postChunkedPicture()
If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to thepictureproperty, using HTTP POST.- Returns:
- a StreamUploaderChunked if upload permitted
-
postPicture
public <T extends com.github.davidmoten.odata.client.StreamUploader<T>> Optional<T> postPicture(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)
-
patchPicture
public Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall> patchPicture()
If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thepictureproperty, using HTTP PATCH.- Returns:
- a StreamUploader if upload permitted
-
patchChunkedPicture
public Optional<com.github.davidmoten.odata.client.StreamUploaderChunked> patchChunkedPicture()
If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to thepictureproperty, using HTTP PATCH.- Returns:
- a StreamUploaderChunked if upload permitted
-
patchPicture
public <T extends com.github.davidmoten.odata.client.StreamUploader<T>> Optional<T> patchPicture(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)
-
withTaxRegistrationNumber
public CompanyInformation withTaxRegistrationNumber(String taxRegistrationNumber)
-
withWebsite
public CompanyInformation withWebsite(String website)
-
withUnmappedField
public CompanyInformation withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public CompanyInformation patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public CompanyInformation put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-